Interface JobConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 Summary
Modifier and TypeMethodDescriptionvoidassignJobConstrainerToJob(Id jobConstrainerId, Id jobId) Adds an existingJobConstrainerto aJob.booleanTests if this user can alter job constrainer/job mappings.booleanTests if this user can orderJobConstrainers.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.voidmoveJobConstrainerAhead(Id jobConstrainerId, Id jobId, Id referenceId) Reorders job constrainers for a job constrainer by moving the specified job constrainer in front of a reference job constrainer.voidmoveJobConstrainerBehind(Id jobConstrainerId, Id jobId, Id referenceId) Reorders job constrainers for a job constrainer by moving the specified job constrainer behind a reference job constrainer.voidorderJobConstrainers(Id[] jobConstrainerIds, Id jobId) Reorders a set of job constrainer for a job.voidunassignJobConstrainerFromJob(Id jobConstrainerId, Id jobId) Removes aJobConstrainerfrom aJob.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getFoundryId
Id getFoundryId()Gets theFoundryIdassociated with this session.- Returns:
- the
Foundry Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFoundry
Gets theFoundryassociated with this session.- Returns:
- the foundry
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignJobConstrainerToJob
void assignJobConstrainerToJob(Id jobConstrainerId, Id jobId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingJobConstrainerto aJob.- Parameters:
jobConstrainerId- theIdof theJobConstrainerjobId- theIdof theJob- Throws:
AlreadyExistsException-jobConstrainerIdis already applied tojobIdNotFoundException-jobConstrainerIdorjobIdnot foundNullArgumentException-jobConstrainerIdorjobIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignJobConstrainerFromJob
void unassignJobConstrainerFromJob(Id jobConstrainerId, Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aJobConstrainerfrom aJob.- Parameters:
jobConstrainerId- theIdof theJobConstrainerjobId- theIdof theJob- Throws:
NotFoundException-jobConstrainerIdorjobIdnot found orjobConstrainerIdnot applied tojobIdNullArgumentException-jobConstrainerIdorjobIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceJobConstrainers
boolean canSequenceJobConstrainers()Tests if this user can orderJobConstrainers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifJobConstrainerordering is not authorized,trueotherwise- 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- theIdof aJobConstrainerjobId- theIdof aJobreferenceId- the reference job constrainerId- Throws:
NotFoundException-jobConstrainerId, jobId, orreferenceIdnot found or,jobConstrainerIdorreferenceIdnot related tojobIdNullArgumentException-jobConstrainerId, jobId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- 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- theIdof aJobConstrainerjobId- theIdof aJobreferenceId- the reference job constrainerId- Throws:
NotFoundException-jobConstrainerId, jobId, orreferenceIdnot found or,jobConstrainerIdorreferenceIdnot related tojobIdNullArgumentException-jobConstrainerId, jobId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- 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- theIdsfor a set ofJobConstrainersjobId- theIdof aJob- Throws:
NotFoundException-jobIdnot found or, ajobConstrainerIdnot related tojobIdNullArgumentException-jobConstrainerIdsorjobIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-