public interface CommitmentEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply CommitmentEnablers
to Commitments. A Commitment with
multiple CommitmentEnablers means any positive rule
evaluation across the enablers result in an effective Commitment.
| Modifier and Type | Method and Description |
|---|---|
void |
assignCommitmentEnablerToCommitment(Id commitmentEnablerId,
Id commitmentId)
Adds an existing
CommitmentEnabler to a
Commitment. |
boolean |
canAssignCommitmentEnablers()
Tests if this user can alter commitment enabler/commitment mappings.
|
boolean |
canSequenceCommitmentEnablers()
Tests if this user can order
CommitmentEnablers. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
void |
moveCommitmentEnablerAhead(Id commitmentEventEnablerId,
Id commitmentEventId,
Id referenceId)
Reorders commitment enablers for a commitment by moving the specified
commitment enabler in front of a reference commitment enabler.
|
void |
moveCommitmentEnablerBehind(Id commitmentEventEnablerId,
Id commitmentEventId,
Id referenceId)
Reorders commitment enablers for a commitment event by moving the
specified commitment enabler behind a reference commitment enabler.
|
void |
orderCommitmentEnablers(Id[] commitmentEventEnablerId,
Id commitmentEventId)
Reorders a set of commitment enablers for a commitment.
|
void |
unassignCommitmentEnablerFromCommitment(Id commitmentEnablerId,
Id commitmentId)
Removes a
CommitmentEnabler from a Commitment. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCalendarId()
Calendar Id associated with
this session. Calendar Id associated with this sessionmandatory - This method must be implemented. Calendar getCalendar() throws OperationFailedException, PermissionDeniedException
Calendar associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignCommitmentEnablers()
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 assignCommitmentEnablerToCommitment(Id commitmentEnablerId, Id commitmentId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
CommitmentEnabler to a
Commitment. commitmentEnablerId - the Id of the
CommitmentEnabler commitmentId - the Id of the Commitment
AlreadyExistsException - commitmentEnablerId
already applied to commitmentId NotFoundException - commitmentEnablerId
or commitmentId not foundNullArgumentException - commitmentEnablerId
or commitmentId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignCommitmentEnablerFromCommitment(Id commitmentEnablerId, Id commitmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CommitmentEnabler from a Commitment.
commitmentEnablerId - the Id of the
CommitmentEnabler commitmentId - the Id of the Commitment
NotFoundException - commitmentEnablerId
or commitmentId not found or
commitmentEnablerId not applied to commitmentId
NullArgumentException - commitmentEnablerId
or commitmentId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequenceCommitmentEnablers()
CommitmentEnablers. 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 CommitmentEnabler
ordering is not authorized, true otherwisemandatory - This method must be implemented. void moveCommitmentEnablerAhead(Id commitmentEventEnablerId, Id commitmentEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
commitmentEventEnablerId - the Id of a
CommitmentEnabler commitmentEventId - the Id of a Commitment
referenceId - the reference commitment enabler Id NotFoundException - commitmentEnablerId,
commitmentId, or referenceId not found
or, commitmentEnablerId or referenceId
not related to commitmentId NullArgumentException - commitmentEnablerId,
commitmentId or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void moveCommitmentEnablerBehind(Id commitmentEventEnablerId, Id commitmentEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
commitmentEventEnablerId - the Id of a
CommitmentEnabler commitmentEventId - the Id of a Commitment
referenceId - the reference commitment enabler Id NotFoundException - commitmentEnablerId,
commitmentId, or referenceId not found
or, commitmentEnablerId or referenceId
not related to commitmentId NullArgumentException - commitmentEnablerId,
commitmentId or referenceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderCommitmentEnablers(Id[] commitmentEventEnablerId, Id commitmentEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
commitmentEventEnablerId - the Ids for a set of
CommitmentEnablerIds commitmentEventId - the Id of a Commitment
NotFoundException - commitmentId not
found or, an commitmentEnablerId not related to
commitmentId NullArgumentException - commitmentEnablerIds
or commitmentId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.