Interface FiscalPeriodForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
All Known Subinterfaces:
FiscalPeriodBatchForm

public interface FiscalPeriodForm extends OsidObjectForm

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

  • Method Details

    • getDisplayLabelMetadata

      Metadata getDisplayLabelMetadata()
      Gets the metadata for a display label.
      Returns:
      metadata for the display label
      Compliance:
      mandatory - This method must be implemented.
    • setDisplayLabel

      void setDisplayLabel(String label)
      Sets the display label.
      Parameters:
      label - the new display label
      Throws:
      InvalidArgumentException - label is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - label is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDisplayLabel

      void clearDisplayLabel()
      Removes the display label.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getFiscalYearMetadata

      Metadata getFiscalYearMetadata()
      Gets the metadata for a fiscal year.
      Returns:
      metadata for the fiscal year
      Compliance:
      mandatory - This method must be implemented.
    • setFiscalYear

      void setFiscalYear(long year)
      Sets the fiscal year.
      Parameters:
      year - the new fiscal year
      Throws:
      InvalidArgumentException - year is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearFiscalYear

      void clearFiscalYear()
      Removes the fiscal year.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getStartDateMetadata

      Metadata getStartDateMetadata()
      Gets the metadata for the start date.
      Returns:
      metadata for the start date
      Compliance:
      mandatory - This method must be implemented.
    • setStartDate

      void setStartDate(DateTime date)
      Sets the start date.
      Parameters:
      date - the new start date
      Throws:
      InvalidArgumentException - date is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - date is null
      Compliance:
      mandatory - This method must be implemented.
    • clearStartDate

      void clearStartDate()
      Removes the start date.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getEndDateMetadata

      Metadata getEndDateMetadata()
      Gets the metadata for the end date.
      Returns:
      metadata for the end date
      Compliance:
      mandatory - This method must be implemented.
    • setEndDate

      void setEndDate(DateTime date)
      Sets the end date.
      Parameters:
      date - the new end date
      Throws:
      InvalidArgumentException - date is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - date is null
      Compliance:
      mandatory - This method must be implemented.
    • clearEndDate

      void clearEndDate()
      Removes the end date.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getBudgetDeadlineMetadata

      Metadata getBudgetDeadlineMetadata()
      Gets the metadata for the budget deadline.
      Returns:
      metadata for the budget deadline
      Compliance:
      mandatory - This method must be implemented.
    • setBudgetDeadline

      void setBudgetDeadline(DateTime date)
      Sets the budget deadline.
      Parameters:
      date - the new budget deadline
      Throws:
      InvalidArgumentException - date is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - date is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBudgetDeadline

      void clearBudgetDeadline()
      Removes the budget deadline.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getPostingDeadlineMetadata

      Metadata getPostingDeadlineMetadata()
      Gets the metadata for the posting deadline.
      Returns:
      metadata for the posting deadline
      Compliance:
      mandatory - This method must be implemented.
    • setPostingDeadline

      void setPostingDeadline(DateTime date)
      Sets the posting deadline.
      Parameters:
      date - the new posting deadline
      Throws:
      InvalidArgumentException - date is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - date is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPostingDeadline

      void clearPostingDeadline()
      Removes the posting deadline.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getClosingMetadata

      Metadata getClosingMetadata()
      Gets the metadata for the closing date.
      Returns:
      metadata for the closing date
      Compliance:
      mandatory - This method must be implemented.
    • setClosing

      void setClosing(DateTime date)
      Sets the closing date.
      Parameters:
      date - the new closting date
      Throws:
      InvalidArgumentException - date is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - date is null
      Compliance:
      mandatory - This method must be implemented.
    • clearClosing

      void clearClosing()
      Removes the closting date.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getFiscalPeriodFormRecord

      FiscalPeriodFormRecord getFiscalPeriodFormRecord(Type fiscalPeriodRecordType) throws OperationFailedException
      Gets the FiscalPeriodFormRecord corresponding to the given fiscal period record Type.
      Parameters:
      fiscalPeriodRecordType - a fiscal period record type
      Returns:
      the fiscal period form record
      Throws:
      NullArgumentException - fiscalPeriodRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(fiscalPeriodRecordType) is false
      Compliance:
      mandatory - This method must be implemented.