Class SchedulerUser

java.lang.Object
com.denodo.commons.User
com.denodo.scheduler.client.security.SchedulerUser
All Implemented Interfaces:
Serializable

public class SchedulerUser extends User
User that interacts with Scheduler server
Since:
5.0
See Also:
  • Constructor Details

    • SchedulerUser

      public SchedulerUser(String login, String encryptedPassword, Context.UserType userType)
      Creates a new Scheduler user.
      Parameters:
      login - the ID for authenticating the user against the facade.
      encryptedPassword - the password of the user for authenticating the user against the facade.
      userType - the UserType of the authenticated user against the Scheduler server.
    • SchedulerUser

      public SchedulerUser(String login, String encryptedPassword, Context.UserType userType, Set<RoleInfo> permissions)
      Creates a new Scheduler user with her permissions.
      Parameters:
      login - the ID for authenticating the user against the facade.
      encryptedPassword - the password of the user for authenticating the user against the facade.
      userType - the UserType of the authenticated user against the Scheduler server.
      permissions - the user's permissions.
  • Method Details

    • getPermissions

      public Set<RoleInfo> getPermissions()
      Gets the user's permissions, which will determine the actions she could perform.
      Returns:
      the user's permissions.
    • isLocalAuth

      public boolean isLocalAuth()
      Checks if the user is local or not (VDP authentication).
      Returns:
      true if the user is authenticated against the Scheduler server; false if the user is authenticated against the VDP server.
    • getSessionID

      public String getSessionID()
      Returns a unique string representing this user's session.
      Returns:
      the session identifier for that user
    • getSession

      public SchedulerSession getSession()
      Returns the session associated to this user.
      Returns:
      the SchedulerSession associated to this user.
    • getAuthenticationMethod

      public Context.UserType getAuthenticationMethod()
      Returns the authentication method. It is an instance of Context.UserType.
      Returns:
      the UserType with the specific authentication method of this connected user.
    • logout

      public void logout()
      Clears the user session when the user logs out.