public interface PollsHierarchyDesignSession extends OsidSession
This session defines methods for managing a hierarchy of Polls
objects. Each node in the hierarchy is a unique Polls.
Modifier and Type | Method and Description |
---|---|
void |
addChildPolls(Id pollsId,
Id childId)
Adds a child to a polls.
|
void |
addRootPolls(Id pollsId)
Adds a root polls.
|
boolean |
canModifyPollsHierarchy()
Tests if this user can change the hierarchy.
|
Hierarchy |
getPollsHierarchy()
Gets the hierarchy associated with this session.
|
Id |
getPollsHierarchyId()
Gets the hierarchy
Id associated with this session. |
void |
removeChildPolls(Id pollsId)
Removes all children from a polls.
|
void |
removeChildPolls(Id pollsId,
Id childId)
Removes a child from a polls.
|
void |
removeRootPolls(Id pollsId)
Removes a root polls.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getPollsHierarchyId()
Id
associated with this session. Id
associated with this sessionmandatory
- This method must be implemented. Hierarchy getPollsHierarchy() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canModifyPollsHierarchy()
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 addRootPolls(Id pollsId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
pollsId
- the Id
of a pollsAlreadyExistsException
- pollsId
is
already in hierarchyNotFoundException
- pollsId
not foundNullArgumentException
- pollsId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeRootPolls(Id pollsId) throws NotFoundException, OperationFailedException, PermissionDeniedException
pollsId
- the Id
of a pollsNotFoundException
- pollsId
not a rootNullArgumentException
- pollsId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void addChildPolls(Id pollsId, Id childId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
pollsId
- the Id
of a pollschildId
- the Id
of the new childAlreadyExistsException
- pollsId
is
already a parent of childId
NotFoundException
- pollsId
or
childId
not foundNullArgumentException
- pollsId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildPolls(Id pollsId, Id childId) throws NotFoundException, OperationFailedException, PermissionDeniedException
pollsId
- the Id
of a pollschildId
- the Id
of the new childNotFoundException
- pollsId
not a parent
of childId
NullArgumentException
- pollsId
or
childId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeChildPolls(Id pollsId) throws NotFoundException, OperationFailedException, PermissionDeniedException
pollsId
- the Id
of a pollsNotFoundException
- pollsId
not in
hierarchyNullArgumentException
- pollsId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.