Interface InputEnablerSystemAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign InputEnabler to
System mappings. An InputEnabler may appear in multiple
System objects and removing the last reference to an
InputEnabler is the equivalent of deleting it. Each System may
have its own authorizations governing who is allowed to operate on it.
Adding a reference of an InputEnabler to another
System is not a copy operation (eg: does not change its Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignInputEnablerToSystem(Id inputEnablerId, Id systemId) Adds an existingInputEnablerto aSystem.booleanTests if this user can alter input enabler/system mappings.booleancanAssignInputEnablersToSystem(Id systemId) Tests if this user can alter input enabler/system mappings.getAssignableSystemIds(Id systemId) Gets a list of systems including and under the given system node in which any input enabler can be assigned.getAssignableSystemIdsForInputEnabler(Id systemId, Id inputEnablerId) Gets a list of systems including and under the given system node in which a specific input enabler can be assigned.voidreassignInputEnablerToSystem(Id inputEnablerId, Id fromSystemId, Id toSystemId) Moves anInputEnablerfrom oneSystemto another.voidunassignInputEnablerFromSystem(Id inputEnablerId, Id systemId) Removes anInputEnablerfrom aSystem.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
-
canAssignInputEnablers
boolean canAssignInputEnablers()Tests if this user can alter input enabler/system 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.
-
canAssignInputEnablersToSystem
Tests if this user can alter input enabler/system 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.- Parameters:
systemId- theIdof theSystem- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-systemIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableSystemIds
Gets a list of systems including and under the given system node in which any input enabler can be assigned.- Parameters:
systemId- theIdof theSyestem- Returns:
- list of assignable system
Ids - Throws:
NullArgumentException-systemIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableSystemIdsForInputEnabler
IdList getAssignableSystemIdsForInputEnabler(Id systemId, Id inputEnablerId) throws OperationFailedException Gets a list of systems including and under the given system node in which a specific input enabler can be assigned.- Parameters:
systemId- theIdof theSysteminputEnablerId- theIdof theInputEnabler- Returns:
- list of assignable system
Ids - Throws:
NullArgumentException-systemIdorinputEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignInputEnablerToSystem
void assignInputEnablerToSystem(Id inputEnablerId, Id systemId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingInputEnablerto aSystem.- Parameters:
inputEnablerId- theIdof theInputEnablersystemId- theIdof theSystem- Throws:
AlreadyExistsException-inputEnablerIdalready assigned tosystemIdNotFoundException-inputEnablerIdorsystemIdnot foundNullArgumentException-inputEnablerIdorsystemIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignInputEnablerFromSystem
void unassignInputEnablerFromSystem(Id inputEnablerId, Id systemId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anInputEnablerfrom aSystem.- Parameters:
inputEnablerId- theIdof theInputEnablersystemId- theIdof theSystem- Throws:
NotFoundException-inputEnablerIdorsystemIdnot found orinputEnablerIdnot assigned tosystemIdNullArgumentException-inputEnablerIdorsystemIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignInputEnablerToSystem
void reassignInputEnablerToSystem(Id inputEnablerId, Id fromSystemId, Id toSystemId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves anInputEnablerfrom oneSystemto another. Mappings to otherSystemsare unaffected.- Parameters:
inputEnablerId- theIdof theInputEnablerfromSystemId- theIdof the currentSystemtoSystemId- theIdof the destinationSystem- Throws:
AlreadyExistsException-inputEnablerIdalready assigned totoSystemIdNotFoundException-inputEnablerId, fromSystemId, ortoSystemIdnot found orinputEnablerIdnot mapped tofromSystemIdNullArgumentException-inputEnablerId, fromSystemId, ortoSystemIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-