Interface JournalEntry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
A JournalEntry represents an entry in a journal.
-
Method Summary
Modifier and TypeMethodDescriptiongetAgent()Gets the agent who created this entry.Gets the Id of the agent who created this entry.Gets the branch for this entry.Gets the branchIdfor this entry.getJournalEntryRecord(Type journalEntryRecordType) Gets the journal entry record corresponding to the givenJournalEntryrecordType.Gets the resource who created this entry.Gets the Id of the resource who created this entry.Gets the principalIdof the journaled object.Gets thetimestampof this journal entry.Gets the versionIdof the journaled object.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getBranchId
Id getBranchId()Gets the branchIdfor this entry.- Returns:
- the branch
Id - Compliance:
mandatory- This method must be implemented.
-
getBranch
Gets the branch for this entry.- Returns:
- the branch
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSourceId
Id getSourceId()Gets the principalIdof the journaled object.- Returns:
- the source
Id - Compliance:
mandatory- This method must be implemented.
-
getVersionId
Id getVersionId()Gets the versionIdof the journaled object.- Returns:
- the version
Id - Compliance:
mandatory- This method must be implemented.
-
getTimestamp
DateTime getTimestamp()Gets thetimestampof this journal entry.- Returns:
- the time of this entry
- Compliance:
mandatory- This method must be implemented.
-
getResourceId
Id getResourceId()Gets the Id of the resource who created this entry.- Returns:
- the
ResourceId - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets the resource who created this entry.- Returns:
- the
Resource - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAgentId
Id getAgentId()Gets the Id of the agent who created this entry.- Returns:
- the
AgentId - Compliance:
mandatory- This method must be implemented.
-
getAgent
Gets the agent who created this entry.- Returns:
- the
Agent - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getJournalEntryRecord
JournalEntryRecord getJournalEntryRecord(Type journalEntryRecordType) throws OperationFailedException Gets the journal entry record corresponding to the givenJournalEntryrecordType. This method is used to retrieve an object implementing the requested record. ThejournalEntryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(journalEntryRecordType)istrue.- Parameters:
journalEntryRecordType- the type of journal entry record to retrieve- Returns:
- the journal entry record
- Throws:
NullArgumentException-journalEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(journalEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-