Class AbstractOsidEnablerQuery

All Implemented Interfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable
Direct Known Subclasses:
AbstractActionEnablerQuery, AbstractAuctionConstrainerEnablerQuery, AbstractAuctionProcessorEnablerQuery, AbstractAuditEnablerQuery, AbstractAvailabilityEnablerQuery, AbstractBallotConstrainerEnablerQuery, AbstractBrokerConstrainerEnablerQuery, AbstractBrokerProcessorEnablerQuery, AbstractCanonicalUnitEnablerQuery, AbstractCanonicalUnitProcessorEnablerQuery, AbstractCatalogEnablerQuery, AbstractCommissionEnablerQuery, AbstractCommitmentEnablerQuery, AbstractCompositionEnablerQuery, AbstractContactEnablerQuery, AbstractDemographicEnablerQuery, AbstractDeviceEnablerQuery, AbstractEdgeEnablerQuery, AbstractHoldEnablerQuery, AbstractInputEnablerQuery, AbstractInquiryEnablerQuery, AbstractJobConstrainerEnablerQuery, AbstractJobProcessorEnablerQuery, AbstractObstacleEnablerQuery, AbstractOfferingConstrainerEnablerQuery, AbstractOffsetEventEnablerQuery, AbstractOsidEffectuatorQuery, AbstractOsidRuleApplicatorQuery, AbstractParameterProcessorEnablerQuery, AbstractPoolConstrainerEnablerQuery, AbstractPoolProcessorEnablerQuery, AbstractPriceEnablerQuery, AbstractProcessEnablerQuery, AbstractProfileEntryEnablerQuery, AbstractQueueConstrainerEnablerQuery, AbstractQueueConstrainerEnablerQuery, AbstractQueueProcessorEnablerQuery, AbstractQueueProcessorEnablerQuery, AbstractRaceConstrainerEnablerQuery, AbstractRaceProcessorEnablerQuery, AbstractRecurringEventEnablerQuery, AbstractRelationshipEnablerQuery, AbstractRelevancyEnablerQuery, AbstractRequisiteQuery, AbstractSequenceRuleEnablerQuery, AbstractSignalEnablerQuery, AbstractSpeedZoneEnablerQuery, AbstractStepConstrainerEnablerQuery, AbstractStepProcessorEnablerQuery, AbstractSubscriptionEnablerQuery, AbstractSupersedingEventEnablerQuery, AbstractTriggerEnablerQuery, AbstractValueEnablerQuery

