- All Superinterfaces:
Object
Maps user strings in server descriptors to actual user account names. You can configure the user account mapper
of an IceGrid node with the property
IceGrid.Node.UserAccountMapper
.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.getUserAccount
(String user, Current current) Gets the name of the user account for the given user.static String
Gets the type ID of the associated Slice interface.
-
Method Details
-
getUserAccount
Gets the name of the user account for the given user. This is used by IceGrid nodes to figure out the user account to use to run servers.- Parameters:
user
- The value of the server descriptor'suser
attribute. When this attribute is not defined, and the server's activation mode issession
, the default value foruser
is the session identifier.current
- The Current object of the incoming request.- Returns:
- The user account name.
- Throws:
UserAccountNotFoundException
- Thrown when no user account is found for the given user.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::UserAccountMapper"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-