Class EntityWorkspace
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.engine.storage.EntityWorkspace
-
- All Implemented Interfaces:
java.io.Serializable,IWorkspace
@Entity(name="Workspace") public class EntityWorkspace extends java.lang.Object implements IWorkspace, java.io.Serializable
IWorkspace object for base storage implementation- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntityWorkspace()EntityWorkspace(java.lang.String name, java.lang.String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IJobcreateJob()Creates a new job instancejava.util.List<ISourceFile>getFiles()java.util.List<IJob>getJobs()java.lang.StringgetLanguage()java.lang.StringgetName()longgetPersistentId()java.util.List<ISubmission>getSubmissions()voidremove()Remove the workspace, and all of the files and results associated, cannot be undonevoidsetLanguage(java.lang.String lang)voidsetName(java.lang.String name)
-
-
-
Method Detail
-
createJob
public IJob createJob()
Description copied from interface:IWorkspaceCreates a new job instance- Specified by:
createJobin interfaceIWorkspace- Returns:
- the new job
-
getFiles
public java.util.List<ISourceFile> getFiles()
- Specified by:
getFilesin interfaceIWorkspace- Returns:
- the list of files currently associated with the workspace
-
getJobs
public java.util.List<IJob> getJobs()
- Specified by:
getJobsin interfaceIWorkspace- Returns:
- list of job history
-
getLanguage
public java.lang.String getLanguage()
- Specified by:
getLanguagein interfaceIWorkspace- Returns:
- the language for the workspace
-
setLanguage
public void setLanguage(java.lang.String lang)
- Specified by:
setLanguagein interfaceIWorkspace- Parameters:
lang- set the workspace to use this language
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIWorkspace- Returns:
- the name of the workspace
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceIWorkspace- Parameters:
name- set the workspace name to this
-
getPersistentId
public long getPersistentId()
- Specified by:
getPersistentIdin interfaceIWorkspace- Returns:
- the unique id for the workspace
-
getSubmissions
public java.util.List<ISubmission> getSubmissions()
- Specified by:
getSubmissionsin interfaceIWorkspace- Returns:
- the list of submissions to the workspace
-
remove
public void remove()
Description copied from interface:IWorkspaceRemove the workspace, and all of the files and results associated, cannot be undone- Specified by:
removein interfaceIWorkspace
-
-