Interface SubscriptionEnablerQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable

public interface SubscriptionEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledSubscriptionId

      void matchRuledSubscriptionId(Id subscriptionId, boolean match)
      Matches enablers mapped to the subscription.
      Parameters:
      subscriptionId - the subscription Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - subscriptionId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledSubscriptionIdTerms

      void clearRuledSubscriptionIdTerms()
      Clears the subscription Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledSubscriptionQuery

      boolean supportsRuledSubscriptionQuery()
      Tests if a SubscriptionQuery is available.
      Returns:
      true if a subscription query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledSubscriptionQuery

      SubscriptionQuery getRuledSubscriptionQuery()
      Gets the query for a subscription. Multiple retrievals produce a nested OR term.
      Returns:
      the subscription query
      Throws:
      UnimplementedException - supportsRuledSubscriptionQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledSubscriptionQuery()} is {@code true} .
    • matchAnyRuledSubscription

      void matchAnyRuledSubscription(boolean match)
      Matches enablers mapped to any subscription.
      Parameters:
      match - true for enablers mapped to any subscription, false to match enablers mapped to no subscription
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledSubscriptionTerms

      void clearRuledSubscriptionTerms()
      Clears the subscription query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPublisherId

      void matchPublisherId(Id publisherId, boolean match)
      Matches enablers mapped to the publisher.
      Parameters:
      publisherId - the publisher Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - publisherId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPublisherIdTerms

      void clearPublisherIdTerms()
      Clears the publisher Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPublisherQuery

      boolean supportsPublisherQuery()
      Tests if a PublisherQuery is available.
      Returns:
      true if a publisher query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPublisherQuery

      PublisherQuery getPublisherQuery()
      Gets the query for a publisher. Multiple retrievals produce a nested OR term.
      Returns:
      the publisher query
      Throws:
      UnimplementedException - supportsPublisherQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPublisherQuery()} is {@code true} .
    • clearPublisherTerms

      void clearPublisherTerms()
      Clears the publisher query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getSubscriptionEnablerQueryRecord

      SubscriptionEnablerQueryRecord getSubscriptionEnablerQueryRecord(Type subscriptionEnablerRecordType) throws OperationFailedException
      Gets the subscription enabler query record corresponding to the given SubscriptionEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      subscriptionEnablerRecordType - a subscription enabler record type
      Returns:
      the subscription enabler query record
      Throws:
      NullArgumentException - subscriptionEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(subscriptionEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.