public interface AccountForm extends OsidObjectForm, OsidFederateableForm
This is the form for creating and updating Accounts.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
AccountAdminSession.
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 |
clearCode()
Removes the code.
|
void |
clearCreditBalance()
Removes the credit balance flag.
|
AccountFormRecord |
getAccountFormRecord(Type accountRecordType)
Gets the
AccountFormRecord corresponding to the given
account record Type. |
Metadata |
getCodeMetadata()
Gets the metadata for the code.
|
Metadata |
getCreditBalanceMetadata()
Gets the metadata for the credit balance.
|
void |
setCode(java.lang.String code)
Sets the code.
|
void |
setCreditBalance(boolean credit)
Sets the credit balance flag.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getCreditBalanceMetadata()
mandatory
- This method must be implemented. void setCreditBalance(boolean credit)
credit
- true
if credits increase the balance,
false
if credits decrease the balanceInvalidArgumentException
- credit
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearCreditBalance()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCodeMetadata()
mandatory
- This method must be implemented. void setCode(java.lang.String code)
code
- the new codeInvalidArgumentException
- code
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- code
is
null
mandatory
- This method must be implemented. void clearCode()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AccountFormRecord getAccountFormRecord(Type accountRecordType) throws OperationFailedException
AccountFormRecord
corresponding to the given
account record Type.
accountRecordType
- an account record typeNullArgumentException
- accountRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(accountRecordType)
is false
mandatory
- This method must be implemented.