Interface UserAccountMapper

All Superinterfaces:
Object

public interface UserAccountMapper extends 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.
  • Method Details

    • getUserAccount

      String getUserAccount(String user, Current current) throws UserAccountNotFoundException
      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's user attribute. When this attribute is not defined, and the server's activation mode is session, the default value for user 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

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::UserAccountMapper"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      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 interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.