public interface Work extends OsidObject, Subjugateable
Work
is an instance of a job and may require competence.
Modifier and Type | Method and Description |
---|---|
CompetencyList |
getCompetencies()
Gets the competency.
|
IdList |
getCompetencyIds()
Gets the
Ids of the competencies. |
DateTime |
getCompletionDate()
Gets the completion date.
|
DateTime |
getCreatedDate()
Gets the date this work was created.
|
Job |
getJob()
Gets the job of which this work is a part.
|
Id |
getJobId()
Gets the
Id of the job of which this work is a part. |
WorkRecord |
getWorkRecord(Type workRecordType)
Gets the work record corresponding to the given
Work
record Type. |
boolean |
isComplete()
Tests if this work has been completed.
|
boolean |
needsCompetence()
Tests if specific competencies are needed for this work.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
Id getJobId()
Id
of the job of which this work is a part. Id
mandatory
- This method must be implemented. Job getJob() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean needsCompetence()
true
if competency if specified, false
if incompetence will domandatory
- This method must be implemented. IdList getCompetencyIds()
Ids
of the competencies. Ids
IllegalStateException
- needsCompetence()
is false
mandatory
- This method must be implemented. CompetencyList getCompetencies() throws OperationFailedException
IllegalStateException
- needsCompetence()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. DateTime getCreatedDate()
mandatory
- This method must be implemented. boolean isComplete()
true
if this work is complete, false
otherwisemandatory
- This method must be implemented. DateTime getCompletionDate()
IllegalStateException
- isComplete()
is
false
mandatory
- This method must be implemented. WorkRecord getWorkRecord(Type workRecordType) throws OperationFailedException
Work
record Type.
This method is used to retrieve an object
implementing the requested record. The workRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(workRecordType)
is true
.workRecordType
- the type of work record to retrieveNullArgumentException
- workRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(workRecordType)
is false
mandatory
- This method must be implemented.