public interface ConfigurationHierarchyDesignSession extends OsidSession
This session defines methods for managing a hierarchy of
Configuration
objects. Each node in the hierarchy is a unique
Configuration.
Modifier and Type | Method and Description |
---|---|
void |
addChildConfiguration(Id configurationId,
Id childId)
Adds a child to a configuration.
|
void |
addRootConfiguration(Id configurationId)
Adds a root configuration.
|
boolean |
canModifyConfigurationHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getConfigurationHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getConfigurationHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildConfiguration(Id configurationId,
Id childId)
Removes a child from a configuration.
|
void |
removeChildConfigurations(Id configurationId)
Removes all children from a configuration.
|
void |
removeRootConfiguration(Id configurationId)
Removes a root configuration.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getConfigurationHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getConfigurationHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyConfigurationHierarchy()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer these operations to an
unauthorized user. false
if changing this hierarchy is not
authorized, true
otherwisemandatory
- This method must be implemented. void addRootConfiguration(Id configurationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
configurationId
- the Id
of a configurationAlreadyExistsException
- configurationId
is already in hierarchyNotFoundException
- configurationId
not
foundNullArgumentException
- configurationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootConfiguration(Id configurationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
configurationId
- the Id
of a configurationNotFoundException
- configurationId
not
a rootNullArgumentException
- configurationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildConfiguration(Id configurationId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
configurationId
- the Id
of a configurationchildId
- the Id
of the new childAlreadyExistsException
- configurationId
is already a parent of childId
NotFoundException
- configurationId
or
childId
not foundNullArgumentException
- configurationId
or childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildConfiguration(Id configurationId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
configurationId
- the Id
of a configurationchildId
- the Id
of the new childNotFoundException
- configurationId
not
a parent of childId
NullArgumentException
- configurationId
or childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildConfigurations(Id configurationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
configurationId
- the Id
of a configurationNotFoundException
- configurationId
is
not in hierarchyNullArgumentException
- configurationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.