Interface Post
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, OsidObject
A Post is a set of PostEntries representing a complete
accounting transaction.
-
Method Summary
Modifier and TypeMethodDescriptionGets the correctedPost.Gets theIdof the correctedPost.getDate()Gets the posting date.Gets theFiscalPeriod.Gets theIdof theFiscalPeriod.Gets thePostEntries.Gets theIdsof thePostEntries.getPostRecord(Type postRecordType) Gets the post record corresponding to the givenPostrecordType.This method is used to retrieve an object implementing the requested record.booleanTests if thisPostis a correction to a previous post.booleanisPosted()Tests if this has been posted.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
-
getFiscalPeriodId
Id getFiscalPeriodId()Gets theIdof theFiscalPeriod.- Returns:
- the
FiscalPeriodId - Compliance:
mandatory- This method must be implemented.
-
getFiscalPeriod
Gets theFiscalPeriod.- Returns:
- the fiscal period
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isPosted
boolean isPosted()Tests if this has been posted.- Returns:
trueif this has been posted,falseif just lying around- Compliance:
mandatory- This method is must be implemented.
-
getDate
DateTime getDate()Gets the posting date.- Returns:
- the posting date
- Compliance:
mandatory- This method is must be implemented.
-
getPostEntryIds
IdList getPostEntryIds()Gets theIdsof thePostEntries.- Returns:
- the
PostEntryIds - Compliance:
mandatory- This method must be implemented.
-
getPostEntries
Gets thePostEntries.- Returns:
- the post entries
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isCorrection
boolean isCorrection()Tests if thisPostis a correction to a previous post.- Returns:
trueif this post is a correction,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCorrectedPostId
Id getCorrectedPostId()Gets theIdof the correctedPost.- Returns:
- the corrected
PostId - Throws:
IllegalStateException-isCorrection()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCorrectedPost
Gets the correctedPost.- Returns:
- the corrected post
- Throws:
IllegalStateException-isCorrection()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPostRecord
Gets the post record corresponding to the givenPostrecordType.This method is used to retrieve an object implementing the requested record. ThepostRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(postRecordType)istrue.- Parameters:
postRecordType- the type of post record to retrieve- Returns:
- the post record
- Throws:
NullArgumentException-postRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(postRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-