public interface AuditEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply AuditEnablers
to
Audits.
An Audit
with multiple
AuditEnablers
means any positive rule evaluation across the
enablers result in an effective Audit.
Modifier and Type | Method and Description |
---|---|
void |
assignAuditEnablerToAudit(Id auditEnablerId,
Id auditId)
Adds an existing
AuditEnabler to an Audit. |
boolean |
canAssignAuditEnablers()
Tests if this user can alter audit enabler/audit mappings.
|
boolean |
canSequenceAuditEnablers()
Tests if this user can order
AuditEnablers. |
Inquest |
getInquest()
Gets the
Inquest associated with this session. |
Id |
getInquestId()
Gets the
Inquest Id associated with this
session. |
void |
moveAuditEnablerAhead(Id auditEnablerId,
Id auditId,
Id referenceId)
Reorders audit enablers for an audit by moving the specified audit
enabler in front of a reference audit enabler.
|
void |
moveAuditEnablerBehind(Id auditEnablerId,
Id auditId,
Id referenceId)
Reorders audit enablers for an inquiry by moving the specified audit
enabler behind a reference audit enabler.
|
void |
orderAuditEnablers(Id[] auditEnablerIds,
Id auditId)
Reorders a set of audit enablers for an audit.
|
void |
unassignAuditEnablerFromAudit(Id auditEnablerId,
Id auditId)
Removes an
AuditEnabler from an Audit. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getInquestId()
Inquest
Id
associated with this
session. Inquest Id
associated with this sessionmandatory
- This method must be implemented. Inquest getInquest() throws OperationFailedException, PermissionDeniedException
Inquest
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignAuditEnablers()
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. void assignAuditEnablerToAudit(Id auditEnablerId, Id auditId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
AuditEnabler
to an Audit.
auditEnablerId
- the Id
of the
AuditEnabler
auditId
- the Id
of the Audit
AlreadyExistsException
- auditEnablerId
already applied to auditId
NotFoundException
- auditEnablerId
or
auditId
not foundNullArgumentException
- auditEnablerId
or auditId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignAuditEnablerFromAudit(Id auditEnablerId, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AuditEnabler
from an Audit.
auditEnablerId
- the Id
of the
AuditEnabler
auditId
- the Id
of the Audit
NotFoundException
- auditEnablerId
or
auditId
not found or auditEnablerId
not applied to auditId
NullArgumentException
- auditEnablerId
or auditId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceAuditEnablers()
AuditEnablers.
A return of
true does not guarantee successful authorization. A return of false
indicates that it is known sequencing operations will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer sequencing operations to an
unauthorized user. false
if AuditEnabler
ordering
is not authorized, true
otherwisemandatory
- This method must be implemented. void moveAuditEnablerAhead(Id auditEnablerId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
auditEnablerId
- the Id
of an AuditEnabler
auditId
- the Id
of an Audit
referenceId
- the reference audit enabler Id
NotFoundException
- auditEnablerId, auditId,
or referenceId
not found or,
auditEnablerId
or referenceId
not
related to auditId
NullArgumentException
- auditEnablerId, auditId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveAuditEnablerBehind(Id auditEnablerId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
auditEnablerId
- the Id
of an AuditEnabler
auditId
- the Id
of an Audit
referenceId
- the reference audit enabler Id
NotFoundException
- auditEnablerId, auditId,
or referenceId
not found or,
auditEnablerId
or referenceId
not
related to auditId
NullArgumentException
- auditEnablerId, auditId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderAuditEnablers(Id[] auditEnablerIds, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException
auditEnablerIds
- the Ids
for a set of
AuditEnablers
auditId
- the Id
of an Audit
NotFoundException
- inquiryConstraienrId
not found or, an auditEnablerId
not related to
auditId
NullArgumentException
- auditEnablerIds
or auditId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.