public interface UtilityHierarchyDesignSession extends OsidSession
This session manages a hierarchy of utilities. Utilities may be
organized into a hierarchy for organizing or federating. A parent
Utility
includes all of the Ids of its children such that a single
root node contains all of the Ids
of the federation.
Modifier and Type | Method and Description |
---|---|
void |
addChildUtility(Id utilityId,
Id childId)
Adds a child to a utility.
|
void |
addRootUtility(Id utilityId)
Adds a root utility.
|
boolean |
canModifyUtilityHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getUtilityHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getUtilityHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildUtilities(Id utilityId)
Removes all children from a utility.
|
void |
removeChildUtility(Id utilityId,
Id childId)
Removes a child from a utility.
|
void |
removeRootUtility(Id utilityId)
Removes a root utility.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getUtilityHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getUtilityHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyUtilityHierarchy()
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 addRootUtility(Id utilityId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
utilityId
- the Id
of a utilityAlreadyExistsException
- utilityId
is
already in hierarchyNotFoundException
- utilityId
not foundNullArgumentException
- utilityId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootUtility(Id utilityId) throws NotFoundException, OperationFailedException, PermissionDeniedException
utilityId
- the Id
of a utilityNotFoundException
- utilityId
is not a
rootNullArgumentException
- utilityId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildUtility(Id utilityId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
utilityId
- the Id
of a utilitychildId
- the Id
of the new childAlreadyExistsException
- utilityId
is
already a parent of childId
NotFoundException
- utilityId
or
childId
not foundNullArgumentException
- utilityId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildUtility(Id utilityId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
utilityId
- the Id
of a utilitychildId
- the Id
of the new childNotFoundException
- utilityId
not a
parent of childId
NullArgumentException
- utilityId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildUtilities(Id utilityId) throws NotFoundException, OperationFailedException, PermissionDeniedException
utilityId
- the Id
of a utilityNotFoundException
- utilityId
not foundNullArgumentException
- utilityId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.