OSID Logo
OSID Specifications
financials posting package
Version 3.1.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.Metadata metadata for the account
Compliancemandatory This method must be implemented.
MethodsetAccount
Description

Sets the account.

Parametersosid.id.IdaccountId the new account
ErrorsINVALID_ARGUMENT accountId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT accountId is null
Compliancemandatory This method must be implemented.
MethodclearAccount
Description

Removes the account.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetActivityMetadata
Description

Gets the metadata for the activity.

Returnosid.Metadata metadata for the activity
Compliancemandatory This method must be implemented.
MethodsetActivity
Description

Sets the activity.

Parametersosid.id.IdactivityId the new activity
ErrorsINVALID_ARGUMENT activityId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT activityId is null
Compliancemandatory This method must be implemented.
MethodclearActivity
Description

Removes the activity.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetAmountMetadata
Description

Gets the metadata for the amount.

Returnosid.Metadata metadata for the amount
Compliancemandatory This method must be implemented.
MethodsetAmount
Description

Sets the amount.

Parametersosid.financials.Currencyamount the new amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
Compliancemandatory This method must be implemented.
MethodclearAmount
Description

Removes the amount.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDebitMetadata
Description

Gets the metadata for the debit flag.

Returnosid.Metadata metadata for the debit flag
Compliancemandatory This method must be implemented.
MethodsetDebit
Description

Sets the debit flag.

Parametersbooleandebit true if this post entry is a debit, false if a credit
ErrorsINVALID_ARGUMENT debit is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearDebit
Description

Clears the debit flag.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetPostEntryFormRecord
Description

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

Parametersosid.type.TypepostEntryRecordType a post entry record type
Returnosid.financials.posting.records.PostEntryFormRecord the post entry form record
ErrorsNULL_ARGUMENT postEntryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(postEntryRecordType) is false
Compliancemandatory This method must be implemented.