public interface OfferingConstrainerLookupSession extends OsidSession
This session provides methods for retrieving
OfferingConstrainers.
This session defines views that offer differing behaviors when retrieving multiple objects.
OfferingConstrainers
with the
OfferingConstrainerAdminSession.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedDistributorView()
and
useIsolatedDistributorView()
behave as a radio group and one
should be selected before invoking the methods in this session.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupOfferingConstrainers()
Tests if this user can perform
OfferingConstrainers
lookups. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
OfferingConstrainer |
getOfferingConstrainer(Id offeringConstrainerId)
Gets the
OfferingConstrainer specified by its
Id. |
OfferingConstrainerList |
getOfferingConstrainers()
Gets all
OfferingConstrainers. |
OfferingConstrainerList |
getOfferingConstrainersByGenusType(Type offeringConstrainerGenusType)
Gets an
OfferingConstrainerList corresponding to the
given offering constrainer genus Type which does not
include offering constrainer of genus types derived from the specified
Type. |
OfferingConstrainerList |
getOfferingConstrainersByIds(IdList offeringConstrainerIds)
Gets an
OfferingConstrainerList corresponding to the
given IdList. |
OfferingConstrainerList |
getOfferingConstrainersByParentGenusType(Type offeringConstrainerGenusType)
Gets an
OfferingConstrainerList corresponding to the
given offering constrainer genus Type and include any
additional offering constrainer with genus types derived from the
specified Type. |
OfferingConstrainerList |
getOfferingConstrainersByRecordType(Type offeringConstrainerRecordType)
Gets an
OfferingConstrainerList containing the given
offering constrainer record Type. |
void |
useActiveOfferingConstrainerView()
Only active offering constrainers are returned by methods in this
session.
|
void |
useAnyStatusOfferingConstrainerView()
All active and inactive offering constrainers are returned by methods
in this session.
|
void |
useComparativeOfferingConstrainerView()
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 |
useFederatedCatalogueView()
Federates the view for methods in this session.
|
void |
useIsolatedCatalogueView()
Isolates the view for methods in this session.
|
void |
usePlenaryOfferingConstrainerView()
A complete view of the
OfferingConstrainer returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCatalogueId()
Catalogue
Id
associated with
this session. Catalogue Id
associated with this sessionmandatory
- This method must be implemented. Catalogue getCatalogue() throws OperationFailedException, PermissionDeniedException
Catalogue
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupOfferingConstrainers()
OfferingConstrainers
lookups. A return of true does not guarantee successful authorization.
A return of false indicates that it is known all methods in this
session will result in a PERMISSION_DENIED.
This is
intended as a hint to an application that may opt not to offer lookup
operations to unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeOfferingConstrainerView()
mandatory
- This method is must be implemented. void usePlenaryOfferingConstrainerView()
OfferingConstrainer
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 useFederatedCatalogueView()
mandatory
- This method is must be implemented. void useIsolatedCatalogueView()
mandatory
- This method is must be implemented. void useActiveOfferingConstrainerView()
mandatory
- This method is must be implemented. void useAnyStatusOfferingConstrainerView()
mandatory
- This method is must be implemented. OfferingConstrainer getOfferingConstrainer(Id offeringConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OfferingConstrainer
specified by its
Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
OfferingConstrainer
may have a different Id
than requested, such as the case where a duplicate Id
was assigned to an OfferingConstrainer
and retained for
compatibility.
In active mode, offering constrainers are returned that are currently
active. In any status mode, active and inactive offering constrainers
are returned.offeringConstrainerId
- Id
of the
OfferingConstrainer
NotFoundException
- offeringConstrainerId
not foundNullArgumentException
- offeringConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. OfferingConstrainerList getOfferingConstrainersByIds(IdList offeringConstrainerIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
OfferingConstrainerList
corresponding to the
given IdList.
In plenary mode, the returned list contains all of the
offering constrainer 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 OfferingConstrainers
may be
omitted from the list and may present the elements in any order
including returning a unique set.
In active mode, offering constrainers are returned that are currently
active. In any status mode, active and inactive offering constrainers
are returned.offeringConstrainerIds
- the list of Ids
to
retrieve OfferingConstrainer
listNotFoundException
- an Id was
not foundNullArgumentException
- offeringConstrainerIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. OfferingConstrainerList getOfferingConstrainersByGenusType(Type offeringConstrainerGenusType) throws OperationFailedException, PermissionDeniedException
OfferingConstrainerList
corresponding to the
given offering constrainer genus Type
which does not
include offering constrainer of genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
offering constrainer or an error results. Otherwise, the returned list
may contain only those offering constrainer that are accessible
through this session.
In active mode, offering constrainers are returned that are currently
active. In any status mode, active and inactive offering constrainers
are returned.offeringConstrainerGenusType
- an offering constrainer genus
type OfferingConstrainer
listNullArgumentException
-
offeringConstrainerGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. OfferingConstrainerList getOfferingConstrainersByParentGenusType(Type offeringConstrainerGenusType) throws OperationFailedException, PermissionDeniedException
OfferingConstrainerList
corresponding to the
given offering constrainer genus Type
and include any
additional offering constrainer with genus types derived from the
specified Type.
In plenary mode, the returned list contains all known
offering constrainer or an error results. Otherwise, the returned list
may contain only those offering constrainer that are accessible
through this session.
In active mode, offering constrainers are returned that are currently
active. In any status mode, active and inactive offering constrainers
are returned.offeringConstrainerGenusType
- an offering constrainer genus
type OfferingConstrainer
listNullArgumentException
-
offeringConstrainerGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. OfferingConstrainerList getOfferingConstrainersByRecordType(Type offeringConstrainerRecordType) throws OperationFailedException, PermissionDeniedException
OfferingConstrainerList
containing the given
offering constrainer record Type.
In plenary mode, the returned list contains all known
offering constrainer or an error results. Otherwise, the returned list
may contain only those offering constrainer that are accessible
through this session.
In active mode, offering constrainers are returned that are currently
active. In any status mode, active and inactive offering constrainers
are returned.offeringConstrainerRecordType
- an offering constrainer record
type OfferingConstrainer
listNullArgumentException
-
offeringConstrainerRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. OfferingConstrainerList getOfferingConstrainers() throws OperationFailedException, PermissionDeniedException
OfferingConstrainers.
In plenary mode, the returned list contains all known offering
constrainer or an error results. Otherwise, the returned list may
contain only those offering constrainer that are accessible through
this session.
In active mode, offering constrainers are returned that are currently
active. In any status mode, active and inactive offering constrainers
are returned. OfferingConstrainer
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.