public interface BinHierarchyDesignSession extends OsidSession
This session defines methods for managing a hierarchy of Bin
objects. Each node in the hierarchy is a unique Bin.
| Modifier and Type | Method and Description |
|---|---|
void |
addChildBin(Id binId,
Id childId)
Adds a child to a bin.
|
void |
addRootBin(Id binId)
Adds a root bin.
|
boolean |
canModifyBinHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getBinHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getBinHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildBin(Id binId,
Id childId)
Removes a child from a bin.
|
void |
removeChildBins(Id binId)
Removes all children from a bin.
|
void |
removeRootBin(Id binId)
Removes a root bin.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBinHierarchyId()
Id associated with this session. Id associated with this sessionmandatory - This method must be implemented. Hierarchy getBinHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canModifyBinHierarchy()
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 addRootBin(Id binId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
binId - the Id of a binAlreadyExistsException - binId is
already in hierarchyNotFoundException - binId not foundNullArgumentException - binId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeRootBin(Id binId) throws NotFoundException, OperationFailedException, PermissionDeniedException
binId - the Id of a binNotFoundException - binId not a rootNullArgumentException - binId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void addChildBin(Id binId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
binId - the Id of a binchildId - the Id of the new childAlreadyExistsException - binId is
already a parent of childId NotFoundException - binId or
childId not foundNullArgumentException - binId or
childId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeChildBin(Id binId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
binId - the Id of a binchildId - the Id of the new childNotFoundException - binId not a parent
of childId NullArgumentException - binId or
childId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeChildBins(Id binId) throws NotFoundException, OperationFailedException, PermissionDeniedException
binId - the Id of a binNotFoundException - binId not in
hierarchyNullArgumentException - binId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.