Interface ValueEnablerConfigurationAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign ValueEnabler to
Configuration mappings. A ValueEnabler may appear in
multiple Configuration objects and removing the last reference to
a ValueEnabler 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 ValueEnabler to another
Configuration is not a copy operation (eg: does not change its Id
).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignValueEnablerToConfiguration(Id valueEnablerId, Id configurationId) Adds an existingValueEnablerto aConfiguration.booleanTests if this user can alter value enabler/configuration mappings.booleancanAssignValueEnablersToConfiguration(Id configurationId) Tests if this user can alter value enabler/configuration mappings.getAssignableConfigurationIds(Id configurationId) Gets a list of configurations including and under the given configuration node in which any value enabler can be assigned.getAssignableConfigurationIdsForValueEnabler(Id configurationId, Id valueEnablerId) Gets a list of configurations including and under the given configuration node in which a specific value enabler can be assigned.voidreassignValueEnablerToConfiguration(Id valueEnablerId, Id fromConfigurationId, Id toConfigurationId) Moves aValueEnablerfrom oneConfigurationto another.voidunassignValueEnablerFromConfiguration(Id valueEnablerId, Id configurationId) Removes aValueEnablerfrom 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
-
canAssignValueEnablers
boolean canAssignValueEnablers()Tests if this user can alter value 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.
-
canAssignValueEnablersToConfiguration
Tests if this user can alter value 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 value 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.
-
getAssignableConfigurationIdsForValueEnabler
IdList getAssignableConfigurationIdsForValueEnabler(Id configurationId, Id valueEnablerId) throws OperationFailedException Gets a list of configurations including and under the given configuration node in which a specific value enabler can be assigned.- Parameters:
configurationId- theIdof theConfigurationvalueEnablerId- theIdof theValueEnabler- Returns:
- list of assignable configuration
Ids - Throws:
NullArgumentException-configurationIdorvalueEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignValueEnablerToConfiguration
void assignValueEnablerToConfiguration(Id valueEnablerId, Id configurationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingValueEnablerto aConfiguration.- Parameters:
valueEnablerId- theIdof theValueEnablerconfigurationId- theIdof theConfiguration- Throws:
AlreadyExistsException-valueEnablerIdis already assigned toconfigurationIdNotFoundException-valueEnablerIdorconfigurationIdnot foundNullArgumentException-valueEnablerIdorconfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignValueEnablerFromConfiguration
void unassignValueEnablerFromConfiguration(Id valueEnablerId, Id configurationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aValueEnablerfrom aConfiguration.- Parameters:
valueEnablerId- theIdof theValueEnablerconfigurationId- theIdof theConfiguration- Throws:
NotFoundException-valueEnablerIdorconfigurationIdnot found orvalueEnablerIdis not assigned toconfigurationIdNullArgumentException-valueEnablerIdorconfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignValueEnablerToConfiguration
void reassignValueEnablerToConfiguration(Id valueEnablerId, Id fromConfigurationId, Id toConfigurationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aValueEnablerfrom oneConfigurationto another. Mappings to otherConfigurationsare unaffected.- Parameters:
valueEnablerId- theIdof theValueEnablerfromConfigurationId- theIdof the currentConfigurationtoConfigurationId- theIdof the destinationConfiguration- Throws:
AlreadyExistsException-valueEnablerIdalready assigned totoConfigurationIdNotFoundException-valueEnablerId, fromConfigurationId, ortoConfigurationIdnot found orvalueEnablerIdnot mapped tofromConfigurationIdNullArgumentException-valueEnablerId, cromConfigurationId, ortoConfigurationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-