public interface CanonicalUnitProcessorLookupSession extends OsidSession
This session provides methods for retrieving
CanonicalUnitProcessors.
This session defines views that offer differing behaviors when retrieving multiple objects.
CanonicalUnitProcessors
with the
CanonicalUnitProcessorAdminSession.
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 |
canLookupCanonicalUnitProcessors()
Tests if this user can perform
CanonicalUnitProcessors
lookups. |
CanonicalUnitProcessor |
getCanonicalUnitProcessor(Id canonicalUnitProcessorId)
Gets the
CanonicalUnitProcessor specified by its
Id. |
CanonicalUnitProcessorList |
getCanonicalUnitProcessors()
Gets all
CanonicalUnitProcessors. |
CanonicalUnitProcessorList |
getCanonicalUnitProcessorsByGenusType(Type canonicalUnitProcessorGenusType)
Gets a
CanonicalUnitProcessorList corresponding to the
given canonical unit processor genus Type which does
not include canonical unit processor of genus types derived from the
specified Type. |
CanonicalUnitProcessorList |
getCanonicalUnitProcessorsByIds(IdList canonicalUnitProcessorIds)
Gets a
CanonicalUnitProcessorList corresponding to the
given IdList. |
CanonicalUnitProcessorList |
getCanonicalUnitProcessorsByParentGenusType(Type canonicalUnitProcessorGenusType)
Gets a
CanonicalUnitProcessorList corresponding to the
given canonical unit processor genus Type and include
any additional canonical unit processor with genus types derived from
the specified Type. |
CanonicalUnitProcessorList |
getCanonicalUnitProcessorsByRecordType(Type canonicalUnitProcessorRecordType)
Gets a
CanonicalUnitProcessorList containing the given
canonical unit processor record Type. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
void |
useActiveCanonicalUnitProcessorView()
Only active canonical unit processors are returned by methods in this
session.
|
void |
useAnyStatusCanonicalUnitProcessorView()
All active and inactive canonical unit processors are returned by
methods in this session.
|
void |
useComparativeCanonicalUnitProcessorView()
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 |
usePlenaryCanonicalUnitProcessorView()
A complete view of the
CanonicalUnitProcessor 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 canLookupCanonicalUnitProcessors()
CanonicalUnitProcessors
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 useComparativeCanonicalUnitProcessorView()
mandatory
- This method is must be implemented. void usePlenaryCanonicalUnitProcessorView()
CanonicalUnitProcessor
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 useActiveCanonicalUnitProcessorView()
mandatory
- This method is must be implemented. void useAnyStatusCanonicalUnitProcessorView()
mandatory
- This method is must be implemented. CanonicalUnitProcessor getCanonicalUnitProcessor(Id canonicalUnitProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CanonicalUnitProcessor
specified by its
Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
CanonicalUnitProcessor
may have a different Id
than requested, such as the case where a duplicate Id
was assigned to a CanonicalUnitProcessor
and retained
for compatibility.
In active mode, canonical unit processors are returned that are
currently active. In any status mode, active and inactive canonical
unit processors are returned.canonicalUnitProcessorId
- Id
of the
CanonicalUnitProcessor
NotFoundException
- canonicalUnitProcessorId
not foundNullArgumentException
- canonicalUnitProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. CanonicalUnitProcessorList getCanonicalUnitProcessorsByIds(IdList canonicalUnitProcessorIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
CanonicalUnitProcessorList
corresponding to the
given IdList.
In plenary mode, the returned list contains all of the
canonical unit processor 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 CanonicalUnitProcessors
may be
omitted from the list and may present the elements in any order
including returning a unique set.
In active mode, canonical unit processors are returned that are
currently active. In any status mode, active and inactive canonical
unit processors are returned.canonicalUnitProcessorIds
- the list of Ids
to
retrieve CanonicalUnitProcessor
listNotFoundException
- an Id was
not foundNullArgumentException
-
canonicalUnitProcessorIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CanonicalUnitProcessorList getCanonicalUnitProcessorsByGenusType(Type canonicalUnitProcessorGenusType) throws OperationFailedException, PermissionDeniedException
CanonicalUnitProcessorList
corresponding to the
given canonical unit processor genus Type
which does
not include canonical unit processor of genus types derived from the
specified Type.
In plenary mode, the returned list contains all known
canonical unit processor or an error results. Otherwise, the returned
list may contain only those canonical unit processor that are
accessible through this session.
In active mode, canonical unit processors are returned that are
currently active. In any status mode, active and inactive canonical
unit processors are returned.canonicalUnitProcessorGenusType
- a canonical unit processor
genus type CanonicalUnitProcessor
listNullArgumentException
-
canonicalUnitProcessorGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CanonicalUnitProcessorList getCanonicalUnitProcessorsByParentGenusType(Type canonicalUnitProcessorGenusType) throws OperationFailedException, PermissionDeniedException
CanonicalUnitProcessorList
corresponding to the
given canonical unit processor genus Type
and include
any additional canonical unit processor with genus types derived from
the specified Type.
In plenary mode, the returned list contains all known
canonical unit processor or an error results. Otherwise, the returned
list may contain only those canonical unit processor that are
accessible through this session.
In active mode, canonical unit processors are returned that are
currently active. In any status mode, active and inactive canonical
unit processors are returned.canonicalUnitProcessorGenusType
- a canonical unit processor
genus type CanonicalUnitProcessor
listNullArgumentException
-
canonicalUnitProcessorGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CanonicalUnitProcessorList getCanonicalUnitProcessorsByRecordType(Type canonicalUnitProcessorRecordType) throws OperationFailedException, PermissionDeniedException
CanonicalUnitProcessorList
containing the given
canonical unit processor record Type.
In plenary mode, the returned list contains all known
canonical unit processor or an error results. Otherwise, the returned
list may contain only those canonical unit processor that are
accessible through this session.
In active mode, canonical unit processors are returned that are
currently active. In any status mode, active and inactive canonical
unit processors are returned.canonicalUnitProcessorRecordType
- a canonical unit processor
record type CanonicalUnitProcessor
listNullArgumentException
-
canonicalUnitProcessorRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CanonicalUnitProcessorList getCanonicalUnitProcessors() throws OperationFailedException, PermissionDeniedException
CanonicalUnitProcessors.
In plenary mode, the returned list contains all known canonical unit
processor or an error results. Otherwise, the returned list may
contain only those canonical unit processor that are accessible
through this session.
In active mode, canonical unit processors are returned that are
currently active. In any status mode, active and inactive canonical
unit processors are returned. CanonicalUnitProcessor
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.