Interface FiscalPeriodQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable

public interface FiscalPeriodQuery extends OsidObjectQuery

This is the query for searching fiscal periods. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchDisplayLabel

      void matchDisplayLabel(String label, Type stringMatchType, boolean match)
      Adds a display label for this query.
      Parameters:
      label - label string to match
      stringMatchType - the string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - label not of stringMatchType
      NullArgumentException - label or stringMatchType is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyDisplayLabel

      void matchAnyDisplayLabel(boolean match)
      Matches a display label that has any value.
      Parameters:
      match - true to match fiscal periods with any display label, false to match fiscal periods with no display label
      Compliance:
      mandatory - This method must be implemented.
    • clearDisplayLabelTerms

      void clearDisplayLabelTerms()
      Clears the display label terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFiscalYear

      void matchFiscalYear(long from, long to, boolean match)
      Adds a fiscal year for this query to match periods in the given fiscal years inclusive.
      Parameters:
      from - start of year range
      to - end of year range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyFiscalYear

      void matchAnyFiscalYear(boolean match)
      Matches a fiscal year that has any value.
      Parameters:
      match - true to match fiscal periods with any fiscal year, false to match fiscal periods with no fiscal year
      Compliance:
      mandatory - This method must be implemented.
    • clearFiscalYearTerms

      void clearFiscalYearTerms()
      Clears the fiscal year terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchStartDate

      void matchStartDate(DateTime from, DateTime to, boolean match)
      Matches a start date within the given date range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      NullArgumentException - from or to is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyStartDate

      void matchAnyStartDate(boolean match)
      Matches a start date that has any value.
      Parameters:
      match - true to match fiscal periods with any start date, false to match fiscal periods with no start date
      Compliance:
      mandatory - This method must be implemented.
    • clearStartDateTerms

      void clearStartDateTerms()
      Clears the start date terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchEndDate

      void matchEndDate(DateTime from, DateTime to, boolean match)
      Matches an end date within the given date range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      NullArgumentException - from or to is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyEndDate

      void matchAnyEndDate(boolean match)
      Matches an end date that has any value.
      Parameters:
      match - true to match fiscal periods with any end date, false to match fiscal periods with no end date
      Compliance:
      mandatory - This method must be implemented.
    • clearEndDateTerms

      void clearEndDateTerms()
      Clears the end date terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDuration

      void matchDuration(Duration from, Duration to, boolean match)
      Matches a fiscal period duratione within the given date range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      NullArgumentException - from or to is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDurationTerms

      void clearDurationTerms()
      Clears the duration terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBudgetDeadline

      void matchBudgetDeadline(DateTime from, DateTime to, boolean match)
      Matches a budget deadline within the given date range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      NullArgumentException - from or to is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyBudgetDeadline

      void matchAnyBudgetDeadline(boolean match)
      Matches a budget deadline that has any value.
      Parameters:
      match - true to match fiscal periods with any budget deadline, false to match fiscal periods with no budget deadline
      Compliance:
      mandatory - This method must be implemented.
    • clearBudgetDeadlineTerms

      void clearBudgetDeadlineTerms()
      Clears the budget deadline terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPostingDeadline

      void matchPostingDeadline(DateTime from, DateTime to, boolean match)
      Matches a posting deadline within the given date range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      NullArgumentException - from or to is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyPostingDeadline

      void matchAnyPostingDeadline(boolean match)
      Matches a posting deadline that has any value.
      Parameters:
      match - true to match fiscal periods with any posting deadline, false to match fiscal periods with no posting deadline
      Compliance:
      mandatory - This method must be implemented.
    • clearPostingDeadlineTerms

      void clearPostingDeadlineTerms()
      Clears the posting deadline terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchClosing

      void matchClosing(DateTime from, DateTime to, boolean match)
      Matches a closing date within the given date range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      NullArgumentException - from or to is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyClosing

      void matchAnyClosing(boolean match)
      Matches a closing date that has any value.
      Parameters:
      match - true to match fiscal periods with any closing date, false to match fiscal periods with no closing date
      Compliance:
      mandatory - This method must be implemented.
    • clearClosingTerms

      void clearClosingTerms()
      Clears the closing terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBusinessId

      void matchBusinessId(Id businessId, boolean match)
      Sets the business Id for this query to match fiscal periods assigned to businesses.
      Parameters:
      businessId - the business Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - businessId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBusinessIdTerms

      void clearBusinessIdTerms()
      Clears the business Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBusinessQuery

      boolean supportsBusinessQuery()
      Tests if a BusinessQuery is available.
      Returns:
      true if a business query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBusinessQuery

      BusinessQuery getBusinessQuery()
      Gets the query for a business. Multiple retrievals produce a nested OR term.
      Returns:
      the business query
      Throws:
      UnimplementedException - supportsBusinessQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsBusinessQuery()} is {@code true} .
    • clearBusinessTerms

      void clearBusinessTerms()
      Clears the business terms.
      Compliance:
      mandatory - This method must be implemented.
    • getFiscalPeriodQueryRecord

      FiscalPeriodQueryRecord getFiscalPeriodQueryRecord(Type fiscalPeriodRecordType) throws OperationFailedException
      Gets the fiscal period query record corresponding to the given FiscalPeriod record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      fiscalPeriodRecordType - a fiscal period record type
      Returns:
      the fiscal period query record
      Throws:
      NullArgumentException - fiscalPeriodRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(fiscalPeriodRecordType) is false
      Compliance:
      mandatory - This method must be implemented.