public interface MailboxHierarchyDesignSession extends OsidSession
This session defines methods for managing a hierarchy of Mailbox
objects. Each node in the hierarchy is a unique Mailbox.
| Modifier and Type | Method and Description |
|---|---|
void |
addChildMailbox(Id mailboxId,
Id childId)
Adds a child to a mailbox.
|
void |
addRootMailbox(Id mailboxId)
Adds a root mailbox.
|
boolean |
canModifyMailboxHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getMailboxHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getMailboxHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildMailbox(Id mailboxId,
Id childId)
Removes a child from a mailbox.
|
void |
removeChildMailboxes(Id mailboxId)
Removes all children from a mailbox.
|
void |
removeRootMailbox(Id mailboxId)
Remove a root mailbox.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getMailboxHierarchyId()
Id associated with this session. Id associated with this sessionmandatory - This method must be implemented. Hierarchy getMailboxHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canModifyMailboxHierarchy()
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 addRootMailbox(Id mailboxId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
mailboxId - the Id of a mailboxAlreadyExistsException - mailboxId is
already in hierarchyNotFoundException - mailboxId not foundNullArgumentException - mailboxId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeRootMailbox(Id mailboxId) throws NotFoundException, OperationFailedException, PermissionDeniedException
mailboxId - the Id of a mailboxNotFoundException - mailboxId is not a
rootNullArgumentException - mailboxId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void addChildMailbox(Id mailboxId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
mailboxId - the Id of a mailboxchildId - the Id of the new childAlreadyExistsException - mailboxId is
already a parent of childId NotFoundException - mailboxId or
childId not foundNullArgumentException - mailboxId or
childId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeChildMailbox(Id mailboxId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
mailboxId - the Id of a mailboxchildId - the Id of the new childNotFoundException - mailboxId not a
parent of childId NullArgumentException - mailboxId or
childId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void removeChildMailboxes(Id mailboxId) throws NotFoundException, OperationFailedException, PermissionDeniedException
mailboxId - the Id of a mailboxNotFoundException - mailboxId not foundNullArgumentException - mailboxId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.