public interface RaceConstrainerEnablerPollsAssignmentSession extends OsidSession
This session provides methods to re-assign
RaceConstrainerEnabler to Polls mappings. a
RaceConstrainerEnabler may appear in multiple Polls
objects and removing the last reference to a RaceConstrainerEnabler
is the equivalent of deleting it. Each Polls may
have its own authorizations governing who is allowed to operate on it.
Adding a reference of a RaceConstrainerEnabler to
another Polls is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignRaceConstrainerEnablerToPolls(Id raceConstrainerEnablerId,
Id pollsId)
Adds an existing
RaceConstrainerEnabler to a
Polls. |
boolean |
canAssignRaceConstrainerEnablers()
Tests if this user can alter race constrainer enabler/polls mappings.
|
boolean |
canAssignRaceConstrainerEnablersToPolls(Id pollsId)
Tests if this user can alter race constrainer enabler/polls mappings.
|
IdList |
getAssignablePollsIds(Id pollsId)
Gets a list of polls including and under the given polls node in which
any race constrainer enabler can be assigned.
|
IdList |
getAssignablePollsIdsForRaceConstrainerEnabler(Id pollsId,
Id raceConstrainerEnablerId)
Gets a list of polls including and under the given polls node in which
a specific race constrainer enabler can be assigned.
|
void |
reassignRaceConstrainerEnablerToPolls(Id raceConstrainerEnablerId,
Id fromPollsId,
Id toPollsId)
Moves a
RaceConstrainerEnabler from one Polls
to another. |
void |
unassignRaceConstrainerEnablerFromPolls(Id raceConstrainerEnablerId,
Id pollsId)
Removes a
RaceConstrainerEnabler from a Polls. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignRaceConstrainerEnablers()
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignRaceConstrainerEnablersToPolls(Id pollsId)
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users.pollsId - the Id of the Polls false if mapping is not authorized, true
otherwiseNullArgumentException - pollsId is
null mandatory - This method must be implemented. IdList getAssignablePollsIds(Id pollsId) throws OperationFailedException
pollsId - the Id of the Polls Ids NullArgumentException - pollsId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignablePollsIdsForRaceConstrainerEnabler(Id pollsId, Id raceConstrainerEnablerId) throws OperationFailedException
pollsId - the Id of the Polls raceConstrainerEnablerId - the Id of the
RaceConstrainerEnabler Ids NullArgumentException - pollsId or
raceConstrainerEnablerId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignRaceConstrainerEnablerToPolls(Id raceConstrainerEnablerId, Id pollsId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
RaceConstrainerEnabler to a
Polls. raceConstrainerEnablerId - the Id of the
RaceConstrainerEnabler pollsId - the Id of the Polls AlreadyExistsException -
raceConstrainerEnablerId is already assigned to
pollsId NotFoundException - raceConstrainerEnablerId
or pollsId not foundNullArgumentException - raceConstrainerEnablerId
or pollsId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignRaceConstrainerEnablerFromPolls(Id raceConstrainerEnablerId, Id pollsId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RaceConstrainerEnabler from a Polls.
raceConstrainerEnablerId - the Id of the
RaceConstrainerEnabler pollsId - the Id of the Polls NotFoundException - raceConstrainerEnablerId
or pollsId not found or
raceConstrainerEnablerId not assigned to
pollsId NullArgumentException - raceConstrainerEnablerId
or pollsId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void reassignRaceConstrainerEnablerToPolls(Id raceConstrainerEnablerId, Id fromPollsId, Id toPollsId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RaceConstrainerEnabler from one Polls
to another. Mappings to other Polls are
unaffected.raceConstrainerEnablerId - the Id of the
RaceConstrainerEnabler fromPollsId - the Id of the current Polls
toPollsId - the Id of the destination
Polls NotFoundException - raceConstrainerEnablerId,
fromPollsId, or toPollsId not found or
raceConstrainerEnablerId not mapped to
fromPollsId NullArgumentException -
raceConstrainerEnablerId, fromPollsId, or
toPollsId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.