Interface InquiryEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply InquiryEnablers to
Inquiries . An Inquiry with multiple
InquiryEnablers means any positive rule evaluation across the enablers
result in an active Inquiry .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignInquiryEnablerToInquiry(Id inquiryEnablerId, Id inquiryId) Adds an existingInquiryEnablerto anInquiry.booleanTests if this user can alter inquiry enabler/inquiry mappings.booleanTests if this user can orderInquiryEnablers.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidmoveInquiryEnablerAhead(Id inquiryEnablerId, Id inquiryId, Id referenceId) Reorders inquiry enablers for an inquiry by moving the specified inquiry enabler in front of a reference inquiry enabler.voidmoveInquiryEnablerBehind(Id inquiryEnablerId, Id inquiryId, Id referenceId) Reorders inquiry enablers for an inquiry by moving the specified inquiry enabler behind a reference inquiry enabler.voidorderInquiryEnablers(Id[] inquiryEnablerIds, Id inquiryId) Reorders a set of inquiry enablers for an inquiry.voidunassignInquiryEnablerFromInquiry(Id inquiryEnablerId, Id inquiryId) Removes anInquiryEnablerfrom anInquiry.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
-
getInquestId
Id getInquestId()Gets theInquestIdassociated with this session.- Returns:
- the
Inquest Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getInquest
Gets theInquestassociated with this session.- Returns:
- the inquest
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignInquiryEnablers
boolean canAssignInquiryEnablers()Tests if this user can alter inquiry enabler/inquiry 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.
-
assignInquiryEnablerToInquiry
void assignInquiryEnablerToInquiry(Id inquiryEnablerId, Id inquiryId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingInquiryEnablerto anInquiry.- Parameters:
inquiryEnablerId- theIdof theInquiryEnablerinquiryId- theIdof theInquiry- Throws:
AlreadyExistsException-inquiryEnablerIdalready applied toinquiryIdNotFoundException-inquiryEnablerIdorinquiryIdnot foundNullArgumentException-inquiryEnablerIdorinquiryIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignInquiryEnablerFromInquiry
void unassignInquiryEnablerFromInquiry(Id inquiryEnablerId, Id inquiryId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anInquiryEnablerfrom anInquiry.- Parameters:
inquiryEnablerId- theIdof theInquiryEnablerinquiryId- theIdof theInquiry- Throws:
NotFoundException-inquiryEnablerIdorinquiryIdnot found orinquiryEnablerIdnot applied toinquiryIdNullArgumentException-inquiryEnablerIdorinquiryIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceInquiryEnablers
boolean canSequenceInquiryEnablers()Tests if this user can orderInquiryEnablers. 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:
falseifInquiryEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveInquiryEnablerAhead
void moveInquiryEnablerAhead(Id inquiryEnablerId, Id inquiryId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders inquiry enablers for an inquiry by moving the specified inquiry enabler in front of a reference inquiry enabler.- Parameters:
inquiryEnablerId- theIdof anInquiryEnablerinquiryId- theIdof anInquiryreferenceId- the reference inquiry enablerId- Throws:
NotFoundException-inquiryEnablerId, inquiryId, orreferenceIdnot found or,inquiryEnablerIdorreferenceIdnot related toinquiryIdNullArgumentException-inquiryEnablerId, inquiryId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveInquiryEnablerBehind
void moveInquiryEnablerBehind(Id inquiryEnablerId, Id inquiryId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders inquiry enablers for an inquiry by moving the specified inquiry enabler behind a reference inquiry enabler.- Parameters:
inquiryEnablerId- theIdof anInquiryEnablerinquiryId- theIdof anInquiryreferenceId- the reference inquiry enablerId- Throws:
NotFoundException-inquiryEnablerId, inquiryId, orreferenceIdnot found or,inquiryEnablerIdorreferenceIdnot related toinquiryIdNullArgumentException-inquiryEnablerId, inquiryId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderInquiryEnablers
void orderInquiryEnablers(Id[] inquiryEnablerIds, Id inquiryId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of inquiry enablers for an inquiry.- Parameters:
inquiryEnablerIds- theIdsfor a set ofInquiryEnablersinquiryId- theIdof anInquiry- Throws:
NotFoundException-inquiryConstraienrIdnot found or, aninquiryEnablerIdnot related toinquiryIdNullArgumentException-inquiryEnablerIdsorinquiryIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-