Interface ParameterProcessorEnablerConfigurationAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign
ParameterProcessorEnabler to Configuration mappings. A
ParameterProcessorEnabler may appear in multiple Configuration
objects and removing the last reference to a
ParameterProcessorEnabler 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 ParameterProcessorEnabler to another
Configuration is not a copy operation (eg: does not change its
Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignParameterProcessorEnablerToConfiguration(Id parameterProcessorEnablerId, Id configurationId) Adds an existingParameterProcessorEnablerto anConfiguration.booleanTests if this user can alter parameter processor enabler/configuration mappings.booleancanAssignParameterProcessorEnablersToConfiguration(Id configurationId) Tests if this user can alter parameter processor enabler/configuration mappings.getAssignableConfigurationIds(Id configurationId) Gets a list of configurations including and under the given configuration node in which any parameter processor enabler can be assigned.getAssignableConfigurationIdsForParameterProcessorEnabler(Id configurationId, Id parameterProcessorEnablerId) Gets a list of configurations including and under the given configuration node in which a specific parameter processor enabler can be assigned.voidreassignParameterProcessorEnablerToConfiguration(Id parameterProcessorEnablerId, Id fromConfigurationId, Id toConfigurationId) Moves aParameterProcessorEnablerfrom oneConfigurationto another.voidunassignParameterProcessorEnablerFromConfiguration(Id parameterProcessorEnablerId, Id configurationId) Removes aParameterProcessorEnablerfrom anConfiguration.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
-
canAssignParameterProcessorEnablers
boolean canAssignParameterProcessorEnablers()Tests if this user can alter parameter processor enabler/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.
-
canAssignParameterProcessorEnablersToConfiguration
Tests if this user can alter parameter processor enabler/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 enabler 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.
-
getAssignableConfigurationIdsForParameterProcessorEnabler
IdList getAssignableConfigurationIdsForParameterProcessorEnabler(Id configurationId, Id parameterProcessorEnablerId) throws OperationFailedException Gets a list of configurations including and under the given configuration node in which a specific parameter processor enabler can be assigned.- Parameters:
configurationId- theIdof theConfigurationparameterProcessorEnablerId- theIdof theParameterProcessorEnabler- Returns:
- list of assignable configuration
Ids - Throws:
NullArgumentException-configurationIdorparameterProcessorEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignParameterProcessorEnablerToConfiguration
void assignParameterProcessorEnablerToConfiguration(Id parameterProcessorEnablerId, Id configurationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingParameterProcessorEnablerto anConfiguration.- Parameters:
parameterProcessorEnablerId- theIdof theParameterProcessorEnablerconfigurationId- theIdof theConfiguration- Throws:
AlreadyExistsException-parameterProcessorEnablerIdis already assigned toconfigurationIdNotFoundException-parameterProcessorEnablerIdorconfigurationIdnot foundNullArgumentException-parameterProcessorEnablerIdorconfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignParameterProcessorEnablerFromConfiguration
void unassignParameterProcessorEnablerFromConfiguration(Id parameterProcessorEnablerId, Id configurationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aParameterProcessorEnablerfrom anConfiguration.- Parameters:
parameterProcessorEnablerId- theIdof theParameterProcessorEnablerconfigurationId- theIdof theConfiguration- Throws:
NotFoundException-parameterProcessorEnablerIdorconfigurationIdorparameterProcessorEnablerIdis not assigned toconfigurationIdNullArgumentException-parameterProcessorEnablerIdorconfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignParameterProcessorEnablerToConfiguration
void reassignParameterProcessorEnablerToConfiguration(Id parameterProcessorEnablerId, Id fromConfigurationId, Id toConfigurationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aParameterProcessorEnablerfrom oneConfigurationto another. Mappings to otherConfigurationsare unaffected.- Parameters:
parameterProcessorEnablerId- theIdof theParameterProcessorEnablerfromConfigurationId- theIdof the currentConfigurationtoConfigurationId- theIdof the destinationConfiguration- Throws:
AlreadyExistsException-parameterProcessorEnablerIdalready assigned totoConfigurationIdNotFoundException-parameterProcessorEnablerId, fromConfigurationId, ortoConfigurationIdnot found orparameparameterProcessorEnablerIdterProcessorIdnot mapped tofromConfigurationIdNullArgumentException-parameterProcessorEnablerId, fromConfigurationId, ortoConfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-