public class UserManager extends Object
Modifier and Type | Field and Description |
---|---|
protected UserData |
data |
protected File |
workingDir |
protected Workspace |
workspace |
protected WorkspaceManager |
workspaceManager |
Constructor and Description |
---|
UserManager() |
UserManager(String workspaceId) |
Modifier and Type | Method and Description |
---|---|
String |
createArchive(String name) |
String |
createArchive(String name,
File existingArchive) |
String |
createArchive(String name,
File existingArchive,
de.unirostock.sems.cbarchive.meta.omex.VCard creator) |
String |
createArchive(String name,
de.unirostock.sems.cbarchive.meta.omex.VCard creator) |
void |
deleteArchive(String archiveId) |
void |
deleteArchiveSilent(String archiveId) |
Archive |
getArchive(String archiveId) |
Archive |
getArchive(String archiveId,
boolean deepScan) |
File |
getArchiveFile(String archiveId) |
List<Archive> |
getArchives()
Lists all available archives for the user, with content.
|
List<Archive> |
getArchives(boolean deepScan)
Lists all available archives for the user
if
deepScan is set to true, the content of the archives will be analysed. |
UserData |
getData() |
File |
getWorkingDir() |
Workspace |
getWorkspace() |
String |
getWorkspaceId() |
boolean |
hasData() |
void |
renameArchive(String archiveId,
String newName) |
void |
setData(UserData data) |
void |
updateArchiveEntry(String archiveId,
ArchiveEntryDataholder newEntryDataholder) |
protected WorkspaceManager workspaceManager
protected Workspace workspace
protected File workingDir
protected UserData data
public UserManager() throws IOException
IOException
public UserManager(String workspaceId) throws IOException
IOException
public UserData getData()
public void setData(UserData data)
public boolean hasData()
public String getWorkspaceId()
public File getWorkingDir()
public Workspace getWorkspace()
public List<Archive> getArchives()
public List<Archive> getArchives(boolean deepScan)
deepScan
is set to true, the content of the archives will be analysed.deepScan
- should we deep-scan?public Archive getArchive(String archiveId) throws FileNotFoundException, CombineArchiveWebException
public Archive getArchive(String archiveId, boolean deepScan) throws CombineArchiveWebException, FileNotFoundException
public File getArchiveFile(String archiveId) throws FileNotFoundException
FileNotFoundException
public void renameArchive(String archiveId, String newName) throws IllegalArgumentException, FileNotFoundException, IOException
public String createArchive(String name) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException, TransformerException
IOException
org.jdom2.JDOMException
ParseException
de.unirostock.sems.cbarchive.CombineArchiveException
TransformerException
public String createArchive(String name, File existingArchive) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException, TransformerException
IOException
org.jdom2.JDOMException
ParseException
de.unirostock.sems.cbarchive.CombineArchiveException
TransformerException
public String createArchive(String name, de.unirostock.sems.cbarchive.meta.omex.VCard creator) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException, TransformerException
IOException
org.jdom2.JDOMException
ParseException
de.unirostock.sems.cbarchive.CombineArchiveException
TransformerException
public String createArchive(String name, File existingArchive, de.unirostock.sems.cbarchive.meta.omex.VCard creator) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException, TransformerException
IOException
org.jdom2.JDOMException
ParseException
de.unirostock.sems.cbarchive.CombineArchiveException
TransformerException
public void deleteArchive(String archiveId) throws IOException
IOException
public void deleteArchiveSilent(String archiveId)
public void updateArchiveEntry(String archiveId, ArchiveEntryDataholder newEntryDataholder) throws CombineArchiveWebException
CombineArchiveWebException
Copyright © 2018 SEMS project @ University of Rostock. All rights reserved.