Interface JobConstrainerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface JobConstrainerRuleApplicationSession extends OsidSession

This session provides methods to apply JobConstrainers to Jobs . A Job with multiple JobConstrainers means any positive rule evaluation across the result in an effective Job .

  • Method Details

    • getFoundryId

      Id getFoundryId()
      Gets the Foundry Id associated with this session.
      Returns:
      the Foundry Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getFoundry

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

      boolean canAssignJobConstrainers()
      Tests if this user can alter job constrainer/job 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.
    • assignJobConstrainerToJob

      void assignJobConstrainerToJob(Id jobConstrainerId, Id jobId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing JobConstrainer to a Job .
      Parameters:
      jobConstrainerId - the Id of the JobConstrainer
      jobId - the Id of the Job
      Throws:
      AlreadyExistsException - jobConstrainerId is already applied to jobId
      NotFoundException - jobConstrainerId or jobId not found
      NullArgumentException - jobConstrainerId or jobId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignJobConstrainerFromJob

      void unassignJobConstrainerFromJob(Id jobConstrainerId, Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes a JobConstrainer from a Job .
      Parameters:
      jobConstrainerId - the Id of the JobConstrainer
      jobId - the Id of the Job
      Throws:
      NotFoundException - jobConstrainerId or jobId not found or jobConstrainerId not applied to jobId
      NullArgumentException - jobConstrainerId or jobId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceJobConstrainers

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

      void moveJobConstrainerAhead(Id jobConstrainerId, Id jobId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders job constrainers for a job constrainer by moving the specified job constrainer in front of a reference job constrainer.
      Parameters:
      jobConstrainerId - the Id of a JobConstrainer
      jobId - the Id of a Job
      referenceId - the reference job constrainer Id
      Throws:
      NotFoundException - jobConstrainerId, jobId , or referenceId not found or, jobConstrainerId or referenceId not related to jobId
      NullArgumentException - jobConstrainerId, jobId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveJobConstrainerBehind

      void moveJobConstrainerBehind(Id jobConstrainerId, Id jobId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders job constrainers for a job constrainer by moving the specified job constrainer behind a reference job constrainer.
      Parameters:
      jobConstrainerId - the Id of a JobConstrainer
      jobId - the Id of a Job
      referenceId - the reference job constrainer Id
      Throws:
      NotFoundException - jobConstrainerId, jobId , or referenceId not found or, jobConstrainerId or referenceId not related to jobId
      NullArgumentException - jobConstrainerId, jobId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderJobConstrainers

      void orderJobConstrainers(Id[] jobConstrainerIds, Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of job constrainer for a job.
      Parameters:
      jobConstrainerIds - the Ids for a set of JobConstrainers
      jobId - the Id of a Job
      Throws:
      NotFoundException - jobId not found or, a jobConstrainerId not related to jobId
      NullArgumentException - jobConstrainerIds or jobId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.