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.
| Modifier and Type | Method and Description |
|---|---|
void |
assignJobConstrainerToJob(Id jobConstrainerId,
Id jobId)
Adds an existing
JobConstrainer to a Job. |
boolean |
canAssignJobConstrainers()
Tests if this user can alter job constrainer/job mappings.
|
boolean |
canSequenceJobConstrainers()
Tests if this user can order
JobConstrainers. |
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
void |
moveJobConstrainerAhead(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.
|
void |
moveJobConstrainerBehind(Id jobConstrainerId,
Id jobId,
Id referenceId)
Reorders job constrainers for a job constrainer by moving the
specified job constrainer behind a reference job constrainer.
|
void |
orderJobConstrainers(Id[] jobConstrainerIds,
Id jobId)
Reorders a set of job constrainer for a job.
|
void |
unassignJobConstrainerFromJob(Id jobConstrainerId,
Id jobId)
Removes a
JobConstrainer from a Job. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getFoundryId()
Foundry Id associated with this
session. Foundry Id associated with this sessionmandatory - This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignJobConstrainers()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. void assignJobConstrainerToJob(Id jobConstrainerId, Id jobId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainer to a Job.
jobConstrainerId - the Id of the
JobConstrainer jobId - the Id of the Job AlreadyExistsException - jobConstrainerId
is already applied to jobId NotFoundException - jobConstrainerId or
jobId not foundNullArgumentException - jobConstrainerId
or jobId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignJobConstrainerFromJob(Id jobConstrainerId, Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainer from a Job. jobConstrainerId - the Id of the
JobConstrainer jobId - the Id of the Job NotFoundException - jobConstrainerId or
jobId not found or jobConstrainerId
not applied to jobId NullArgumentException - jobConstrainerId
or jobId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequenceJobConstrainers()
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. false if JobConstrainer ordering
is not authorized, true otherwisemandatory - This method must be implemented. void moveJobConstrainerAhead(Id jobConstrainerId, Id jobId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
jobConstrainerId - the Id of a
JobConstrainer jobId - the Id of a Job referenceId - the reference job constrainer Id 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 requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void moveJobConstrainerBehind(Id jobConstrainerId, Id jobId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
jobConstrainerId - the Id of a
JobConstrainer jobId - the Id of a Job referenceId - the reference job constrainer Id 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 requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderJobConstrainers(Id[] jobConstrainerIds, Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException
jobConstrainerIds - the Ids for a set of
JobConstrainers jobId - the Id of a Job NotFoundException - jobId not found or,
a jobConstrainerId not related to jobId
NullArgumentException - jobConstrainerIds
or jobId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.