public interface RaceConstrainerPollsSession extends OsidSession
This session provides methods to retrieve RaceConstrainer
to Polls
mappings. a RaceConstrainer
may appear in multiple Polls
objects. Each polls may have
its own authorizations governing who is allowed to look at it.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupRaceConstrainerPollsMappings()
Tests if this user can perform lookups of race constrainer/polls
mappings.
|
PollsList |
getPollsByRaceConstrainer(Id raceConstrainerId)
Gets the
Polls mapped to a RaceConstrainer. |
IdList |
getPollsIdsByRaceConstrainer(Id raceConstrainerId)
Gets the
Polls Ids mapped to a
RaceConstrainer. |
IdList |
getRaceConstrainerIdsByPolls(Id pollsId)
Gets the list of
RaceConstrainerIds associated with a
Polls. |
IdList |
getRaceConstrainerIdsByPolls(IdList pollsIds)
Gets the list of
RaceConstrainer Ids corresponding to a
list of Polls. |
RaceConstrainerList |
getRaceConstrainersByPolls(Id pollsId)
Gets the list of race constrainer associated with a
Polls. |
RaceConstrainerList |
getRaceConstrainersByPolls(IdList pollsIds)
Gets the list of race constrainer corresponding to a list of
Polls. |
void |
useComparativeRaceConstrainerPollsView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryRaceConstrainerPollsView()
A complete view of the
RaceConstrainer and Polls
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupRaceConstrainerPollsMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeRaceConstrainerPollsView()
mandatory
- This method is must be implemented. void usePlenaryRaceConstrainerPollsView()
RaceConstrainer
and Polls
returns is desired. Methods will return what is requested or
result in an error. This view is used when greater precision is
desired at the expense of interoperability.mandatory
- This method is must be implemented. IdList getRaceConstrainerIdsByPolls(Id pollsId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RaceConstrainerIds
associated with a
Polls.
pollsId
- Id
of the Polls
Ids
NotFoundException
- pollsId
is not foundNullArgumentException
- pollsId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RaceConstrainerList getRaceConstrainersByPolls(Id pollsId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Polls.
pollsId
- Id
of the Polls
NotFoundException
- pollsId
is not foundNullArgumentException
- pollsId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getRaceConstrainerIdsByPolls(IdList pollsIds) throws OperationFailedException, PermissionDeniedException
RaceConstrainer Ids
corresponding to a
list of Polls.
pollsIds
- list of polls Ids
Ids
NullArgumentException
- pollsIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RaceConstrainerList getRaceConstrainersByPolls(IdList pollsIds) throws OperationFailedException, PermissionDeniedException
Polls.
pollsIds
- list of polls Ids
NullArgumentException
- pollsIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getPollsIdsByRaceConstrainer(Id raceConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Polls
Ids
mapped to a
RaceConstrainer.
raceConstrainerId
- Id
of a
RaceConstrainer
NotFoundException
- raceConstrainerId
is
not foundNullArgumentException
- raceConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. PollsList getPollsByRaceConstrainer(Id raceConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Polls
mapped to a RaceConstrainer.
raceConstrainerId
- Id
of a
RaceConstrainer
NotFoundException
- raceConstrainerId
is
not foundNullArgumentException
- raceConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.