Package org.dspace.scripts
Class Process
java.lang.Object
org.dspace.scripts.Process
- All Implemented Interfaces:
ReloadableEntity<Integer>
This class is the DB Entity representation of the Process object to be stored in the Database
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBitstream(Bitstream bitstream) booleanReturntrueifotheris the same Process as this object,falseotherwiseThis method returns a list of Bitstreams that will be used or created by the Process.This method will return the time when the Process was created.This method returns an EPerson object.This method returns the time that Process was finishedThis method will return the special groups associated with the Process.getID()This method returns the ID that the Process holds within the DatabasegetName()This method returns the name of the Process.protected StringTo get the parameters, use ProcessService.getParameters() to get a parsed list of DSpaceCommandLineParameters This String representation is the parameter in an unparsed fashion.For example "-c test"This method returns a ProcessStatus value that represents the current state of the Process.This method returns the Start time for the Process.inthashCode()voidremoveBitstream(Bitstream bitstream) voidsetBitstreams(List<Bitstream> bitstreams) voidsetCreationTime(Instant creationTime) voidsetEPerson(EPerson ePerson) voidsetFinishedTime(Instant finishedTime) voidThis method sets the special groups associated with the Process.voidvoidsetParameters(String parameters) voidsetProcessId(Integer processId) voidsetProcessStatus(ProcessStatus processStatus) voidsetStartTime(Instant startTime)
-
Field Details
-
BITSTREAM_TYPE_METADATAFIELD
- See Also:
-
OUTPUT_TYPE
- See Also:
-
-
Constructor Details
-
Process
protected Process()
-
-
Method Details
-
getID
This method returns the ID that the Process holds within the Database- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- The ID that the process holds within the database
-
setProcessId
-
getEPerson
This method returns an EPerson object. This EPerson object is the EPerson that initially created the process- Returns:
- The EPerson that created the process
-
setEPerson
-
getStartTime
This method returns the Start time for the Process. This reflects the time when the Process was actually started- Returns:
- The start time for the Process
-
setStartTime
-
getFinishedTime
This method returns the time that Process was finished- Returns:
- The finished time for the Process
-
setFinishedTime
-
getName
This method returns the name of the Process. For example filter-media- Returns:
- The name of the Process
-
setName
-
getProcessStatus
This method returns a ProcessStatus value that represents the current state of the Process. These values can be found within theProcessStatusenum- Returns:
- The status of the Process
-
setProcessStatus
-
getParameters
To get the parameters, use ProcessService.getParameters() to get a parsed list of DSpaceCommandLineParameters This String representation is the parameter in an unparsed fashion.For example "-c test"- Returns:
- the raw parameter string.
-
setParameters
-
getBitstreams
This method returns a list of Bitstreams that will be used or created by the Process. This list contains both input and output bitstreams.- Returns:
- The Bitstreams that are used or created by the process
-
setBitstreams
-
removeBitstream
-
addBitstream
-
setCreationTime
-
getCreationTime
This method will return the time when the Process was created. Note that this is potentially different from the StartTime (for example if the Process was queued)- Returns:
- The creation time of the Process
-
getGroups
This method will return the special groups associated with the Process. -
setGroups
This method sets the special groups associated with the Process.- Parameters:
groups- The special groups of this process.
-
equals
Returntrueifotheris the same Process as this object,falseotherwise -
hashCode
public int hashCode()
-