Interface PostEntry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
A PostEntry is a debit or a credit made to an Account
and Activity .
-
Method Summary
Modifier and TypeMethodDescriptionGets the G/L account to which this entry applies.Gets the G/L accountIdto which this entry applies.Gets the financial activity to which this entry applies.Gets the financial activityIdto which this entry applies.Gets the amount.getPost()Gets the post to which this entry belongs.getPostEntryRecord(Type postEntryRecordType) Gets the post entry record corresponding to the givenPostEntryrecordType.Gets the postIdto which this entry belongs.booleanisDebit()Tests if the amount is a debit or a credit.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
-
getPostId
Id getPostId()Gets the postIdto which this entry belongs.- Returns:
- the payer
Id - Compliance:
mandatory- This method must be implemented.
-
getPost
Gets the post to which this entry belongs.- Returns:
- the post
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAccountId
Id getAccountId()Gets the G/L accountIdto which this entry applies.- Returns:
- the account
Id - Compliance:
mandatory- This method must be implemented.
-
getAccount
Gets the G/L account to which this entry applies.- Returns:
- the account
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getActivityId
Id getActivityId()Gets the financial activityIdto which this entry applies.- Returns:
- the activity
Id - Compliance:
mandatory- This method must be implemented.
-
getActivity
Gets the financial activity to which this entry applies.- Returns:
- the activity
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAmount
Currency getAmount()Gets the amount.- Returns:
- the amount
- Compliance:
mandatory- This method must be implemented.
-
isDebit
boolean isDebit()Tests if the amount is a debit or a credit.- Returns:
trueif this entry amount is a debit,falseif it is a credit- Compliance:
mandatory- This method must be implemented.
-
getPostEntryRecord
Gets the post entry record corresponding to the givenPostEntryrecordType. This method is used to retrieve an object implementing the requested record. ThepostEntryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(postEntryRecordType)istrue.- Parameters:
postEntryRecordType- the type of post entry record to retrieve- Returns:
- the post entry record
- Throws:
NullArgumentException-postEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(postEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-