public interface OfferingConstrainerQuerySession extends OsidSession
This session provides methods for searching among
OfferingConstrainer
objects. The search query is constructed using
the OfferingConstrainerQuery.
This session defines views that offer differing behaviors for searching.
CanonicalUnit constrainer may have a query record indicated by their
respective record types. The query record is accessed via the
OfferingConstrainerQuery.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchOfferingConstrainers()
Tests if this user can perform
OfferingConstrainer
lookups. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
OfferingConstrainerQuery |
getOfferingConstrainerQuery()
Gets an offering constrainer query.
|
OfferingConstrainerList |
getOfferingConstrainersByQuery(OfferingConstrainerQuery offeringConstrainerQuery)
Gets a list of
OfferingConstrainers matching the given
search. |
void |
useFederatedCatalogueView()
Federates the view for methods in this session.
|
void |
useIsolatedCatalogueView()
Isolates the view for methods in this session.
|
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 canSearchOfferingConstrainers()
OfferingConstrainer
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 not offer lookup
operations to unauthorized users. false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useFederatedCatalogueView()
mandatory
- This method is must be implemented. void useIsolatedCatalogueView()
mandatory
- This method is must be implemented. OfferingConstrainerQuery getOfferingConstrainerQuery()
mandatory
- This method must be implemented. OfferingConstrainerList getOfferingConstrainersByQuery(OfferingConstrainerQuery offeringConstrainerQuery) throws OperationFailedException, PermissionDeniedException
OfferingConstrainers
matching the given
search.offeringConstrainerQuery
- the offering constrainer query OfferingConstrainerList
NullArgumentException
- offeringConstrainerQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- offeringConstrainerQuery
is not of this servicemandatory
- This method must be implemented.