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 IJob
createJob()
Creates a new job instancejava.util.List<ISourceFile>
getFiles()
java.util.List<IJob>
getJobs()
java.lang.String
getLanguage()
java.lang.String
getName()
long
getPersistentId()
java.util.List<ISubmission>
getSubmissions()
void
remove()
Remove the workspace, and all of the files and results associated, cannot be undonevoid
setLanguage(java.lang.String lang)
void
setName(java.lang.String name)
-
-
-
Method Detail
-
createJob
public IJob createJob()
Description copied from interface:IWorkspace
Creates a new job instance- Specified by:
createJob
in interfaceIWorkspace
- Returns:
- the new job
-
getFiles
public java.util.List<ISourceFile> getFiles()
- Specified by:
getFiles
in interfaceIWorkspace
- Returns:
- the list of files currently associated with the workspace
-
getJobs
public java.util.List<IJob> getJobs()
- Specified by:
getJobs
in interfaceIWorkspace
- Returns:
- list of job history
-
getLanguage
public java.lang.String getLanguage()
- Specified by:
getLanguage
in interfaceIWorkspace
- Returns:
- the language for the workspace
-
setLanguage
public void setLanguage(java.lang.String lang)
- Specified by:
setLanguage
in interfaceIWorkspace
- Parameters:
lang
- set the workspace to use this language
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIWorkspace
- Returns:
- the name of the workspace
-
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interfaceIWorkspace
- Parameters:
name
- set the workspace name to this
-
getPersistentId
public long getPersistentId()
- Specified by:
getPersistentId
in interfaceIWorkspace
- Returns:
- the unique id for the workspace
-
getSubmissions
public java.util.List<ISubmission> getSubmissions()
- Specified by:
getSubmissions
in interfaceIWorkspace
- Returns:
- the list of submissions to the workspace
-
remove
public void remove()
Description copied from interface:IWorkspace
Remove the workspace, and all of the files and results associated, cannot be undone- Specified by:
remove
in interfaceIWorkspace
-
-