public interface PostEntryForm extends OsidObjectForm, OsidSubjugateableForm
This is the form for creating and updating PostEntries.
Like all OsidForm objects, 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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAccount()
Removes the account.
|
void |
clearActivity()
Removes the activity.
|
void |
clearAmount()
Removes the amount.
|
void |
clearDebit()
Clears the debit flag.
|
Metadata |
getAccountMetadata()
Gets the metadata for the account.
|
Metadata |
getActivityMetadata()
Gets the metadata for the activity.
|
Metadata |
getAmountMetadata()
Gets the metadata for the amount.
|
Metadata |
getDebitMetadata()
Gets the metadata for the debit flag.
|
PostEntryFormRecord |
getPostEntryFormRecord(Type postEntryRecordType)
Gets the
PostEntryFormRecord corresponding to the given
post entry record Type. |
void |
setAccount(Id accountId)
Sets the account.
|
void |
setActivity(Id activityId)
Sets the activity.
|
void |
setAmount(Currency amount)
Sets the amount.
|
void |
setDebit(boolean debit)
Sets the debit flag.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentMetadata getAccountMetadata()
mandatory - This method must be implemented. void setAccount(Id accountId)
accountId - the new accountInvalidArgumentException - accountId is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - accountId is
null mandatory - This method must be implemented. void clearAccount()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getActivityMetadata()
mandatory - This method must be implemented. void setActivity(Id activityId)
activityId - the new activityInvalidArgumentException - activityId is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - activityId is
null mandatory - This method must be implemented. void clearActivity()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getAmountMetadata()
mandatory - This method must be implemented. void setAmount(Currency amount)
amount - the new amountInvalidArgumentException - amount is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - amount is
null mandatory - This method must be implemented. void clearAmount()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getDebitMetadata()
mandatory - This method must be implemented. void setDebit(boolean debit)
debit - true if this post entry is a debit,
false if a creditInvalidArgumentException - debit is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearDebit()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. PostEntryFormRecord getPostEntryFormRecord(Type postEntryRecordType) throws OperationFailedException
PostEntryFormRecord corresponding to the given
post entry record Type. postEntryRecordType - a post entry record typeNullArgumentException - postEntryRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(postEntryRecordType) is false
mandatory - This method must be implemented.