Interface Credit
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A Credit relates a Resource with a reference to an
Id.
Like all OsidObjects, Credit is managed by its
OsidSessions and may not be accessed by concurrent processing threads.
-
Method Summary
Modifier and TypeMethodDescriptiongetCreditRecord(Type creditRecordType) Gets the record corresponding to the givenCreditrecordType.This method is used to retrieve an object implementing the requested record.Gets theIdof the referenced object.Gets the resource in this credit.Gets theIdof the resource in this credit.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
-
getReferenceId
Id getReferenceId()Gets theIdof the referenced object.- Returns:
- the reference
Id - Compliance:
mandatory- This method must be implemented.
-
getResourceId
Id getResourceId()Gets theIdof the resource in this credit.- Returns:
- the
ResourceId - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets the resource in this credit.- Returns:
- the
Resource - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCreditRecord
Gets the record corresponding to the givenCreditrecordType.This method is used to retrieve an object implementing the requested record. ThecreditRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(creditRecordType)istrue.- Parameters:
creditRecordType- the type of credit record to retrieve- Returns:
- the credit record
- Throws:
NullArgumentException-creditRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(creditRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-