Class 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 Detail

      • EntityWorkspace

        public EntityWorkspace()
      • EntityWorkspace

        public EntityWorkspace​(java.lang.String name,
                               java.lang.String lang)
    • Method Detail

      • createJob

        public IJob createJob()
        Description copied from interface: IWorkspace
        Creates a new job instance
        Specified by:
        createJob in interface IWorkspace
        Returns:
        the new job
      • getFiles

        public java.util.List<ISourceFile> getFiles()
        Specified by:
        getFiles in interface IWorkspace
        Returns:
        the list of files currently associated with the workspace
      • getJobs

        public java.util.List<IJob> getJobs()
        Specified by:
        getJobs in interface IWorkspace
        Returns:
        list of job history
      • getLanguage

        public java.lang.String getLanguage()
        Specified by:
        getLanguage in interface IWorkspace
        Returns:
        the language for the workspace
      • setLanguage

        public void setLanguage​(java.lang.String lang)
        Specified by:
        setLanguage in interface IWorkspace
        Parameters:
        lang - set the workspace to use this language
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface IWorkspace
        Returns:
        the name of the workspace
      • setName

        public void setName​(java.lang.String name)
        Specified by:
        setName in interface IWorkspace
        Parameters:
        name - set the workspace name to this
      • getPersistentId

        public long getPersistentId()
        Specified by:
        getPersistentId in interface IWorkspace
        Returns:
        the unique id for the workspace
      • getSubmissions

        public java.util.List<ISubmission> getSubmissions()
        Specified by:
        getSubmissions in interface IWorkspace
        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 interface IWorkspace