public class UserManager extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected UserData |
data |
|
protected File |
workingDir |
|
protected Workspace |
workspace |
|
protected WorkspaceManager |
workspaceManager |
| Constructor | Description |
|---|---|
UserManager() |
|
UserManager(String workspaceId) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
createArchive(String name) |
|
String |
createArchive(String name,
de.unirostock.sems.cbarchive.meta.omex.VCard creator) |
|
String |
createArchive(String name,
File existingArchive) |
|
String |
createArchive(String name,
File existingArchive,
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
IOExceptionpublic UserManager(String workspaceId) throws IOException
IOExceptionpublic 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
FileNotFoundExceptionpublic 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
IOExceptionorg.jdom2.JDOMExceptionParseExceptionde.unirostock.sems.cbarchive.CombineArchiveExceptionTransformerExceptionpublic String createArchive(String name, File existingArchive) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException, TransformerException
IOExceptionorg.jdom2.JDOMExceptionParseExceptionde.unirostock.sems.cbarchive.CombineArchiveExceptionTransformerExceptionpublic String createArchive(String name, de.unirostock.sems.cbarchive.meta.omex.VCard creator) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException, TransformerException
IOExceptionorg.jdom2.JDOMExceptionParseExceptionde.unirostock.sems.cbarchive.CombineArchiveExceptionTransformerExceptionpublic 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
IOExceptionorg.jdom2.JDOMExceptionParseExceptionde.unirostock.sems.cbarchive.CombineArchiveExceptionTransformerExceptionpublic void deleteArchive(String archiveId) throws IOException
IOExceptionpublic void deleteArchiveSilent(String archiveId)
public void updateArchiveEntry(String archiveId, ArchiveEntryDataholder newEntryDataholder) throws CombineArchiveWebException
CombineArchiveWebExceptionCopyright © 2018 SEMS project @ University of Rostock. All rights reserved.