public interface CommissionLookupSession extends OsidSession
This session provides methods for retrieving Commission
relationships.
This session defines views that offer differing behaviors when retrieving multiple objects.
Commissions
with the CommissionAdminSession.
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 useFederatedFoundryView()
and
useIsolatedFoundryView()
behave as a radio group and one should be
selected before invoking any lookup methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupCommissions()
Tests if this user can perform
Commission lookups. |
Commission |
getCommission(Id commissionId)
Gets the
Commission specified by its Id. |
CommissionList |
getCommissions()
Gets all
Commissions. |
CommissionList |
getCommissionsByGenusType(Type commissionGenusType)
Gets a
CommissionList corresponding to the given
commission genus Type which does not include
commissions of genus types derived from the specified Type. |
CommissionList |
getCommissionsByIds(IdList commissionIds)
Gets a
CommissionList corresponding to the given
IdList. |
CommissionList |
getCommissionsByParentGenusType(Type commissionGenusType)
Gets a
CommissionList corresponding to the given
commission genus Type and include any additional
commissions with genus types derived from the specified Type. |
CommissionList |
getCommissionsByRecordType(Type commissionRecordType)
Gets a
CommissionList containing the given commission
record Type. |
CommissionList |
getCommissionsForResource(Id resourceId)
Gets a list of commissions for a resource.
|
CommissionList |
getCommissionsForResourceAndWork(Id resourceId,
Id workId)
Gets a list of commissions for a resource and work.
|
CommissionList |
getCommissionsForResourceAndWorkOnDate(Id resourceId,
Id workId,
DateTime from,
DateTime to)
Gets a list of commissions for a resource and work and effective
during the entire given date range inclusive but not confined to the
date range.
|
CommissionList |
getCommissionsForResourceOnDate(Id resourceId,
DateTime from,
DateTime to)
Gets a list of commissions for a resource and effective during the
entire given date range inclusive but not confined to the date range.
|
CommissionList |
getCommissionsForWork(Id workId)
Gets a list of commissions for a work.
|
CommissionList |
getCommissionsForWorkOnDate(Id workId,
DateTime from,
DateTime to)
Gets a list of commissions for a work and effective during the entire
given date range inclusive but not confined to the date range.
|
CommissionList |
getCommissionsOnDate(DateTime from,
DateTime to)
Gets a list of commissions effective during the entire given date
range inclusive but not confined to the date range.
|
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
void |
useAnyEffectiveCommissionView()
All commissions of any effective dates are returned by methods in this
session.
|
void |
useComparativeCommissionView()
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 |
useEffectiveCommissionView()
Only commissions whose effective dates are current are returned by
methods in this session.
|
void |
useFederatedFoundryView()
Federates the view for methods in this session.
|
void |
useIsolatedFoundryView()
Isolates the view for methods in this session.
|
void |
usePlenaryCommissionView()
A complete view of the
Commission returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getFoundryId()
Foundry
Id
associated with this
session. Foundry Id
associated with this sessionmandatory
- This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupCommissions()
Commission
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 useComparativeCommissionView()
mandatory
- This method is must be implemented. void usePlenaryCommissionView()
Commission
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 useFederatedFoundryView()
mandatory
- This method is must be implemented. void useIsolatedFoundryView()
mandatory
- This method is must be implemented. void useEffectiveCommissionView()
mandatory
- This method is must be implemented. void useAnyEffectiveCommissionView()
mandatory
- This method is must be implemented. Commission getCommission(Id commissionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Commission
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
Commission
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to a Commission
and retained for
compatibility.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.commissionId
- Id
of the Commission
NotFoundException
- commissionId
not
foundNullArgumentException
- commissionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. CommissionList getCommissionsByIds(IdList commissionIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
CommissionList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
commissions 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 Commissions
may be omitted from the list
and may present the elements in any order including returning a unique
set.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.commissionIds
- the list of Ids
to retrieve Commission
listNotFoundException
- an Id
was not foundNullArgumentException
- commissionIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsByGenusType(Type commissionGenusType) throws OperationFailedException, PermissionDeniedException
CommissionList
corresponding to the given
commission genus Type
which does not include
commissions of genus types derived from the specified Type.
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.commissionGenusType
- a commission genus type Commission
listNullArgumentException
- commissionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsByParentGenusType(Type commissionGenusType) throws OperationFailedException, PermissionDeniedException
CommissionList
corresponding to the given
commission genus Type
and include any additional
commissions with genus types derived from the specified Type.
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session. In both cases, the order of the set is by the start effective
date.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.commissionGenusType
- a commission genus type Commission
listNullArgumentException
- commissionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsByRecordType(Type commissionRecordType) throws OperationFailedException, PermissionDeniedException
CommissionList
containing the given commission
record Type.
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.commissionRecordType
- a commission record type Commission
listNullArgumentException
- commissionRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.from
- start of date rangeto
- end of date range Commission
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.resourceId
- a resource Id
Commission
listNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsForResourceOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.resourceId
- a resource Id
from
- start of date rangeto
- end of date range Commission
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- resourceId, from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.workId
- a work Id
ommission
listNullArgumentException
- workId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsForWorkOnDate(Id workId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
workId
- a work Id
from
- start of date rangeto
- end of date range ommission
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- workId, from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsForResourceAndWork(Id resourceId, Id workId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.resourceId
- a resource Id
workId
- a work Id
ommission
listNullArgumentException
- resourceId
or
workId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissionsForResourceAndWorkOnDate(Id resourceId, Id workId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
commissions or an error results. Otherwise, the returned list may
contain only those commissions that are accessible through this
session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned.resourceId
- a resource Id
workId
- a work Id
from
- start of date rangeto
- end of date range ommission
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- resourceId, workId, from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CommissionList getCommissions() throws OperationFailedException, PermissionDeniedException
Commissions.
In plenary mode, the returned list contains all known commissions or
an error results. Otherwise, the returned list may contain only those
commissions that are accessible through this session.
In effective mode, commissions are returned that are currently
effective. In any effective mode, effective commissions and those
currently expired are returned. Commissions
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.