Interface DispatchConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
DispatchConstrainerEnablers to DispatchConstrainers . Multiple
DispatchConstrainerEnablers applied to an
DispatchConstrainer may be sequenced such that the first positive
evaluation results in the DispatchConstrainerEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignDispatchConstrainerEnablerToDispatchConstrainer(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId) Adds an existingDispatchConstrainerEnablerto aDispatchConstrainer.booleanTests if this user can alter dispatch constrainer enabler/dispatch constrainer mappings.booleanTests if this user can orderDispatchConstrainerEnablers.Gets thePublisherassociated with this session.Gets thePublisherIdassociated with this session.voidmoveDispatchConstrainerEnablerAhead(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId, Id referenceId) Reorders dispatch constrainer enablers for a dispatch constrainer by moving the specified dispatch constrainer enabler in front of a reference dispatch constrainer enabler.voidmoveDispatchConstrainerEnablerBehind(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId, Id referenceId) Reorders dispatch constrainer enablers for a dispatch constrainer by moving the specified dispatch constrainer enabler behind a reference dispatch constrainer enabler.voidorderDispatchConstrainerEnablers(Id[] dispatchConstrainerEnablerIds, Id dispatchConstrainerId) Reorders a set of dispatch constrainer enablers for a dispatch constrainer.voidunassignDispatchConstrainerEnablerFromDispatchConstrainer(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId) Removes an existingDispatchConstrainerEnablerfrom aDispatchConstrainer.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
-
getPublisherId
Id getPublisherId()Gets thePublisherIdassociated with this session.- Returns:
- the
Publisher Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getPublisher
Gets thePublisherassociated with this session.- Returns:
- the publisher
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignDispatchConstrainerEnablers
boolean canAssignDispatchConstrainerEnablers()Tests if this user can alter dispatch constrainer enabler/dispatch 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.
-
assignDispatchConstrainerEnablerToDispatchConstrainer
void assignDispatchConstrainerEnablerToDispatchConstrainer(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingDispatchConstrainerEnablerto aDispatchConstrainer.- Parameters:
dispatchConstrainerEnablerId- theIdof theDispatchConstrainerEnablerdispatchConstrainerId- theIdof theDispatchConstrainer- Throws:
AlreadyExistsException-dispatchConstrainerEnablerIdalready applied todispatchConstrainerIdNotFoundException-dispatchConstrainerEnablerIdordispatchConstrainerIdnot foundNullArgumentException-dispatchConstrainerEnablerIdordispatchConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignDispatchConstrainerEnablerFromDispatchConstrainer
void unassignDispatchConstrainerEnablerFromDispatchConstrainer(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingDispatchConstrainerEnablerfrom aDispatchConstrainer.- Parameters:
dispatchConstrainerEnablerId- theIdof theDispatchConstrainerEnablerdispatchConstrainerId- theIdof theDispatchConstrainer- Throws:
NotFoundException-dispatchConstrainerEnablerIdordispatchConstrainerIdnot found ordispatchConstrainerEnablerIdalready applied todispatchConstrainerIdNullArgumentException-dispatchConstrainerEnablerIdordispatchConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceDispatchConstrainerEnablers
boolean canSequenceDispatchConstrainerEnablers()Tests if this user can orderDispatchConstrainerEnablers. 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:
falseifDispatchConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveDispatchConstrainerEnablerAhead
void moveDispatchConstrainerEnablerAhead(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch constrainer enablers for a dispatch constrainer by moving the specified dispatch constrainer enabler in front of a reference dispatch constrainer enabler.- Parameters:
dispatchConstrainerEnablerId- theIdof theDispatchConstrainerEnablerdispatchConstrainerId- theIdof theDispatchConstrainerreferenceId- the reference dispatch constrainer enablerId- Throws:
NotFoundException-dispatchConstrainerEnablerId dispatchConstrainerId, orreferenceIdnot found or,dispatchConstrainerEnablerIdorreferenceIdnot related todispatchConstrainerIdNullArgumentException-dispatchConstrainerEnablerId, dispatchConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveDispatchConstrainerEnablerBehind
void moveDispatchConstrainerEnablerBehind(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders dispatch constrainer enablers for a dispatch constrainer by moving the specified dispatch constrainer enabler behind a reference dispatch constrainer enabler.- Parameters:
dispatchConstrainerEnablerId- theIdof theDispatchConstrainerEnablerdispatchConstrainerId- theIdof theDispatchConstrainerreferenceId- the reference dispatch constrainerId- Throws:
NotFoundException-dispatchConstrainerEnablerId dispatchConstrainerId, orreferenceIdnot found or,dispatchConstrainerEnablerIdorreferenceIdnot related todispatchConstrainerIdNullArgumentException-dispatchConstrainerEnablerId, dispatchConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderDispatchConstrainerEnablers
void orderDispatchConstrainerEnablers(Id[] dispatchConstrainerEnablerIds, Id dispatchConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of dispatch constrainer enablers for a dispatch constrainer.- Parameters:
dispatchConstrainerEnablerIds- theIdsfor a set ofDispatchConstrainerEnablersdispatchConstrainerId- theIdof theDispatchConstrainer- Throws:
NotFoundException-dispatchConstrainerIdnot found or, adispatchConstrainerEnablerIdnot related todispatchConstrainerIdNullArgumentException-dispatchConstrainerEnablerIdsordispatchConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-