Interface JobProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply JobProcessorEnablers to
JobProcessors. A JobProcessor with multiple
JobProcessorEnablers means any positive rule evaluation across the
enablers result in an effective JobProcessor.
Like all OsidSessions,
JobProcessorEnablerRuleApplicationSessions are dedicated to single
processing threads and a single authenticated user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignJobProcessorEnablerToJobProcessor(Id jobProcessorEnablerId, Id jobProcessorId) Adds an existingJobProcessorEnablerto aJobProcessor.booleanTests if this user can alter job processor enabler/job processor mappings.booleanTests if this user can orderJobProcessorEnablers.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.voidmoveJobProcessorEnablerAhead(Id jobProcessorEnablerId, Id jobProcessorId, Id referenceId) Reorders job processor enablers for a job processor by moving the specified job processor enabler in front of a reference job processor enabler.voidmoveJobProcessorEnablerBehind(Id jobProcessorEnablerId, Id jobProcessorId, Id referenceId) Reorders job processor enablers for a job processor by moving the specified job processor enabler behind a reference job processor enabler.voidorderJobProcessorEnablers(Id[] jobProcessorEnablerIds, Id jobProcessorId) Reorders a set of job processor enablers for a job processor.voidunassignJobProcessorEnablerFromJobProcessor(Id jobProcessorEnablerId, Id jobProcessorId) Removes aJobProcessorEnablerfrom aJobProcessor.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
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.
-
canAssignJobProcessorEnablers
boolean canAssignJobProcessorEnablers()Tests if this user can alter job processor enabler/job processor 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.
-
assignJobProcessorEnablerToJobProcessor
void assignJobProcessorEnablerToJobProcessor(Id jobProcessorEnablerId, Id jobProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingJobProcessorEnablerto aJobProcessor.- Parameters:
jobProcessorEnablerId- theIdof theJobProcessorEnablerjobProcessorId- theIdof theJobProcessor- Throws:
AlreadyExistsException-jobProcessorEnablerIdis already applied tojobProcessorIdNotFoundException-jobProcessorEnablerIdorjobProcessorIdnot foundNullArgumentException-jobProcessorEnablerIdorjobProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignJobProcessorEnablerFromJobProcessor
void unassignJobProcessorEnablerFromJobProcessor(Id jobProcessorEnablerId, Id jobProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aJobProcessorEnablerfrom aJobProcessor.- Parameters:
jobProcessorEnablerId- theIdof theJobProcessorEnablerjobProcessorId- theIdof theJobProcessor- Throws:
NotFoundException-jobProcessorEnablerIdorjobProcessorIdnot found orjobProcessorEnablerIdnot applied tojobProcessorIdNullArgumentException-jobProcessorEnablerIdorjobProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceJobProcessorEnablers
boolean canSequenceJobProcessorEnablers()Tests if this user can orderJobProcessorEnablers. 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:
falseifJobProcessornEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveJobProcessorEnablerAhead
void moveJobProcessorEnablerAhead(Id jobProcessorEnablerId, Id jobProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders job processor enablers for a job processor by moving the specified job processor enabler in front of a reference job processor enabler.- Parameters:
jobProcessorEnablerId- theIdof aJobProcessorEnablerjobProcessorId- theIdof aJobProcessorreferenceId- the reference job processor enablerId- Throws:
NotFoundException-jobProcessorEnablerId, jobProcessorId, orreferenceIdnot found or,jobProcessorEnablerIdorreferenceIdnot related tojobProcessorIdNullArgumentException-jobProcessorEnablerId, jobProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveJobProcessorEnablerBehind
void moveJobProcessorEnablerBehind(Id jobProcessorEnablerId, Id jobProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders job processor enablers for a job processor by moving the specified job processor enabler behind a reference job processor enabler.- Parameters:
jobProcessorEnablerId- theIdof aJobProcessorEnablerjobProcessorId- theIdof aJobProcessorreferenceId- the reference job processor enablerId- Throws:
NotFoundException-jobProcessorEnablerId, jobProcessorId, orreferenceIdnot found or,jobProcessorEnablerIdorreferenceIdnot related tojobProcessorIdNullArgumentException-jobProcessorEnablerId, jobProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderJobProcessorEnablers
void orderJobProcessorEnablers(Id[] jobProcessorEnablerIds, Id jobProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of job processor enablers for a job processor.- Parameters:
jobProcessorEnablerIds- theIdsfor a set ofJobProcessorEnablersjobProcessorId- theIdof aJobProcessor- Throws:
NotFoundException-jobProcessorIdnot found or, ajobProcessorEnablerIdnot related tojobProcessorIdNullArgumentException-jobProcessorEnablerIdsorjobProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-