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 .
-
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, 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.
-
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.
-