Interface ParameterProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
ParameterProcessorEnablers to ParameterProcessors . A
ParameterProcessor with multiple ParameterProcessorEnablers means
any positive rule evaluation across the enablers result in an effective
ParameterProcessor .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignParameterProcessorEnablerToParameterProcessor(Id parameterProcessorEnablerId, Id parameterProcessorId) Adds an existingParameterProcessorEnablerto aParameterProcessor.booleanTests if this user can alter parameter processor enabler/parameter processor mappings.booleanTests if this user can orderParametereProcessorEnablers.Gets theConfigurationassociated with this session.Gets theConfigurationIdassociated with this session.voidmoveParameterProcessorEnablerAhead(Id parameterProcessorEnablerId, Id parameterEnablerId, Id referenceId) Reorders parameter processor enablers for a parameter processor by moving the specified parameter processor enabler in front of a reference parameter enabler.voidmoveParameterProcessorEnablerBehind(Id parameterProcessorEnablerId, Id parameterEnablerId, Id referenceId) Reorders parameter processor enablers for a parameter by moving the specified parameter processor enabler behind a reference parameter processor enabler.voidorderParameterProcessorEnablers(Id[] parameterProcessorEnablerIds, Id parameterProcessorId) Reorders a set of parameter processor enablers for a parameter processor.voidunassignParameterProcessorEnablerFromParameterProcessor(Id parameterProcessorEnablerId, Id parameterProcessorId) Removes aParameterProcessorEnablerfrom aParameterProcessor.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
-
getConfigurationId
Id getConfigurationId()Gets theConfigurationIdassociated with this session.- Returns:
- the
Configuration Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getConfiguration
Gets theConfigurationassociated with this session.- Returns:
- the configuration
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignParameterProcessorEnablers
boolean canAssignParameterProcessorEnablers()Tests if this user can alter parameter processor enabler/parameter 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.
-
assignParameterProcessorEnablerToParameterProcessor
void assignParameterProcessorEnablerToParameterProcessor(Id parameterProcessorEnablerId, Id parameterProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingParameterProcessorEnablerto aParameterProcessor.- Parameters:
parameterProcessorEnablerId- theIdof theParameterProcessorEnablerparameterProcessorId- theIdof theParameterProcessor- Throws:
AlreadyExistsException-parameterProcessorEnablerIdis already applied toparameterProcessorIdNotFoundException-parameterProcessorEnablerIdorparameterProcessorIdnot foundNullArgumentException-parameterProcessorEnablerIdorparameterProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignParameterProcessorEnablerFromParameterProcessor
void unassignParameterProcessorEnablerFromParameterProcessor(Id parameterProcessorEnablerId, Id parameterProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aParameterProcessorEnablerfrom aParameterProcessor.- Parameters:
parameterProcessorEnablerId- theIdof theParameterProcessorEnablerparameterProcessorId- theIdof theParameterProcessor- Throws:
NotFoundException-parameterProcessorEnablerIdorparameterProcessorIdnot found orparameterProcessorEnablerIdis not applied toparameterProcessorIdNullArgumentException-parameterProcessorEnablerIdorparameterProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceParameterProcessorEnablers
boolean canSequenceParameterProcessorEnablers()Tests if this user can orderParametereProcessorEnablers. 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:
falseifParameterProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveParameterProcessorEnablerAhead
void moveParameterProcessorEnablerAhead(Id parameterProcessorEnablerId, Id parameterEnablerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders parameter processor enablers for a parameter processor by moving the specified parameter processor enabler in front of a reference parameter enabler.- Parameters:
parameterProcessorEnablerId- theIdof aParameterProcessorEnablerparameterEnablerId- theIdof aParameterProcessorreferenceId- the reference parameter processor enablerId- Throws:
NotFoundException-parameterProcessorEnablerId, parameterEnablerId, orreferenceIdnot found or,parameterProcessorEnablerId, orreferenceIdnot related toparameterEnablerIdNullArgumentException-parameterProcessorEnablerId, parameterEnablerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveParameterProcessorEnablerBehind
void moveParameterProcessorEnablerBehind(Id parameterProcessorEnablerId, Id parameterEnablerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders parameter processor enablers for a parameter by moving the specified parameter processor enabler behind a reference parameter processor enabler.- Parameters:
parameterProcessorEnablerId- theIdof aParameterProcessorEnablerparameterEnablerId- theIdof aParameterProcessorreferenceId- the reference parameter processor enablerId- Throws:
NotFoundException-parameterProcessorEnablerId, parameterEnablerId, orreferenceIdnot found or,parameterProcessorEnablerId, orreferenceIdnot related toparameterEnablerIdNullArgumentException-parameterProcessorEnablerId, parameterEnablerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderParameterProcessorEnablers
void orderParameterProcessorEnablers(Id[] parameterProcessorEnablerIds, Id parameterProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of parameter processor enablers for a parameter processor.- Parameters:
parameterProcessorEnablerIds- theIdsfor a set ofParameterProcessorEnablersparameterProcessorId- theIdof aParameterProcessor- Throws:
NotFoundException-parameterProcessorIdnot found or, aparameterProcessorEnablerIdnot related toparameterProcessorIdNullArgumentException-parameterProcessorEnablerIdsorparameterProcessorId, isnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-