OSID Logo
OSID Specifications
financials posting package
Version 3.0.0
Interfaceosid.financials.posting.PostEntryForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Used Byosid.financials.posting.PostEntryAdminSession
Description

This is the form for creating and updating PostEntries . Like all OsidForms , various data elements may be set here for use in the create and update methods in the PostEntryAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetAccountMetadata
Description

Gets the metadata for the account.

Returnosid.Metadatametadata for the account
CompliancemandatoryThis method must be implemented.
MethodsetAccount
Description

Sets the account.

Parametersosid.id.IdaccountIdthe new account
ErrorsINVALID_ARGUMENTaccountId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTaccountId is null
CompliancemandatoryThis method must be implemented.
MethodclearAccount
Description

Removes the account.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetActivityMetadata
Description

Gets the metadata for the activity.

Returnosid.Metadatametadata for the activity
CompliancemandatoryThis method must be implemented.
MethodsetActivity
Description

Sets the activity.

Parametersosid.id.IdactivityIdthe new activity
ErrorsINVALID_ARGUMENTactivityId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTactivityId is null
CompliancemandatoryThis method must be implemented.
MethodclearActivity
Description

Removes the activity.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAmountMetadata
Description

Gets the metadata for the amount.

Returnosid.Metadatametadata for the amount
CompliancemandatoryThis method must be implemented.
MethodsetAmount
Description

Sets the amount.

Parametersosid.financials.Currencyamountthe new amount
ErrorsINVALID_ARGUMENTamount is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTamount is null
CompliancemandatoryThis method must be implemented.
MethodclearAmount
Description

Removes the amount.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDebitMetadata
Description

Gets the metadata for the debit flag.

Returnosid.Metadatametadata for the debit flag
CompliancemandatoryThis method must be implemented.
MethodsetDebit
Description

Sets the debit flag.

Parametersbooleandebittrue if this post entry is a debit, false if a credit
ErrorsINVALID_ARGUMENTdebit is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearDebit
Description

Clears the debit flag.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetPostEntryFormRecord
Description

Gets the PostEntryFormRecord corresponding to the given post entry record Type .

Parametersosid.type.TypepostEntryRecordTypea post entry record type
Returnosid.financials.posting.records.PostEntryFormRecordthe post entry form record
ErrorsNULL_ARGUMENTpostEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(postEntryRecordType) is false
CompliancemandatoryThis method must be implemented.