Interface PostEntryForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, Suppliable

public interface PostEntryForm extends OsidObjectForm, OsidSubjugateableForm

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.

  • Method Details

    • getAccountMetadata

      Metadata getAccountMetadata()
      Gets the metadata for the account.
      Returns:
      metadata for the account
      Compliance:
      mandatory - This method must be implemented.
    • setAccount

      void setAccount(Id accountId)
      Sets the account.
      Parameters:
      accountId - the new account
      Throws:
      InvalidArgumentException - accountId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - accountId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAccount

      void clearAccount()
      Removes the account.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getActivityMetadata

      Metadata getActivityMetadata()
      Gets the metadata for the activity.
      Returns:
      metadata for the activity
      Compliance:
      mandatory - This method must be implemented.
    • setActivity

      void setActivity(Id activityId)
      Sets the activity.
      Parameters:
      activityId - the new activity
      Throws:
      InvalidArgumentException - activityId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - activityId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearActivity

      void clearActivity()
      Removes the activity.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAmountMetadata

      Metadata getAmountMetadata()
      Gets the metadata for the amount.
      Returns:
      metadata for the amount
      Compliance:
      mandatory - This method must be implemented.
    • setAmount

      void setAmount(Currency amount)
      Sets the amount.
      Parameters:
      amount - the new amount
      Throws:
      InvalidArgumentException - amount is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - amount is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAmount

      void clearAmount()
      Removes the amount.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getDebitMetadata

      Metadata getDebitMetadata()
      Gets the metadata for the debit flag.
      Returns:
      metadata for the debit flag
      Compliance:
      mandatory - This method must be implemented.
    • setDebit

      void setDebit(boolean debit)
      Sets the debit flag.
      Parameters:
      debit - true if this post entry is a debit, false if a credit
      Throws:
      InvalidArgumentException - debit is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearDebit

      void clearDebit()
      Clears the debit flag.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getPostEntryFormRecord

      PostEntryFormRecord getPostEntryFormRecord(Type postEntryRecordType) throws OperationFailedException
      Gets the PostEntryFormRecord corresponding to the given post entry record Type.
      Parameters:
      postEntryRecordType - a post entry record type
      Returns:
      the post entry form record
      Throws:
      NullArgumentException - postEntryRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(postEntryRecordType) is false
      Compliance:
      mandatory - This method must be implemented.