public interface AuditInquestSession extends OsidSession
This session provides methods to retrieve Audit
to
Inquest
mappings. An Audit
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 |
canLookupAuditInquestMappings()
Tests if this user can perform lookups of audit/inquest mappings.
|
IdList |
getAuditIdsByInquest(Id inquestId)
Gets the list of
Audit Ids associated with a
Inquest. |
IdList |
getAuditIdsByInquests(IdList inquestIds)
Gets the list of
Audit Ids corresponding to a list of
Inquests. |
AuditList |
getAuditsByInquest(Id inquestId)
Gets the list of audits associated with a
Inquest. |
AuditList |
getAuditsByInquests(IdList inquestIds)
Gets the list of audits corresponding to a list of
Inquests. |
IdList |
getInquestIdsByAudit(Id auditId)
Gets the
Inquest Ids mapped to an
Audit. |
InquestList |
getInquestsByAudit(Id auditId)
Gets the
Inquests mapped to an Audit. |
void |
useComparativeAuditInquestView()
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 |
usePlenaryAuditInquestView()
A complete view of the
Audit and Inquest
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupAuditInquestMappings()
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 useComparativeAuditInquestView()
mandatory
- This method is must be implemented. void usePlenaryAuditInquestView()
Audit
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 getAuditIdsByInquest(Id inquestId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Audit Ids
associated with a
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. AuditList getAuditsByInquest(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 getAuditIdsByInquests(IdList inquestIds) throws OperationFailedException, PermissionDeniedException
Audit 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. AuditList getAuditsByInquests(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 getInquestIdsByAudit(Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Inquest
Ids
mapped to an
Audit.
auditId
- Id
of an Audit
NotFoundException
- auditId
is not foundNullArgumentException
- auditId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InquestList getInquestsByAudit(Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Inquests
mapped to an Audit.
auditId
- Id
of an Audit
NotFoundException
- auditId
is not foundNullArgumentException
- auditId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.