Interface Commitment
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A Commitment maps a Resource to an Event.
Like all OsidObjects, Commitment is managed by its
OsidSessions and may not be accessed by concurrent processing
threads.
-
Method Summary
Modifier and TypeMethodDescriptiongetCommitmentRecord(Type commitmentRecordType) Gets the record corresponding to the givenCommitmentrecordType.getEvent()Gets theEvent.Gets the eventId.Gets theResource.Gets the resourceId.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeMethods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeMethods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonMethods inherited from interface Temporal
getEndDate, getStartDate, isEffective
-
Method Details
-
getEventId
Id getEventId()Gets the eventId.- Returns:
- the event
Id - Compliance:
mandatory- This method must be implemented.
-
getEvent
Gets theEvent.- Returns:
- the event
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getResourceId
Id getResourceId()Gets the resourceId.- Returns:
- a resource
Id - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets theResource.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCommitmentRecord
Gets the record corresponding to the givenCommitmentrecordType. This method is used to retrieve an object implementing the requested record. ThecommitmentRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(commitmentRecordType)istrue.- Parameters:
commitmentRecordType- the type of the record to retrieve- Returns:
- the commitment record
- Throws:
NullArgumentException-commitmentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(commitmentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-