public interface SequenceRuleEnablerLookupSession extends OsidSession
This session provides methods for retrieving
SequenceRuleEnablers.
This session defines views that offer differing behaviors when retrieving multiple objects.
SequenceRuleEnablers
with the
SequenceRuleEnablerAdminSession.
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 useFederatedBankView()
and
useIsolatedBankView()
behave as a radio group and one should be
selected before invoking the methods in this session.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupSequenceRuleEnablers()
Tests if this user can perform
SequenceRuleEnablers
lookups. |
Bank |
getBank()
Gets the
Bank associated with this session. |
Id |
getBankId()
Gets the
Bank Id associated with this
session. |
SequenceRuleEnabler |
getSequenceRuleEnabler(Id sequenceRuleEnablerId)
Gets the
SequenceRuleEnabler specified by its
Id. |
SequenceRuleEnablerList |
getSequenceRuleEnablers()
Gets all
SequenceRuleEnablers. |
SequenceRuleEnablerList |
getSequenceRuleEnablersByGenusType(Type sequenceRuleEnablerGenusType)
Gets a
SequenceRuleEnablerList corresponding to the
given sequence rule enabler genus Type which does not
include sequence rule enablers of genus types derived from the
specified Type. |
SequenceRuleEnablerList |
getSequenceRuleEnablersByIds(IdList sequenceRuleEnablerIds)
Gets a
SequenceRuleEnablerList corresponding to the
given IdList. |
SequenceRuleEnablerList |
getSequenceRuleEnablersByParentGenusType(Type sequenceRuleEnablerGenusType)
Gets a
SequenceRuleEnablerList corresponding to the
given sequence rule enabler genus Type and include any
additional sequence rule enablers with genus types derived from the
specified Type. |
SequenceRuleEnablerList |
getSequenceRuleEnablersByRecordType(Type sequenceRuleEnablerRecordType)
Gets a
SequenceRuleEnablerList containing the given
sequence rule enabler record Type. |
SequenceRuleEnablerList |
getSequenceRuleEnablersOnDate(DateTime from,
DateTime to)
Gets a
SequenceRuleEnablerList that are effective for
the entire given date range inclusive but not confined to the date
range for any agent. |
SequenceRuleEnablerList |
getSequenceRuleEnablersOnDateWithAgent(Id agentId,
DateTime from,
DateTime to)
Gets a
SequenceRuleEnablerList that are effective for
the entire given date range inclusive but not confined to the date
range and evaluated against the given agent. |
void |
useActiveSequenceRuleEnablerView()
Only active sequence rule enablers are returned by methods in this
session.
|
void |
useAnyStatusSequenceRuleEnablerView()
All active and inactive sequence rule enablers are returned by methods
in this session.
|
void |
useComparativeSequenceRuleEnablerView()
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 |
useFederatedBankView()
Federates the view for methods in this session.
|
void |
useIsolatedBankView()
Isolates the view for methods in this session.
|
void |
usePlenarySequenceRuleEnablerView()
A complete view of the
SequenceRuleEnabler returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBankId()
Bank
Id
associated with this
session. Bank Id
associated with this sessionmandatory
- This method must be implemented. Bank getBank() throws OperationFailedException, PermissionDeniedException
Bank
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupSequenceRuleEnablers()
SequenceRuleEnablers
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 useComparativeSequenceRuleEnablerView()
mandatory
- This method is must be implemented. void usePlenarySequenceRuleEnablerView()
SequenceRuleEnabler
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 useFederatedBankView()
mandatory
- This method is must be implemented. void useIsolatedBankView()
mandatory
- This method is must be implemented. void useActiveSequenceRuleEnablerView()
mandatory
- This method is must be implemented. void useAnyStatusSequenceRuleEnablerView()
mandatory
- This method is must be implemented. SequenceRuleEnabler getSequenceRuleEnabler(Id sequenceRuleEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SequenceRuleEnabler
specified by its
Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
SequenceRuleEnabler
may have a different Id
than requested, such as the case where a duplicate Id
was assigned to a SequenceRuleEnabler
and retained for
compatibility.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned.sequenceRuleEnablerId
- Id
of the
SequenceRuleEnabler
NotFoundException
- sequenceRuleEnablerId
not foundNullArgumentException
- sequenceRuleEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. SequenceRuleEnablerList getSequenceRuleEnablersByIds(IdList sequenceRuleEnablerIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
SequenceRuleEnablerList
corresponding to the
given IdList.
In plenary mode, the returned list contains all of the
sequence rule enablers specified in the Id
list, in the
order of the list, including duplicates, or an error results if a
Id
in the supplied list is not found or inaccessible.
Otherwise, inaccessible SequenceRuleEnablers
may be
omitted from the list and may present the elements in any order
including returning a unique set.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned.sequenceRuleEnablerIds
- the list of Ids
to
retrieve SequenceRuleEnabler
listNotFoundException
- a Id was
not foundNullArgumentException
- sequenceRuleEnablerIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SequenceRuleEnablerList getSequenceRuleEnablersByGenusType(Type sequenceRuleEnablerGenusType) throws OperationFailedException, PermissionDeniedException
SequenceRuleEnablerList
corresponding to the
given sequence rule enabler genus Type
which does not
include sequence rule enablers of genus types derived from the
specified Type.
In plenary mode, the returned list contains all known
sequence rule enablers or an error results. Otherwise, the returned
list may contain only those sequence rule enablers that are accessible
through this session.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned.sequenceRuleEnablerGenusType
- a sequence rule enabler genus
type SequenceRuleEnabler
listNullArgumentException
-
sequenceRuleEnablerGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SequenceRuleEnablerList getSequenceRuleEnablersByParentGenusType(Type sequenceRuleEnablerGenusType) throws OperationFailedException, PermissionDeniedException
SequenceRuleEnablerList
corresponding to the
given sequence rule enabler genus Type
and include any
additional sequence rule enablers with genus types derived from the
specified Type.
In plenary mode, the returned list contains all known
sequence rule enablers or an error results. Otherwise, the returned
list may contain only those sequence rule enablers that are accessible
through this session.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned.sequenceRuleEnablerGenusType
- a sequence rule enabler genus
type SequenceRuleEnabler
listNullArgumentException
-
sequenceRuleEnablerGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SequenceRuleEnablerList getSequenceRuleEnablersByRecordType(Type sequenceRuleEnablerRecordType) throws OperationFailedException, PermissionDeniedException
SequenceRuleEnablerList
containing the given
sequence rule enabler record Type.
In plenary mode, the returned list contains all known
sequence rule enablers or an error results. Otherwise, the returned
list may contain only those sequence rule enablers that are accessible
through this session.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned.sequenceRuleEnablerRecordType
- a sequence rule enabler record
type SequenceRuleEnabler
listNullArgumentException
-
sequenceRuleEnablerRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SequenceRuleEnablerList getSequenceRuleEnablersOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
SequenceRuleEnablerList
that are effective for
the entire given date range inclusive but not confined to the date
range for any agent.
In plenary mode, the returned list contains all known
sequence rule enablers or an error results. Otherwise, the returned
list may contain only those sequence rule enablers that are accessible
through this session.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned.from
- a start dateto
- an end date SequenceRuleEnabler
listInvalidArgumentException
- from
is
greater tha to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SequenceRuleEnablerList getSequenceRuleEnablersOnDateWithAgent(Id agentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
SequenceRuleEnablerList
that are effective for
the entire given date range inclusive but not confined to the date
range and evaluated against the given agent.
In plenary mode, the returned list contains all known
sequence rule enablers or an error results. Otherwise, the returned
list may contain only those sequence rule enablers that are accessible
through this session.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned.agentId
- an agent Id
from
- a start dateto
- an end date SequenceRuleEnabler
listInvalidArgumentException
- from
is
greater tha to
NullArgumentException
- agentId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. SequenceRuleEnablerList getSequenceRuleEnablers() throws OperationFailedException, PermissionDeniedException
SequenceRuleEnablers.
In plenary mode, the returned list contains all known sequence rule
enablers or an error results. Otherwise, the returned list may contain
only those sequence rule enablers that are accessible through this
session.
In active mode, sequence rule enablers are returned that are currently
active. In any status mode, active and inactive sequence rule enablers
are returned. SequenceRuleEnabler
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.