public abstract class AbstractOsidEnablerQuery extends AbstractOsidRuleQuery implements OsidEnablerQuery
Defines an OsidEnablerQuery.
  • Constructor Details

    • AbstractOsidEnablerQuery

      public AbstractOsidEnablerQuery()
      Constructs a new AbstractOsidEnablerQuery.
  • Method Details

    • matchRequirement

      @OSID public void matchRequirement(boolean match)
      Matches enablers that are requirements.
      Specified by:
      matchRequirement in interface OsidEnablerQuery
      Parameters:
      match - true if for a positive match, false for a negative match
    • matchAnyRequirement

      @OSID public void matchAnyRequirement(boolean match)
      Matches OsidEnablers with any requirement flag set.
      Specified by:
      matchAnyRequirement in interface OsidEnablerQuery
      Parameters:
      match - true to match any requirement setting, false otherwise
    • clearRequirementTerms

      @OSID public void clearRequirementTerms()
      Clears all requirement terms.
      Specified by:
      clearRequirementTerms in interface OsidEnablerQuery
    • matchScheduleId

      @OSID public void matchScheduleId(Id scheduleId, boolean match)
      Match the Id of an associated schedule.
      Specified by:
      matchScheduleId in interface OsidEnablerQuery
      Parameters:
      scheduleId - Id to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - scheduleId is null
    • clearScheduleIdTerms

      @OSID public void clearScheduleIdTerms()
      Clears all schedule Id terms.
      Specified by:
      clearScheduleIdTerms in interface OsidEnablerQuery
    • supportsScheduleQuery

      @OSID public boolean supportsScheduleQuery()
      Tests if a ScheduleQuery for the rule is available.
      Specified by:
      supportsScheduleQuery in interface OsidEnablerQuery
      Returns:
      true if a schedule query is available, false otherwise
    • getScheduleQuery

      @OSID public ScheduleQuery getScheduleQuery(boolean match)
      Gets the query for the schedule. Each retrieval performs a boolean OR.
      Specified by:
      getScheduleQuery in interface OsidEnablerQuery
      Parameters:
      match - true if for a positive match, false for a negative match
      Returns:
      the schedule query
      Throws:
      UnimplementedException - supportsScheduleQuery() is false
    • matchAnySchedule

      @OSID public void matchAnySchedule(boolean match)
      Match any associated schedule.
      Specified by:
      matchAnySchedule in interface OsidEnablerQuery
      Parameters:
      match - true to match any schedule, false to match no schedules
    • clearScheduleTerms

      @OSID public void clearScheduleTerms()
      Clears all schedule terms.
      Specified by:
      clearScheduleTerms in interface OsidEnablerQuery
    • matchEventId

      @OSID public void matchEventId(Id eventId, boolean match)
      Match the Id of an associated event.
      Specified by:
      matchEventId in interface OsidEnablerQuery
      Parameters:
      eventId - Id to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - eventId is null
    • clearEventIdTerms

      @OSID public void clearEventIdTerms()
      Clears all event Id terms.
      Specified by:
      clearEventIdTerms in interface OsidEnablerQuery
    • supportsEventQuery

      @OSID public boolean supportsEventQuery()
      Tests if a EventQuery for the rule is available.
      Specified by:
      supportsEventQuery in interface OsidEnablerQuery
      Returns:
      true if an event query is available, false otherwise
    • getEventQuery

      @OSID public EventQuery getEventQuery(boolean match)
      Gets the query for the event. Each retrieval performs a boolean OR.
      Specified by:
      getEventQuery in interface OsidEnablerQuery
      Parameters:
      match - true if for a positive match, false for a negative match
      Returns:
      the event query
      Throws:
      UnimplementedException - supportsEventQuery() is false
    • matchAnyEvent

      @OSID public void matchAnyEvent(boolean match)
      Match any associated event.
      Specified by:
      matchAnyEvent in interface OsidEnablerQuery
      Parameters:
      match - true to match any event, false to match no events
    • clearEventTerms

      @OSID public void clearEventTerms()
      Clears all recurirng event terms.
      Specified by:
      clearEventTerms in interface OsidEnablerQuery
    • matchCyclicEventId

      @OSID public void matchCyclicEventId(Id cyclicEventId, boolean match)
      Sets the cyclic event Id for this query.
      Specified by:
      matchCyclicEventId in interface OsidEnablerQuery
      Parameters:
      cyclicEventId - the cyclic event Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - cyclicEventId is null
    • clearCyclicEventIdTerms

      @OSID public void clearCyclicEventIdTerms()
      Clears the cyclic event Id query terms.
      Specified by:
      clearCyclicEventIdTerms in interface OsidEnablerQuery
    • supportsCyclicEventQuery

      @OSID public boolean supportsCyclicEventQuery()
      Tests if a CyclicEventQuery is available.
      Specified by:
      supportsCyclicEventQuery in interface OsidEnablerQuery
      Returns:
      true if a cyclic event query is available, false otherwise
    • getCyclicEventQuery

      @OSID public CyclicEventQuery getCyclicEventQuery()
      Gets the query for a cyclic event. Multiple retrievals produce a nested OR term.
      Specified by:
      getCyclicEventQuery in interface OsidEnablerQuery
      Returns:
      the cyclic event query
      Throws:
      UnimplementedException - supportsCyclicEventQuery() is false
    • matchAnyCyclicEvent

      @OSID public void matchAnyCyclicEvent(boolean match)
      Matches any enabler with a cyclic event.
      Specified by:
      matchAnyCyclicEvent in interface OsidEnablerQuery
      Parameters:
      match - true to match any enablers with a cyclic event, false to match enablers with no cyclic events
    • clearCyclicEventTerms

      @OSID public void clearCyclicEventTerms()
      Clears the cyclic event query terms.
      Specified by:
      clearCyclicEventTerms in interface OsidEnablerQuery
    • matchTimePeriodId

      @OSID public void matchTimePeriodId(Id timePeriodId, boolean match)
      Sets the time period Id for this query.
      Specified by:
      matchTimePeriodId in interface OsidEnablerQuery
      Parameters:
      timePeriodId - the time period Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - timePeriodId is null
    • clearTimePeriodIdTerms

      @OSID public void clearTimePeriodIdTerms()
      Clears the time period Id query terms.
      Specified by:
      clearTimePeriodIdTerms in interface OsidEnablerQuery
    • supportsTimePeriodQuery

      @OSID public boolean supportsTimePeriodQuery()
      Tests if a TimePeriodQuery is available.
      Specified by:
      supportsTimePeriodQuery in interface OsidEnablerQuery
      Returns:
      true if a time period query is available, false otherwise
    • getTimePeriodQuery

      @OSID public TimePeriodQuery getTimePeriodQuery()
      Gets the query for a time period. Multiple retrievals produce a nested OR term.
      Specified by:
      getTimePeriodQuery in interface OsidEnablerQuery
      Returns:
      the time period query
      Throws:
      UnimplementedException - supportsTimePeriodQuery() is false
    • matchAnyTimePeriod

      @OSID public void matchAnyTimePeriod(boolean match)
      Matches any enabler with a time period.
      Specified by:
      matchAnyTimePeriod in interface OsidEnablerQuery
      Parameters:
      match - true to match any enablers with a time period, false to match enablers with no time period
    • clearTimePeriodTerms

      @OSID public void clearTimePeriodTerms()
      Clears the time period query terms.
      Specified by:
      clearTimePeriodTerms in interface OsidEnablerQuery
    • matchCyclicTimePeriodId

      @OSID public void matchCyclicTimePeriodId(Id cyclicTimePeriodId, boolean match)
      Sets the cyclic time period Id for this query.
      Specified by:
      matchCyclicTimePeriodId in interface OsidEnablerQuery
      Parameters:
      cyclicTimePeriodId - the cyclic time period Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - cyclicTimePeriodId is null
    • clearCyclicTimePeriodIdTerms

      @OSID public void clearCyclicTimePeriodIdTerms()
      Clears the cyclic time period Id query terms.
      Specified by:
      clearCyclicTimePeriodIdTerms in interface OsidEnablerQuery
    • supportsCyclicTimePeriodQuery

      @OSID public boolean supportsCyclicTimePeriodQuery()
      Tests if a CyclicTimePeriodQuery is available.
      Specified by:
      supportsCyclicTimePeriodQuery in interface OsidEnablerQuery
      Returns:
      true if a cyclic time period query is available, false otherwise
    • getCyclicTimePeriodQuery

      @OSID public CyclicTimePeriodQuery getCyclicTimePeriodQuery()
      Gets the query for a cyclic time period. Multiple retrievals produce a nested OR term.
      Specified by:
      getCyclicTimePeriodQuery in interface OsidEnablerQuery
      Returns:
      the cyclic time period query
      Throws:
      UnimplementedException - supportsCyclicTimePeriodQuery() is false
    • matchAnyCyclicTimePeriod

      @OSID public void matchAnyCyclicTimePeriod(boolean match)
      Matches any enabler with a cyclic time period.
      Specified by:
      matchAnyCyclicTimePeriod in interface OsidEnablerQuery
      Parameters:
      match - true to match any enablers with a cyclic time period, false to match enablers with no cyclic time period
    • clearCyclicTimePeriodTerms

      @OSID public void clearCyclicTimePeriodTerms()
      Clears the cyclic time period query terms.
      Specified by:
      clearCyclicTimePeriodTerms in interface OsidEnablerQuery
    • matchEffective

      @OSID public void matchEffective(boolean match)
      Match effective objects where the current date falls within the start and end dates inclusive.
      Specified by:
      matchEffective in interface OsidTemporalQuery
      Parameters:
      match - true to match any effective, false to match ineffective
    • clearEffectiveTerms

      @OSID public void clearEffectiveTerms()
      Clears the effective query terms.
      Specified by:
      clearEffectiveTerms in interface OsidTemporalQuery
    • matchStartDate

      @OSID public void matchStartDate(DateTime start, DateTime end, boolean match)
      Matches temporals whose start date falls in between the given dates inclusive.
      Specified by:
      matchStartDate in interface OsidTemporalQuery
      Parameters:
      start - start of date range
      end - end of date range
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is less than end
      NullArgumentException - start or end is null
    • matchAnyStartDate

      @OSID public void matchAnyStartDate(boolean match)
      Matches temporals with any start date set.
      Specified by:
      matchAnyStartDate in interface OsidTemporalQuery
      Parameters:
      match - true to match any start date, false to match no start date
    • clearStartDateTerms

      @OSID public void clearStartDateTerms()
      Clears the start date query terms.
      Specified by:
      clearStartDateTerms in interface OsidTemporalQuery
    • matchEndDate

      @OSID public void matchEndDate(DateTime start, DateTime end, boolean match)
      Matches temporals whose effective end date falls in between the given dates inclusive.
      Specified by:
      matchEndDate in interface OsidTemporalQuery
      Parameters:
      start - start of date range
      end - end of date range
      match - true if a positive match, false for negative match
      Throws:
      InvalidArgumentException - start is less than end
      NullArgumentException - start or end is null
    • matchAnyEndDate

      @OSID public void matchAnyEndDate(boolean match)
      Matches temporals with any end date set.
      Specified by:
      matchAnyEndDate in interface OsidTemporalQuery
      Parameters:
      match - true to match any end date, false to match no start date
    • clearEndDateTerms

      @OSID public void clearEndDateTerms()
      Clears the end date query terms.
      Specified by:
      clearEndDateTerms in interface OsidTemporalQuery
    • matchDate

      @OSID public void matchDate(DateTime from, DateTime to, boolean match)
      Matches temporals where the given date is included within the start and end dates inclusive.
      Specified by:
      matchDate in interface OsidTemporalQuery
      Parameters:
      from - start date
      to - end datedate
      match - true if a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is less than to
      NullArgumentException - from or to is null
    • clearDateTerms

      @OSID public void clearDateTerms()
      Clears the date query terms.
      Specified by:
      clearDateTerms in interface OsidTemporalQuery