public interface SubscriptionLookupSession extends OsidSession
This session defines methods for retrieving subscriptions.
This lookup session defines several views:
SubscriptionAdminSession.
The methods useFederatedPublisherView()
and
useIsolatedPublisherView()
behave as a radio group and one should
be selected before invoking any lookup methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupSubscriptions()
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. |
Subscription |
getSubscription(Id subscriptionId)
Gets the
Subscription specified by its Id. |
SubscriptionList |
getSubscriptions()
Gets all subscriptions.
|
SubscriptionList |
getSubscriptionsByGenusType(Type subscriptionGenusType)
Gets a
SubscriptionList corresponding to the given
subscription genus Type which does not include
subscriptions of genus types derived from the specified Type. |
SubscriptionList |
getSubscriptionsByGenusTypeForDispatch(Id dispatchId,
Type subscriptionGenusType)
Gets a list of all subscriptions of the given genus type corresponding
to a dispatch
Id. |
SubscriptionList |
getSubscriptionsByGenusTypeForDispatchOnDate(Id dispatchId,
Type subscriptionGenusType,
DateTime from,
DateTime to)
Gets a list of all subscriptions of the given genus type corresponding
to a dispatch
Id and effective during the entire given
date range inclusive but not confined to the date range. |
SubscriptionList |
getSubscriptionsByGenusTypeForSubscriber(Id resourceId,
Type subscriptionGenusType)
Gets a list of subscriptions of the given genus type corresponding to
a subscriber
Id. |
SubscriptionList |
getSubscriptionsByGenusTypeForSubscriberAndDispatch(Id resourceId,
Id dispatchId,
Type subscriptionGenusType)
Gets a list of all subscriptions of the given genus type corresponding
to a susbcriber and dispatch
Id. |
SubscriptionList |
getSubscriptionsByGenusTypeForSubscriberAndDispatchOnDate(Id resourceId,
Id dispatchId,
Type subscriptionGenusType,
DateTime from,
DateTime to)
Gets a list of all subscriptions of the given genus type corresponding
to a subscriber and dispatch
Id and effective during
the entire given date range inclusive but not confined to the date
range. |
SubscriptionList |
getSubscriptionsByGenusTypeForSubscriberOnDate(Id resourceId,
Type subscriptionGenusType,
DateTime from,
DateTime to)
Gets a list of all subscriptions of the given genus type corresponding
to a subscriber
Id and effective during the entire
given date range inclusive but not confined to the date range. |
SubscriptionList |
getSubscriptionsByGenusTypeOnDate(Type subscriptionGenusType,
DateTime from,
DateTime to)
Gets a
SubscriptionList of a subscription genus type
and effective during the entire given date range inclusive but not
confined to the date range. |
SubscriptionList |
getSubscriptionsByIds(IdList subscriptionIds)
Gets a
SubscriptionList corresponding to the given
IdList. |
SubscriptionList |
getSubscriptionsByParentGenusType(Type subscriptionGenusType)
Gets a
SubscriptionList corresponding to the given
subscription genus Type and include any additional
subscriptions with genus types derived from the specified Type. |
SubscriptionList |
getSubscriptionsByRecordType(Type subscriptionRecordType)
Gets a
SubscriptionList containing the given
subscription record Type. |
SubscriptionList |
getSubscriptionsForDispatch(Id dispatchId)
Gets a list of all subscriptions corresponding to a dispatch
Id. |
SubscriptionList |
getSubscriptionsForDispatchOnDate(Id dispatchId,
DateTime from,
DateTime to)
Gets a list of all subscriptions corresponding to a dispatch
Id
and effective during the entire given date range inclusive but
not confined to the date range. |
SubscriptionList |
getSubscriptionsForSubscriber(Id resourceId)
Gets a list of subscriptions corresponding to a subscriber
Id. |
SubscriptionList |
getSubscriptionsForSubscriberAndDispatch(Id resourceId,
Id dispatchId)
Gets a list of all subscriptions corresponding to a susbcriber and
dispatch
Id. |
SubscriptionList |
getSubscriptionsForSubscriberAndDispatchOnDate(Id resourceId,
Id dispatchId,
DateTime from,
DateTime to)
Gets a list of all subscriptions corresponding to a subscriber and
dispatch
Id and effective during the entire given date
range inclusive but not confined to the date range. |
SubscriptionList |
getSubscriptionsForSubscriberOnDate(Id resourceId,
DateTime from,
DateTime to)
Gets a list of all subscriptions corresponding to a subscriber
Id and effective during the entire given date range inclusive
but not confined to the date range. |
SubscriptionList |
getSubscriptionsOnDate(DateTime from,
DateTime to)
Gets a
SubscriptionList effective during the entire
given date range inclusive but not confined to the date range. |
void |
useAnyEffectiveSubscriptionView()
All subscriptions of any effective dates are returned by methods in
this session.
|
void |
useComparativeSubscriptionView()
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 |
useEffectiveSubscriptionView()
Only subscriptions whose effective dates are current are returned by
methods in this session.
|
void |
useFederatedPublisherView()
Federates the view for methods in this session.
|
void |
useIsolatedPublisherView()
Isolates the view for methods in this session.
|
void |
usePlenarySubscriptionView()
A complete view of the
Subscription returns is desired. |
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 canLookupSubscriptions()
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 useComparativeSubscriptionView()
mandatory
- This method is must be implemented. void usePlenarySubscriptionView()
Subscription
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 useFederatedPublisherView()
mandatory
- This method is must be implemented. void useIsolatedPublisherView()
mandatory
- This method is must be implemented. void useEffectiveSubscriptionView()
mandatory
- This method is must be implemented. void useAnyEffectiveSubscriptionView()
mandatory
- This method is must be implemented. Subscription getSubscription(Id subscriptionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Subscription
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
Subscription
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to a Subscription
and retained for
compatibility.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.subscriptionId
- the Id
of the
Subscription
to retrieve Subscription
NotFoundException
- no Subscription
found with the given Id
NullArgumentException
- subscriptionId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByIds(IdList subscriptionIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
SubscriptionList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
entries specified in the Id
list, in the order of the
list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible entries may be omitted from the list and may present the
elements in any order including returning a unique set.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.subscriptionIds
- the list of Ids
to retrieve Subscription list
NotFoundException
- an Id was
not foundNullArgumentException
- subscriptionIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByGenusType(Type subscriptionGenusType) throws OperationFailedException, PermissionDeniedException
SubscriptionList
corresponding to the given
subscription genus Type
which does not include
subscriptions of genus types derived from the specified Type.
In plenary mode, the returned list contains all known
subscriptions or an error results. Otherwise, the returned list may
contain only those subscriptions that are accessible through this
session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.subscriptionGenusType
- a subscription genus type Subscription
listNullArgumentException
- subscriptionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByParentGenusType(Type subscriptionGenusType) throws OperationFailedException, PermissionDeniedException
SubscriptionList
corresponding to the given
subscription genus Type
and include any additional
subscriptions with genus types derived from the specified Type.
In plenary mode, the returned list contains all known
subscriptions or an error results. Otherwise, the returned list may
contain only those subscriptions that are accessible through this
session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.subscriptionGenusType
- a subscription genus type Subscriptions
listNullArgumentException
- subscriptionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByRecordType(Type subscriptionRecordType) throws OperationFailedException, PermissionDeniedException
SubscriptionList
containing the given
subscription record Type.
In plenary mode, the returned list contains all known
subscriptions or an error results. Otherwise, the returned list may
contain only those subscriptions that are accessible through this
session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.subscriptionRecordType
- a subscription record type Subscriptions
listNullArgumentException
- subscriptionRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
SubscriptionList
effective during the entire
given date range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known
subscriptions or an error results. Otherwise, the returned list may
contain only those subscriptions that are accessible through this
session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.from
- starting dateto
- ending date Subscriptions
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByGenusTypeOnDate(Type subscriptionGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
SubscriptionList
of a subscription genus type
and effective during the entire given date range inclusive but not
confined to the date range.
In plenary mode, the returned list contains all known
subscriptions or an error results. Otherwise, the returned list may
contain only those subscriptions that are accessible through this
session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.subscriptionGenusType
- a subscription genus typefrom
- starting dateto
- ending date Subscriptions
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- subscriptionGenusType,
from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsForSubscriber(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- the Id
of the resource SubscriptionList
NullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsForSubscriberOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
Id
and effective during the entire given date range inclusive
but not confined to the date range.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- a resource Id
from
- from dateto
- to date SubscriptionList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- resourceId, from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByGenusTypeForSubscriber(Id resourceId, Type subscriptionGenusType) throws OperationFailedException, PermissionDeniedException
Id.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- the Id
of the resourcesubscriptionGenusType
- a subscription genus type SubscriptionList
NullArgumentException
- resourceId
or
subscriptionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByGenusTypeForSubscriberOnDate(Id resourceId, Type subscriptionGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
Id
and effective during the entire
given date range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- a resource Id
subscriptionGenusType
- a subscription genus typefrom
- from dateto
- to date SubscriptionList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- resourceId,
subscriptionGenusType, from
or to
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsForDispatch(Id dispatchId) throws OperationFailedException, PermissionDeniedException
Id.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.dispatchId
- the Id
of the dispatch SubscriptionList
NullArgumentException
- dispatchId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsForDispatchOnDate(Id dispatchId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
Id
and effective during the entire given date range inclusive but
not confined to the date range.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.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 getSubscriptionsByGenusTypeForDispatch(Id dispatchId, Type subscriptionGenusType) throws OperationFailedException, PermissionDeniedException
Id.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.dispatchId
- the Id
of the dispatchsubscriptionGenusType
- a subscription genus type SubscriptionList
NullArgumentException
- dispatchId
or
subscriptionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByGenusTypeForDispatchOnDate(Id dispatchId, Type subscriptionGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
Id
and effective during the entire given
date range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.dispatchId
- a dispatch Id
subscriptionGenusType
- a subscription genus typefrom
- from dateto
- to date SubscriptionList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- dispatchId,
subscriptionGenusType, from
or to
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsForSubscriberAndDispatch(Id resourceId, Id dispatchId) throws OperationFailedException, PermissionDeniedException
Id.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- the Id
of the resourcedispatchId
- the Id
of the dispatch SubscriptionList
NullArgumentException
- resourceId
or
dispatchId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsForSubscriberAndDispatchOnDate(Id resourceId, Id dispatchId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
Id
and effective during the entire given date
range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- the Id
of the resourcedispatchId
- a dispatch Id
from
- from dateto
- to date SubscriptionList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- resourceId, dispatchI,
from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByGenusTypeForSubscriberAndDispatch(Id resourceId, Id dispatchId, Type subscriptionGenusType) throws OperationFailedException, PermissionDeniedException
Id.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- the Id
of the resourcedispatchId
- the Id
of the dispatchsubscriptionGenusType
- a subscription genus type SubscriptionList
NullArgumentException
- resourceId, dispatchId
or subscriptionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SubscriptionList getSubscriptionsByGenusTypeForSubscriberAndDispatchOnDate(Id resourceId, Id dispatchId, Type subscriptionGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
Id
and effective during
the entire given date range inclusive but not confined to the date
range.
In plenary mode, the returned list contains all known subscriptions or
an error results. Otherwise, the returned list may contain only those
entries that are accessible through this session.
In effective mode, subscriptions are returned that are currently
effective. In any effective mode, effective subscriptions and those
currently expired are returned.resourceId
- the Id
of the resourcedispatchId
- a dispatch Id
subscriptionGenusType
- a subscription genus typefrom
- from dateto
- to date SubscriptionList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- resourceId, dispatch,
subscriptionGenusType, 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.