Interface Post
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, OsidObject
A Post is a set of PostEntries representing a complete
accounting transaction.
Like all OsidObjects, Post is managed by its
OsidSessions and may not be accessed by concurrent processing threads.
-
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, getPropertiesByRecordTypeMethods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusType
-
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 must be implemented.
-
getDate
DateTime getDate()Gets the posting date.- Returns:
- the posting date
- Compliance:
mandatory- This method 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.
-