Interface ParameterProcessorConfigurationAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign ParameterProcessor
to Configuration mappings. A ParameterProcessor may appear
in multiple Configuration objects and removing the last reference
to a ParameterProcessor is the equivalent of deleting it. Each
Configuration may have its own authorizations governing who is
allowed to operate on it.
Adding a reference of a ParameterProcessor to another
Configuration is not a copy operation (eg: does not change its Id
).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignParameterProcessorToConfiguration(Id parameterProcessorId, Id configurationId) Adds an existingParameterProcessorto anConfiguration.booleanTests if this user can alter parameter processor/configuration mappings.booleancanAssignParameterProcessorsToConfiguration(Id configurationId) Tests if this user can alter parameter processor/configuration mappings.getAssignableConfigurationIds(Id configurationId) Gets a list of configurations including and under the given configuration node in which any parameter processor can be assigned.getAssignableConfigurationIdsForParameterProcessor(Id configurationId, Id parameterProcessorId) Gets a list of configurations including and under the given configuration node in which a specific parameter processor can be assigned.voidreassignParameterProcessorToConfiguration(Id parameterProcessorId, Id fromConfigurationId, Id toConfigurationId) Moves aParameterProcessorfrom oneConfigurationto another.voidunassignParameterProcessorFromConfiguration(Id parameterProcessorId, Id configurationId) Removes aParameterProcessorfrom aConfiguration.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
-
canAssignParameterProcessors
boolean canAssignParameterProcessors()Tests if this user can alter parameter processor/configuration 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.
-
canAssignParameterProcessorsToConfiguration
Tests if this user can alter parameter processor/configuration 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.- Parameters:
configurationId- theIdof theConfiguration- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-configurationIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableConfigurationIds
Gets a list of configurations including and under the given configuration node in which any parameter processor can be assigned.- Parameters:
configurationId- theIdof theConfiguration- Returns:
- list of assignable configuration
Ids - Throws:
NullArgumentException-configurationIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableConfigurationIdsForParameterProcessor
IdList getAssignableConfigurationIdsForParameterProcessor(Id configurationId, Id parameterProcessorId) throws OperationFailedException Gets a list of configurations including and under the given configuration node in which a specific parameter processor can be assigned.- Parameters:
configurationId- theIdof theConfigurationparameterProcessorId- theIdof theParameterProcessor- Returns:
- list of assignable configuration
Ids - Throws:
NullArgumentException-configurationIdorparameterProcessorIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignParameterProcessorToConfiguration
void assignParameterProcessorToConfiguration(Id parameterProcessorId, Id configurationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingParameterProcessorto anConfiguration.- Parameters:
parameterProcessorId- theIdof theParameterProcessorconfigurationId- theIdof theConfiguration- Throws:
AlreadyExistsException-parameterProcessorIdis already assigned toconfigurationIdNotFoundException-parameterProcessorIdorconfigurationIdnot foundNullArgumentException-parameterProcessorIdorconfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignParameterProcessorFromConfiguration
void unassignParameterProcessorFromConfiguration(Id parameterProcessorId, Id configurationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aParameterProcessorfrom aConfiguration.- Parameters:
parameterProcessorId- theIdof theParameterProcessorconfigurationId- theIdof theConfiguration- Throws:
NotFoundException-parameterProcessorIdorconfigurationIdnot found orparameterProcessorIdis not assigned toconfigurationIdNullArgumentException-parameterProcessorIdorconfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignParameterProcessorToConfiguration
void reassignParameterProcessorToConfiguration(Id parameterProcessorId, Id fromConfigurationId, Id toConfigurationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aParameterProcessorfrom oneConfigurationto another. Mappings to otherConfigurationsare unaffected.- Parameters:
parameterProcessorId- theIdof theParameterProcessorfromConfigurationId- theIdof the currentConfigurationtoConfigurationId- theIdof the destinationConfiguration- Throws:
AlreadyExistsException-parameterProcessorIdalready assigned totoConfigurationIdNotFoundException-parameterProcessorId fromConfigurationId, ortoConfigurationIdnot found orparameterProcessorIdnot mapped tofromConfigurationIdNullArgumentException-parameterProcessorId, fromConfigurationId, ortoConfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-