public interface AuditEnablerInquestSession extends OsidSession
This session provides methods to retrieve AuditEnabler
to Inquest
mappings. An AuditEnabler
may
appear in multiple Inquest
objects. Each inquest may have
its own authorizations governing who is allowed to look at it.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupAuditEnablerInquestMappings()
Tests if this user can perform lookups of audit enabler/inquest
mappings.
|
IdList |
getAuditEnablerIdsByInquest(Id inquestId)
Gets the list of
AuditEnablerIds associated with an
Inquest. |
IdList |
getAuditEnablerIdsByInquests(IdList inquestIds)
Gets the list of
AuditEnabler Ids corresponding to a
list of Inquests. |
AuditEnablerList |
getAuditEnablersByInquest(Id inquestId)
Gets the list of audit enablers associated with an
Inquest. |
AuditEnablerList |
getAuditEnablersByInquests(IdList inquestIds)
Gets the list of audit enablers corresponding to a list of
Inquests. |
IdList |
getInquestIdsByAuditEnabler(Id auditEnablerId)
Gets the
Inquest Ids mapped to an
AuditEnabler. |
InquestList |
getInquestsByAuditEnabler(Id auditEnablerId)
Gets the
Inquests mapped to an AuditEnabler. |
void |
useComparativeAuditEnablerInquestView()
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 |
usePlenaryAuditEnablerInquestView()
A complete view of the
AuditEnabler and Inquest
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupAuditEnablerInquestMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeAuditEnablerInquestView()
mandatory
- This method is must be implemented. void usePlenaryAuditEnablerInquestView()
AuditEnabler
and Inquest
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. IdList getAuditEnablerIdsByInquest(Id inquestId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuditEnablerIds
associated with an
Inquest.
inquestId
- Id
of the Inquest
Ids
NotFoundException
- inquestId
is not
foundNullArgumentException
- inquestId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AuditEnablerList getAuditEnablersByInquest(Id inquestId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Inquest.
inquestId
- Id
of the Inquest
NotFoundException
- inquestId
is not
foundNullArgumentException
- inquestId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getAuditEnablerIdsByInquests(IdList inquestIds) throws OperationFailedException, PermissionDeniedException
AuditEnabler Ids
corresponding to a
list of Inquests.
inquestIds
- list of inquest Ids
Ids
NullArgumentException
- inquestIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AuditEnablerList getAuditEnablersByInquests(IdList inquestIds) throws OperationFailedException, PermissionDeniedException
Inquests.
inquestIds
- list of inquest Ids
NullArgumentException
- inquestIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getInquestIdsByAuditEnabler(Id auditEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Inquest
Ids
mapped to an
AuditEnabler.
auditEnablerId
- Id
of an AuditEnabler
NotFoundException
- auditEnablerId
is
not foundNullArgumentException
- auditEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InquestList getInquestsByAuditEnabler(Id auditEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Inquests
mapped to an AuditEnabler.
auditEnablerId
- Id
of an AuditEnabler
NotFoundException
- auditEnablerId
is
not foundNullArgumentException
- auditEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.