Class Workspace
- java.lang.Object
-
- de.unirostock.sems.cbarchive.web.dataholder.Workspace
-
public class Workspace extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getArchives()
long
getArchiveSize(String archiveId)
Returns the size in bytes of one archive in this workspace or0L
if it fails.Date
getLastseen()
String
getName()
File
getWorkspaceDir()
String
getWorkspaceId()
boolean
isCurrent()
Lock
lockArchive(String archiveId)
void
setCurrent(boolean current)
void
setLastseen(Date lastseen)
void
setName(String name)
void
setWorkspaceDir(File workspaceDir)
void
setWorkspaceId(String workspaceId)
void
updateLastseen()
-
-
-
Method Detail
-
updateLastseen
public void updateLastseen()
-
getWorkspaceId
public String getWorkspaceId()
-
setWorkspaceId
public void setWorkspaceId(String workspaceId)
-
getWorkspaceDir
public File getWorkspaceDir() throws IOException
- Throws:
IOException
-
setWorkspaceDir
public void setWorkspaceDir(File workspaceDir)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getLastseen
public Date getLastseen()
-
setLastseen
public void setLastseen(Date lastseen)
-
isCurrent
public boolean isCurrent()
-
setCurrent
public void setCurrent(boolean current)
-
getArchiveSize
public long getArchiveSize(String archiveId)
Returns the size in bytes of one archive in this workspace or0L
if it fails.- Parameters:
archiveId
- the archive id- Returns:
- the archive size
-
lockArchive
public Lock lockArchive(String archiveId) throws CombineArchiveWebException
- Throws:
CombineArchiveWebException
-
-