Interface JobProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply JobProcessors to
Jobs .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignJobProcessorToJob(Id jobProcessorId, Id jobId) Adds an existingJobProcessorto aJob.booleanTests if this user can alter job processor/job mappings.booleanTests if this user can orderJobProcessors.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.voidmoveJobProcessorAhead(Id jobProcessorId, Id jobId, Id referenceId) Reorders job processors for a job by moving the specified job enabler in front of a reference job processor.voidmoveJobProcessorBehind(Id jobProcessorId, Id jobId, Id referenceId) Reorders job processors for a job by moving the specified job enabler behind a reference job processor.voidorderJobProcessors(Id[] jobProcessorIds, Id jobId) Reorders a set of job processors for a job.voidunassignJobProcessorFromJob(Id jobProcessorId, Id jobId) Removes aJobProcessorfrom 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.
-
canAssignJobProcessors
boolean canAssignJobProcessors()Tests if this user can alter job processor/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.
-
assignJobProcessorToJob
void assignJobProcessorToJob(Id jobProcessorId, Id jobId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingJobProcessorto aJob.- Parameters:
jobProcessorId- theIdof theJobProcessorjobId- theIdof theJob- Throws:
AlreadyExistsException-jobProcessorIdis already applied tojobIdNotFoundException-jobProcessorIdorjobIdnot foundNullArgumentException-jobProcessorIdorjobIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignJobProcessorFromJob
void unassignJobProcessorFromJob(Id jobProcessorId, Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aJobProcessorfrom aJob.- Parameters:
jobProcessorId- theIdof theJobProcessorjobId- theIdof theJob- Throws:
NotFoundException-jobProcessorIdorjobIdnot found orjobProcessorIdnot applied tojobIdNullArgumentException-jobProcessorIdorjobIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceJobProcessors
boolean canSequenceJobProcessors()Tests if this user can orderJobProcessors. 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:
falseifJobProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveJobProcessorAhead
void moveJobProcessorAhead(Id jobProcessorId, Id jobId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders job processors for a job by moving the specified job enabler in front of a reference job processor.- Parameters:
jobProcessorId- theIdof aJobProcessorjobId- theIdof aJobreferenceId- the reference job processorId- Throws:
NotFoundException-jobProcessorId, jobId, orreferenceIdnot found or,jobProcessorIdorreferenceIdnot related tojobIdNullArgumentException-jobProcessorId, jobId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveJobProcessorBehind
void moveJobProcessorBehind(Id jobProcessorId, Id jobId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders job processors for a job by moving the specified job enabler behind a reference job processor.- Parameters:
jobProcessorId- theIdof aJobProcessorjobId- theIdof aJobreferenceId- the reference job processorId- Throws:
NotFoundException-jobProcessorId, jobId, orreferenceIdnot found or,jobProcessorIdorreferenceIdnot related tojobIdNullArgumentException-jobProcessorId, jobId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderJobProcessors
void orderJobProcessors(Id[] jobProcessorIds, Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of job processors for a job.- Parameters:
jobProcessorIds- theIdsfor a set ofJobProcessorjobId- theIdof aJob- Throws:
NotFoundException-jobIdnot found or, ajobProcessorIdnot related tojobIdNullArgumentException-jobProcessorIdsorjobIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-