public interface ForumHierarchyDesignSession extends OsidSession
This session manages a hierarchy of forums. Forums may be organized
into a hierarchy for organizing or federating. A parent Forum
includes all of the replies of its children such that a single
root node contains all of the replies of the federation.
Modifier and Type | Method and Description |
---|---|
void |
addChildForum(Id forumId,
Id childId)
Adds a child to a forum.
|
void |
addRootForum(Id forumId)
Adds a root forum.
|
boolean |
canModifyForumHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getForumHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getForumHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildForum(Id forumId,
Id childId)
Removes a child from a forum.
|
void |
removeChildForums(Id forumId)
Removes all children from a forum.
|
void |
removeRootForum(Id forumId)
Removes a root forum.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getForumHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getForumHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyForumHierarchy()
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 addRootForum(Id forumId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
forumId
- the Id
of a forumAlreadyExistsException
- forumId
is
already in hierarchyNotFoundException
- forumId
is not foundNullArgumentException
- forumId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootForum(Id forumId) throws NotFoundException, OperationFailedException, PermissionDeniedException
forumId
- the Id
of a forumNotFoundException
- forumId
is not a
rootNullArgumentException
- forumId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildForum(Id forumId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
forumId
- the Id
of a forumchildId
- the Id
of the new childAlreadyExistsException
- forumId
is
already a parent of childId
NotFoundException
- forumId
or
childId
not foundNullArgumentException
- forumId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildForum(Id forumId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
forumId
- the Id
of a forumchildId
- the Id
of the new childNotFoundException
- forumId
not a parent
of childId
NullArgumentException
- forumId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildForums(Id forumId) throws NotFoundException, OperationFailedException, PermissionDeniedException
forumId
- the Id
of a forumNotFoundException
- forumId
not foundNullArgumentException
- forumId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.