Interface CommitmentEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCommitmentEnablerToCommitment(Id commitmentEnablerId, Id commitmentId) Adds an existingCommitmentEnablerto aCommitment.booleanTests if this user can alter commitment enabler/commitment mappings.booleanTests if this user can orderCommitmentEnablers.Gets theCalendarassociated with this session.Gets theCalendarIdassociated with this session.voidmoveCommitmentEnablerAhead(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.voidmoveCommitmentEnablerBehind(Id commitmentEventEnablerId, Id commitmentEventId, Id referenceId) Reorders commitment enablers for a commitment event by moving the specified commitment enabler behind a reference commitment enabler.voidorderCommitmentEnablers(Id[] commitmentEventEnablerId, Id commitmentEventId) Reorders a set of commitment enablers for a commitment.voidunassignCommitmentEnablerFromCommitment(Id commitmentEnablerId, Id commitmentId) Removes aCommitmentEnablerfrom aCommitment.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getCalendarId
Id getCalendarId()Gets theCalendarIdassociated with this session.- Returns:
- the
Calendar Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCalendar
Gets theCalendarassociated with this session.- Returns:
- the calendar
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignCommitmentEnablers
boolean canAssignCommitmentEnablers()Tests if this user can alter commitment enabler/commitment mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignCommitmentEnablerToCommitment
void assignCommitmentEnablerToCommitment(Id commitmentEnablerId, Id commitmentId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCommitmentEnablerto aCommitment.- Parameters:
commitmentEnablerId- theIdof theCommitmentEnablercommitmentId- theIdof theCommitment- Throws:
AlreadyExistsException-commitmentEnablerIdalready applied tocommitmentIdNotFoundException-commitmentEnablerIdorcommitmentIdnot foundNullArgumentException-commitmentEnablerIdorcommitmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCommitmentEnablerFromCommitment
void unassignCommitmentEnablerFromCommitment(Id commitmentEnablerId, Id commitmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCommitmentEnablerfrom aCommitment.- Parameters:
commitmentEnablerId- theIdof theCommitmentEnablercommitmentId- theIdof theCommitment- Throws:
NotFoundException-commitmentEnablerIdorcommitmentIdnot found orcommitmentEnablerIdnot applied tocommitmentIdNullArgumentException-commitmentEnablerIdorcommitmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceCommitmentEnablers
boolean canSequenceCommitmentEnablers()Tests if this user can orderCommitmentEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifCommitmentEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveCommitmentEnablerAhead
void moveCommitmentEnablerAhead(Id commitmentEventEnablerId, Id commitmentEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders commitment enablers for a commitment by moving the specified commitment enabler in front of a reference commitment enabler.- Parameters:
commitmentEventEnablerId- theIdof aCommitmentEnablercommitmentEventId- theIdof aCommitmentreferenceId- the reference commitment enablerId- Throws:
NotFoundException-commitmentEnablerId, commitmentId, orreferenceIdnot found or,commitmentEnablerIdorreferenceIdnot related tocommitmentIdNullArgumentException-commitmentEnablerId, commitmentIdorreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveCommitmentEnablerBehind
void moveCommitmentEnablerBehind(Id commitmentEventEnablerId, Id commitmentEventId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders commitment enablers for a commitment event by moving the specified commitment enabler behind a reference commitment enabler.- Parameters:
commitmentEventEnablerId- theIdof aCommitmentEnablercommitmentEventId- theIdof aCommitmentreferenceId- the reference commitment enablerId- Throws:
NotFoundException-commitmentEnablerId, commitmentId, orreferenceIdnot found or,commitmentEnablerIdorreferenceIdnot related tocommitmentIdNullArgumentException-commitmentEnablerId, commitmentIdorreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderCommitmentEnablers
void orderCommitmentEnablers(Id[] commitmentEventEnablerId, Id commitmentEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of commitment enablers for a commitment.- Parameters:
commitmentEventEnablerId- theIdsfor a set ofCommitmentEnablerIdscommitmentEventId- theIdof aCommitment- Throws:
NotFoundException-commitmentIdnot found or, ancommitmentEnablerIdnot related tocommitmentIdNullArgumentException-commitmentEnablerIdsorcommitmentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-