Interface RaceConstrainerEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface RaceConstrainerEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply RaceConstrainerEnablers to RaceConstrainers . a RaceConstrainer with multiple RaceConstrainerEnablers means any positive rule evaluation across the enablers result in an effective RaceConstrainer .

  • Method Details

    • getPollsId

      Id getPollsId()
      Gets the Polls Id associated with this session.
      Returns:
      the Polls Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getPolls

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

      boolean canAssignRaceConstrainerEnablers()
      Tests if this user can alter race constrainer enabler/race constrainer 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.
    • assignRaceConstrainerEnablerToRaceConstrainer

      void assignRaceConstrainerEnablerToRaceConstrainer(Id raceConstrainerEnablerId, Id raceConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing RaceConstrainerEnabler to a RaceConstrainer .
      Parameters:
      raceConstrainerEnablerId - the Id of the RaceConstrainerEnabler
      raceConstrainerId - the Id of the RaceConstrainer
      Throws:
      AlreadyExistsException - raceConstrainerEnablerId is already applied to raceConstrainerId
      NotFoundException - raceConstrainerEnablerId or raceConstrainerId not found
      NullArgumentException - raceConstrainerEnablerId or raceConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignRaceConstrainerEnablerFromRaceConstrainer

      void unassignRaceConstrainerEnablerFromRaceConstrainer(Id raceConstrainerEnablerId, Id raceConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes a RaceConstrainerEnabler from a RaceConstrainer .
      Parameters:
      raceConstrainerEnablerId - the Id of the RaceConstrainerEnabler
      raceConstrainerId - the Id of the RaceConstrainer
      Throws:
      NotFoundException - raceConstrainerEnablerId or raceConstrainerId not found or raceConstrainerEnablerId not applied to raceConstrainerId
      NullArgumentException - raceConstrainerEnablerId or raceConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceRaceConstrainerEnablers

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

      void moveRaceConstrainerEnablerAhead(Id raceConstrainerEnablerId, Id raceConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders race constrainer enablers for a race constrainer by moving the specified race constrainer enabler in front of a reference race constrainer enabler.
      Parameters:
      raceConstrainerEnablerId - the Id of a RaceConstrainerEnabler
      raceConstrainerId - the Id of a RaceConstrainer
      referenceId - the reference race constrainer enabler Id
      Throws:
      NotFoundException - raceConstrainerEnablerId, raceConstrainerId , or referenceId not found or, raceConstrainerEnablerId or referenceId not related to raceConstrainerId
      NullArgumentException - raceConstrainerEnablerId, raceConstrainerId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveRaceConstrainerEnablerBehind

      void moveRaceConstrainerEnablerBehind(Id raceConstrainerEnablerId, Id raceConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders race constrainer enablers for a race constrainer by moving the specified race constrainer enabler behind a reference race constrainer enabler.
      Parameters:
      raceConstrainerEnablerId - the Id of a RaceConstrainerEnabler
      raceConstrainerId - the Id of a RaceConstrainer
      referenceId - the reference race constrainer enabler Id
      Throws:
      NotFoundException - raceConstrainerEnablerId, raceConstrainerId , or referenceId not found or, raceConstrainerEnablerId or referenceId not related to raceConstrainerId
      NullArgumentException - raceConstrainerEnablerId, raceConstrainerId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderRaceConstrainerEnablers

      void orderRaceConstrainerEnablers(Id[] raceConstrainerEnablerIds, Id raceConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of race constrainer enablers for a race constrainer.
      Parameters:
      raceConstrainerEnablerIds - the Ids for a set of RaceConstrainerEnablers
      raceConstrainerId - the Id of a RaceConstrainer
      Throws:
      NotFoundException - raceConstrainerId not found or, a raceConstrainerEnablerId not related to raceConstrainerId
      NullArgumentException - raceConstrainerEnablerIds or raceConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.