Interface ParameterProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ParameterProcessors to
Parameters .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignParameterProcessorToParameter(Id parameterProcessorId, Id parameterId) Adds an existingParameterProcessorto aParameter.booleanTests if this user can alter parameter processor/parameter mappings.booleanTests if this user can orderParametereProcessors.Gets theConfigurationassociated with this session.Gets theConfigurationIdassociated with this session.voidmoveParameterProcessorAhead(Id parameterProcessorId, Id parameterId, Id referenceId) Reorders parameter processors for a parameter by moving the specified parameter processors in front of a reference parameter.voidmoveParameterProcessorBehind(Id parameterProcessorId, Id parameterId, Id referenceId) Reorders parameter processors for a parameter by moving the specified parameter processor behind a reference parameter processor.voidorderParameterProcessors(Id[] parameterProcessorIds, Id parameterId) Reorders a set of parameter processors for a parameter.voidunassignParameterProcessorFromParameter(Id parameterProcessorId, Id parameterId) Removes aParameterProcessorfrom aParameter.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.
-
canAssignParameterProcessors
boolean canAssignParameterProcessors()Tests if this user can alter parameter processor/parameter 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.
-
assignParameterProcessorToParameter
void assignParameterProcessorToParameter(Id parameterProcessorId, Id parameterId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingParameterProcessorto aParameter.- Parameters:
parameterProcessorId- theIdof theParameterProcessorparameterId- theIdof theParameter- Throws:
AlreadyExistsException-parameterProcessorIdis already applied toparameterIdNotFoundException-parameterProcessorIdorparameterIdnot foundNullArgumentException-parameterProcessorIdorparameterIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignParameterProcessorFromParameter
void unassignParameterProcessorFromParameter(Id parameterProcessorId, Id parameterId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aParameterProcessorfrom aParameter.- Parameters:
parameterProcessorId- theIdof theParameterProcessorparameterId- theIdof theParameter- Throws:
NotFoundException-parameterProcessorIdorparameterIdnot found orparameterProcessorIdis not applied toparameterIdNullArgumentException-parameterProcessorIdorparameterIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceParameterProcessors
boolean canSequenceParameterProcessors()Tests if this user can orderParametereProcessors. 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:
falseifParameterProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveParameterProcessorAhead
void moveParameterProcessorAhead(Id parameterProcessorId, Id parameterId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders parameter processors for a parameter by moving the specified parameter processors in front of a reference parameter.- Parameters:
parameterProcessorId- theIdof aParameterProcessorparameterId- theIdof aParameterreferenceId- the reference parameter processorId- Throws:
NotFoundException-parameterProcessorId, parameterId, orreferenceIdnot found or,parameterProcessorId, orreferenceIdnot related toparameterIdNullArgumentException-parameterProcessorId, parameterId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveParameterProcessorBehind
void moveParameterProcessorBehind(Id parameterProcessorId, Id parameterId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders parameter processors for a parameter by moving the specified parameter processor behind a reference parameter processor.- Parameters:
parameterProcessorId- theIdof aParameterProcessorparameterId- theIdof aParameterreferenceId- the reference parameter processorId- Throws:
NotFoundException-parameterProcessorId, parameterId, orreferenceIdnot found or,parameterProcessorId, orreferenceIdnot related toparameterIdNullArgumentException-parameterProcessorId, parameterId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderParameterProcessors
void orderParameterProcessors(Id[] parameterProcessorIds, Id parameterId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of parameter processors for a parameter.- Parameters:
parameterProcessorIds- theIdsfor a set ofParameterProcessorsparameterId- theIdof aParameter- Throws:
NotFoundException-parameterIdnot found or, aparameterProcessorIdnot related toparameterIdNullArgumentException-parameterProcessorIdsorparameterIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-