Interface PoolProcessorEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface PoolProcessorEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply PoolProcessorEnablers to PoolProcessors. Multiple PoolProcessorEnablers applied to an PoolProcessor may be sequenced such that the first positive evaluation results in the PoolProcessorEnabler used.

  • Method Details

    • getDistributorId

      Id getDistributorId()
      Gets the Distributor Id associated with this session.
      Returns:
      the Distributor Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getDistributor

      Gets the Distributor associated with this session.
      Returns:
      the distributor
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canAssignPoolProcessorEnablers

      boolean canAssignPoolProcessorEnablers()
      Tests if this user can alter pool processor enabler/pool processor mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
      Returns:
      false if mapping is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • assignPoolProcessorEnablerToPoolProcessor

      void assignPoolProcessorEnablerToPoolProcessor(Id poolProcessorEnablerId, Id poolProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing PoolProcessorEnabler to a PoolProcessor.
      Parameters:
      poolProcessorEnablerId - the Id of the PoolProcessorEnabler
      poolProcessorId - the Id of the PoolProcessor
      Throws:
      AlreadyExistsException - poolProcessorEnablerId already applied to poolProcessorId
      NotFoundException - poolProcessorEnablerId or poolProcessorId not found
      NullArgumentException - poolProcessorEnablerId or poolProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignPoolProcessorEnablerFromPoolProcessor

      void unassignPoolProcessorEnablerFromPoolProcessor(Id poolProcessorEnablerId, Id poolProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing PoolProcessorEnabler from a PoolProcessor.
      Parameters:
      poolProcessorEnablerId - the Id of the PoolProcessorEnabler
      poolProcessorId - the Id of the PoolProcessor
      Throws:
      NotFoundException - poolProcessorEnablerId or poolProcessorId not found or poolProcessorEnablerId already applied to poolProcessorId
      NullArgumentException - poolProcessorEnablerId or poolProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequencePoolProcessorEnablers

      boolean canSequencePoolProcessorEnablers()
      Tests if this user can order PoolProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.
      Returns:
      false if PoolProcessorEnabler ordering is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • movePoolProcessorEnablerAhead

      void movePoolProcessorEnablerAhead(Id poolProcessorEnablerId, Id poolProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders pool processor enablers for a pool processor by moving the specified pool processor enabler in front of a reference pool processor enabler.
      Parameters:
      poolProcessorEnablerId - the Id of the PoolProcessorEnabler
      poolProcessorId - the Id of the PoolProcessor
      referenceId - the reference pool processor enabler Id
      Throws:
      NotFoundException - poolProcessorEnablerId poolProcessorId, or referenceId not found or, poolProcessorEnablerId or referenceId not related to poolProcessorId
      NullArgumentException - poolProcessorEnablerId, poolProcessorId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • movePoolProcessorEnablerBehind

      void movePoolProcessorEnablerBehind(Id poolProcessorEnablerId, Id poolProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders pool processor enablers for a pool processor by moving the specified pool processor enabler behind a reference pool processor enabler.
      Parameters:
      poolProcessorEnablerId - the Id of the PoolProcessorEnabler
      poolProcessorId - the Id of the PoolProcessor
      referenceId - the reference pool processor Id
      Throws:
      NotFoundException - poolProcessorEnablerId poolProcessorId, or referenceId not found or, poolProcessorEnablerId or referenceId not related to poolProcessorId
      NullArgumentException - poolProcessorEnablerId, poolProcessorId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderPoolProcessorEnablers

      void orderPoolProcessorEnablers(Id[] poolProcessorEnablerIds, Id poolProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of pool processor enablers for a pool processor.
      Parameters:
      poolProcessorEnablerIds - the Ids for a set of PoolProcessorEnablers
      poolProcessorId - the Id of the PoolProcessor
      Throws:
      NotFoundException - poolProcessorId not found or, a poolProcessorEnablerId not related to poolProcessorId
      NullArgumentException - poolProcessorEnablerIds or poolProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.