Interface AuthorizationEnablerQuery

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

public interface AuthorizationEnablerQuery extends OsidEffectuatorQuery

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

  • Method Details

    • matchRuledAuthorizationId

      void matchRuledAuthorizationId(Id authorizationId, boolean match)
      Matches enablers mapped to an authorization.
      Parameters:
      authorizationId - the authorization Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - authorizationId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledAuthorizationIdTerms

      void clearRuledAuthorizationIdTerms()
      Clears the authorization Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledAuthorizationQuery

      boolean supportsRuledAuthorizationQuery()
      Tests if an AuthorizationQuery is available.
      Returns:
      true if an authorization query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledAuthorizationQuery

      AuthorizationQuery getRuledAuthorizationQuery()
      Gets the query for an authorization. Multiple retrievals produce a nested OR term.
      Returns:
      the authorization query
      Throws:
      UnimplementedException - supportsRuledAuthorizationQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledAuthorizationQuery()} is {@code true} .
    • matchAnyRuledAuthorization

      void matchAnyRuledAuthorization(boolean match)
      Matches enablers mapped to any authorization.
      Parameters:
      match - true for enablers mapped to any authorization, false to match enablers mapped to no authorizations
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledAuthorizationTerms

      void clearRuledAuthorizationTerms()
      Clears the authorization query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchVaultId

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

      void clearVaultIdTerms()
      Clears the vault Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsVaultQuery

      boolean supportsVaultQuery()
      Tests if a VaultQuery is available.
      Returns:
      true if a vault query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getVaultQuery

      VaultQuery getVaultQuery()
      Gets the query for a vault. Multiple retrievals produce a nested OR term.
      Returns:
      the vault query
      Throws:
      UnimplementedException - supportsVaultQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsVaultQuery()} is {@code true} .
    • clearVaultTerms

      void clearVaultTerms()
      Clears the vault query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getAuthorizationEnablerQueryRecord

      AuthorizationEnablerQueryRecord getAuthorizationEnablerQueryRecord(Type authorizationEnablerRecordType) throws OperationFailedException
      Gets the authorization enabler query record corresponding to the given AuthorizationEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      authorizationEnablerRecordType - an authorization enabler record type
      Returns:
      the authorization enabler query record
      Throws:
      NullArgumentException - authorizationEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(authorizationEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.