Interface ParameterProcessorRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface ParameterProcessorRuleApplicationSession extends OsidSession

This session provides methods to apply ParameterProcessors to Parameters .

  • Method Details

    • getConfigurationId

      Id getConfigurationId()
      Gets the Configuration Id associated with this session.
      Returns:
      the Configuration Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getConfiguration

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

      boolean canAssignParameterProcessors()
      Tests if this user can alter parameter processor/parameter 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.
    • assignParameterProcessorToParameter

      void assignParameterProcessorToParameter(Id parameterProcessorId, Id parameterId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing ParameterProcessor to a Parameter .
      Parameters:
      parameterProcessorId - the Id of the ParameterProcessor
      parameterId - the Id of the Parameter
      Throws:
      AlreadyExistsException - parameterProcessorId is already applied to parameterId
      NotFoundException - parameterProcessorId or parameterId not found
      NullArgumentException - parameterProcessorId or parameterId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignParameterProcessorFromParameter

      void unassignParameterProcessorFromParameter(Id parameterProcessorId, Id parameterId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes a ParameterProcessor from a Parameter .
      Parameters:
      parameterProcessorId - the Id of the ParameterProcessor
      parameterId - the Id of the Parameter
      Throws:
      NotFoundException - parameterProcessorId or parameterId not found or parameterProcessorId is not applied to parameterId
      NullArgumentException - parameterProcessorId or parameterId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceParameterProcessors

      boolean canSequenceParameterProcessors()
      Tests if this user can order ParametereProcessors . 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 ParameterProcessor ordering is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • moveParameterProcessorAhead

      void moveParameterProcessorAhead(Id parameterProcessorId, Id parameterId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders parameter processors for a parameter by moving the specified parameter processors in front of a reference parameter.
      Parameters:
      parameterProcessorId - the Id of a ParameterProcessor
      parameterId - the Id of a Parameter
      referenceId - the reference parameter processor Id
      Throws:
      NotFoundException - parameterProcessorId, parameterId , or referenceId not found or, parameterProcessorId , or referenceId not related to parameterId
      NullArgumentException - parameterProcessorId, parameterId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveParameterProcessorBehind

      void moveParameterProcessorBehind(Id parameterProcessorId, Id parameterId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders parameter processors for a parameter by moving the specified parameter processor behind a reference parameter processor.
      Parameters:
      parameterProcessorId - the Id of a ParameterProcessor
      parameterId - the Id of a Parameter
      referenceId - the reference parameter processor Id
      Throws:
      NotFoundException - parameterProcessorId, parameterId , or referenceId not found or, parameterProcessorId , or referenceId not related to parameterId
      NullArgumentException - parameterProcessorId, parameterId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderParameterProcessors

      void orderParameterProcessors(Id[] parameterProcessorIds, Id parameterId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of parameter processors for a parameter.
      Parameters:
      parameterProcessorIds - the Ids for a set of ParameterProcessors
      parameterId - the Id of a Parameter
      Throws:
      NotFoundException - parameterId not found or, a parameterProcessorId not related to parameterId
      NullArgumentException - parameterProcessorIds or parameterId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.