Interface JobConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply JobConstrainerEnablers
to JobConstrainers . A JobConstrainer with multiple
JobConstrainerEnablers means any positive rule evaluation across the
enablers result in an effective JobConstrainer .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignJobConstrainerEnablerToJobConstrainer(Id jobConstrainerEnablerId, Id jobConstrainerId) Adds an existingJobConstrainerEnablerto aJobConstrainer.booleanTests if this user can alter job constrainer enabler/job constrainer mappings.booleanTests if this user can orderJobConstrainerEnablers.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.voidmoveJobConstrainerEnablerAhead(Id jobConstrainerEnablerId, Id jobConstrainerId, Id referenceId) Reorders job constrainer enablers for a job constrainer by moving the specified job constrainer enabler in front of a reference job constrainer enabler.voidmoveJobConstrainerEnablerBehind(Id jobConstrainerEnablerId, Id jobConstrainerId, Id referenceId) Reorders job constrainer enablers for a job constrainer by moving the specified job constrainer enabler behind a reference job constrainer enabler.voidorderJobConstrainerEnablers(Id[] jobConstrainerEnablerIds, Id jobConstrainerId) Reorders a set of job constrainer enablers for a job constrainer.voidunassignJobConstrainerEnablerFromJobConstrainer(Id jobConstrainerEnablerId, Id jobConstrainerId) Removes aJobConstrainerEnablerfrom aJobConstrainer.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.
-
canAssignJobConstrainerEnablers
boolean canAssignJobConstrainerEnablers()Tests if this user can alter job constrainer enabler/job constrainer 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.
-
assignJobConstrainerEnablerToJobConstrainer
void assignJobConstrainerEnablerToJobConstrainer(Id jobConstrainerEnablerId, Id jobConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingJobConstrainerEnablerto aJobConstrainer.- Parameters:
jobConstrainerEnablerId- theIdof theJobConstrainerEnablerjobConstrainerId- theIdof theJobConstrainer- Throws:
AlreadyExistsException-jobConstrainerEnablerIdis already applied tojobConstrainerIdNotFoundException-jobConstrainerEnablerIdorjobConstrainerIdnot foundNullArgumentException-jobConstrainerEnablerIdorjobConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignJobConstrainerEnablerFromJobConstrainer
void unassignJobConstrainerEnablerFromJobConstrainer(Id jobConstrainerEnablerId, Id jobConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aJobConstrainerEnablerfrom aJobConstrainer.- Parameters:
jobConstrainerEnablerId- theIdof theJobConstrainerEnablerjobConstrainerId- theIdof theJobConstrainer- Throws:
NotFoundException-jobConstrainerEnablerIdorjobConstrainerIdnot found orjobConstrainerEnablerIdnot applied tojobConstrainerIdNullArgumentException-jobConstrainerEnablerIdorjobConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceJobConstrainerEnablers
boolean canSequenceJobConstrainerEnablers()Tests if this user can orderJobConstrainerEnablers. 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:
falseifJobConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveJobConstrainerEnablerAhead
void moveJobConstrainerEnablerAhead(Id jobConstrainerEnablerId, Id jobConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders job constrainer enablers for a job constrainer by moving the specified job constrainer enabler in front of a reference job constrainer enabler.- Parameters:
jobConstrainerEnablerId- theIdof aJobConstrainerEnablerjobConstrainerId- theIdof aJobConstrainerreferenceId- the reference job constrainer enablerId- Throws:
NotFoundException-jobConstrainerEnablerId, jobConstrainenId, orreferenceIdnot found or,jobConstrainerEnablerIdorreferenceIdnot related tojobConstrainerIdNullArgumentException-jobConstrainerEnablerId, jobConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveJobConstrainerEnablerBehind
void moveJobConstrainerEnablerBehind(Id jobConstrainerEnablerId, Id jobConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders job constrainer enablers for a job constrainer by moving the specified job constrainer enabler behind a reference job constrainer enabler.- Parameters:
jobConstrainerEnablerId- theIdof aJobConstrainerEnablerjobConstrainerId- theIdof aJobConstrainerreferenceId- the reference job constrainer enablerId- Throws:
NotFoundException-jobConstrainerEnablerId, jobConstrainerId, orreferenceIdnot found or,jobConstrainerEnablerIdorreferenceIdnot related tojobConstrainerIdNullArgumentException-jobConstrainerEnablerId, jobConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderJobConstrainerEnablers
void orderJobConstrainerEnablers(Id[] jobConstrainerEnablerIds, Id jobConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of job constrainer enablers for a job constrainer.- Parameters:
jobConstrainerEnablerIds- theIdsfor a set ofJobConstrainerEnablersjobConstrainerId- theIdof aJobConstrainer- Throws:
NotFoundException-jobConstrainerIdnot found or, ajobConstrainerEnablerIdnot related tojobConstrainerIdNullArgumentException-jobConstrainerEnablerIdsorjobConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-