public interface TimePeriodCyclicTimePeriodLookupSession extends OsidSession
This session provides methods to retrieve CyclicTimePeriod
to TimePeriod
mappings. A TimePeriod
may be mapped to multiple CyclicTimePeriods
explicitly or
through a rule-based generation.
This lookup session defines two views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupTimePeriodCyclicTimePeriodMappings()
Tests if this user can perform lookups of tiem period/cyclic time
period mappings.
|
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
IdList |
getCyclicTimePeriodIdsByTimePeriod(Id timePeriodId)
Gets the list of
CyclicTimePeriod Ids mapped to a
TimePeriod. |
CyclicTimePeriodList |
getCyclicTimePeriodsByTimePeriod(Id timePeriodId)
Gets the list of
CyclicTimePeriods mapped to a
TimePeriod. |
IdList |
getTimePeriodIdsByCyclicTimePeriod(Id cyclicTimePeriodId)
Gets the list of
TimePeriod Ids
associated with a CyclicTimePeriod. |
IdList |
getTimePeriodIdsByCyclicTimePeriodAndDate(Id cyclicTimePeriodId,
DateTime from,
DateTime to)
Gets the list of
TimePeriod Ids between
the given date range included associated with a
CyclicTimePeriod. |
TimePeriodList |
getTimePeriodsByCyclicTimePeriod(Id cyclicTimePeriodId)
Gets the list of
TimePeriods associated with a
CyclicTimePeriod. |
TimePeriodList |
getTimePeriodsByCyclicTimePeriodAndDate(Id cyclicTimePeriodId,
DateTime from,
DateTime to)
Gets the list of
TimePeriods between the given date
range included associated with a CyclicTimePeriod. |
void |
useComparativeCalendarView()
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 |
useFederatedCalendarView()
Federates the view for methods in this session.
|
void |
useIsolatedCalendarView()
Isolates the view for methods in this session.
|
void |
usePlenaryCalendarView()
A complete view of the
CyclicTimePeriod and
TmePeriod returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCalendarId()
Calendar
Id
associated with
this session. Calendar Id
associated with this sessionmandatory
- This method must be implemented. Calendar getCalendar() throws OperationFailedException, PermissionDeniedException
Calendar
associated with this session. Calendar
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupTimePeriodCyclicTimePeriodMappings()
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 useComparativeCalendarView()
mandatory
- This method is must be implemented. void usePlenaryCalendarView()
CyclicTimePeriod
and
TmePeriod
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. void useFederatedCalendarView()
mandatory
- This method is must be implemented. void useIsolatedCalendarView()
mandatory
- This method is must be implemented. IdList getTimePeriodIdsByCyclicTimePeriod(Id cyclicTimePeriodId) throws NotFoundException, OperationFailedException, PermissionDeniedException
TimePeriod
Ids
associated with a CyclicTimePeriod.
cyclicTimePeriodId
- Id
of the
CyclicTimePeriod
Ids
NotFoundException
- cyclicTimePeriodId
is not foundNullArgumentException
- cyclicTimePeriodId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. TimePeriodList getTimePeriodsByCyclicTimePeriod(Id cyclicTimePeriodId) throws NotFoundException, OperationFailedException, PermissionDeniedException
TimePeriods
associated with a
CyclicTimePeriod.
cyclicTimePeriodId
- Id
of the
CyclicTimePeriod
NotFoundException
- cyclicTimePeriodId
is not foundNullArgumentException
- cyclicTimePeriodId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getTimePeriodIdsByCyclicTimePeriodAndDate(Id cyclicTimePeriodId, DateTime from, DateTime to) throws NotFoundException, OperationFailedException, PermissionDeniedException
TimePeriod
Ids
between
the given date range included associated with a
CyclicTimePeriod.
cyclicTimePeriodId
- Id
of the
CyclicTimePeriod
from
- starting dateto
- ending date Ids
InvalidArgumentException
- from
is
greater than to
NotFoundException
- cyclicTimePeriodId
is not foundNullArgumentException
- cyclicTimePeriodId,
from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. TimePeriodList getTimePeriodsByCyclicTimePeriodAndDate(Id cyclicTimePeriodId, DateTime from, DateTime to) throws NotFoundException, OperationFailedException, PermissionDeniedException
TimePeriods
between the given date
range included associated with a CyclicTimePeriod.
cyclicTimePeriodId
- Id
of the
CyclicTimePeriod
from
- starting dateto
- ending dateInvalidArgumentException
- from
is
greater than to
NotFoundException
- cyclicTimePeriodId
is not foundNullArgumentException
- cyclicTimePeriodId,
from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getCyclicTimePeriodIdsByTimePeriod(Id timePeriodId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicTimePeriod Ids
mapped to a
TimePeriod.
timePeriodId
- Id
of a TimePeriod
Ids
NotFoundException
- timePeriodId
is not
foundNullArgumentException
- timePeriodId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CyclicTimePeriodList getCyclicTimePeriodsByTimePeriod(Id timePeriodId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CyclicTimePeriods
mapped to a
TimePeriod.
timePeriodId
- Id
of a TimePeriod
NotFoundException
- timePeriodId
is not
foundNullArgumentException
- timePeriodId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.