public interface MySubscriptionSession extends OsidSession
This session defines methods for retrieving subscriptions.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupMySubscriptions()
Tests if this user can lookup subscriptions.
|
Publisher |
getPublisher()
Gets the
Publisher associated with this session. |
Id |
getPublisherId()
Gets the
Publisher Id associated with
this session. |
SubscriptionList |
getSubscriptions()
Gets all subscriptions for the subscriber related to the current
agent.
|
SubscriptionList |
getSubscriptionsByDateForDispatch(Id dispatchId,
DateTime from,
DateTime to)
Gets a list of all subscriptions corresponding to a dispatch
Id
and date rang for the subscriber related to the current
agent.e. |
SubscriptionList |
getSubscriptionsForDispatch(Id dispatchId)
Gets a list of all subscriptions corresponding to a dispatch
Id
for the subscriber related to the current agent. |
void |
useAnyEffectiveSubscriptionView()
All subscriptions of any effective dates are returned by methods in
this session.
|
void |
useEffectiveSubscriptionView()
Only subscriptions whose effective dates are current are returned by
methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getPublisherId()
Publisher
Id
associated with
this session. Publisher Id
associated with this sessionmandatory
- This method must be implemented. Publisher getPublisher() throws OperationFailedException, PermissionDeniedException
Publisher
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupMySubscriptions()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer these operations. false
if subscription lookup methods are not
authorized, true
otherwisemandatory
- This method must be implemented. void useEffectiveSubscriptionView()
mandatory
- This method is must be implemented. void useAnyEffectiveSubscriptionView()
mandatory
- This method is must be implemented. SubscriptionList getSubscriptionsForDispatch(Id dispatchId) throws OperationFailedException, PermissionDeniedException
Id
for the subscriber related to the current agent.dispatchId
- the Id
of the dispatch SubscriptionList
NullArgumentException
- dispatchId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByDateForDispatch(Id dispatchId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
Id
and date rang for the subscriber related to the current
agent.e. Entries are returned with effective dates that fall between
the requested dates inclusive.dispatchId
- a dispatch Id
from
- from dateto
- to date SubscriptionList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- dispatchId, from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptions() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.