Interface InputEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply InputEnablers to
Inputs . An Input with multiple InputEnablers means any
positive rule evaluation across the enablers result in an effective
Input .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignInputEnablerToInput(Id inputEnablerId, Id inputId) Adds an existingInputEnablerto anInput.booleanTests if this user can alter input enabler/input mappings.booleanTests if this user can orderInputs.Gets theSystemassociated with this session.Gets theSystemIdassociated with this session.voidmoveInputEnablerAhead(Id inputEnablerId, Id inputId, Id referenceId) Reorders input enablers for an input by moving the specified input enabler in front of a reference input enabler.voidmoveInputEnablerBehind(Id inputEnablerId, Id inputId, Id referenceId) Reorders input enablers for an input by moving the specified input enabler behind a reference input enabler.voidorderInputEnablers(Id[] inputEnablerIds, Id inputId) Reorders a set of input enablers for an input.voidunassignInputEnablerFromInput(Id inputEnablerId, Id inputId) Removes anInputEnablerfrom anInput.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
-
getSystemId
Id getSystemId()Gets theSystemIdassociated with this session.- Returns:
- the
System Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getSystem
Gets theSystemassociated with this session.- Returns:
- the system
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignInputEnablers
boolean canAssignInputEnablers()Tests if this user can alter input enabler/input 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.
-
assignInputEnablerToInput
void assignInputEnablerToInput(Id inputEnablerId, Id inputId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingInputEnablerto anInput.- Parameters:
inputEnablerId- theIdof theInputEnablerinputId- theIdof theInput- Throws:
AlreadyExistsException-inputEnablerIdalready applied toinputIdNotFoundException-inputEnablerIdorinputIdnot foundNullArgumentException-inputEnablerIdorinputIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignInputEnablerFromInput
void unassignInputEnablerFromInput(Id inputEnablerId, Id inputId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anInputEnablerfrom anInput.- Parameters:
inputEnablerId- theIdof theInputEnablerinputId- theIdof theInput- Throws:
NotFoundException-inputEnablerIdorinputIdnot found or not mappedNullArgumentException-inputEnablerIdorinputIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceInputEnablers
boolean canSequenceInputEnablers()Tests if this user can orderInputs. 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:
falseifInputEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveInputEnablerAhead
void moveInputEnablerAhead(Id inputEnablerId, Id inputId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders input enablers for an input by moving the specified input enabler in front of a reference input enabler.- Parameters:
inputEnablerId- theIdof anInputEnablerinputId- theIdof anInputreferenceId- the reference inputId- Throws:
NotFoundException-inputEnablerId, deviceProcesorId, orreferenceIdnot found or,inputEnablerIdorreferenceIdnot related toinputIdNullArgumentException-inputEnablerId, inputId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveInputEnablerBehind
void moveInputEnablerBehind(Id inputEnablerId, Id inputId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders input enablers for an input by moving the specified input enabler behind a reference input enabler.- Parameters:
inputEnablerId- theIdof anInputEnablerinputId- theIdof anInputreferenceId- the reference inputId- Throws:
NotFoundException-inputEnablerId, deviceProcesorId, orreferenceIdnot found or,inputEnablerIdorreferenceIdnot related toinputIdNullArgumentException-inputEnablerId, inputId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderInputEnablers
void orderInputEnablers(Id[] inputEnablerIds, Id inputId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of input enablers for an input.- Parameters:
inputEnablerIds- theIdsfor a set ofInputEnablersinputId- theIdof anInput- Throws:
NotFoundException-inputIdnot found or, aninputEnablerIdnot related toinputIdNullArgumentException-inputEnablerIdsorinputIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-