Class SchedulerUser
java.lang.Object
com.denodo.commons.User
com.denodo.scheduler.client.security.SchedulerUser
- All Implemented Interfaces:
Serializable
User that interacts with Scheduler server
- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSchedulerUser(String login, String encryptedPassword, Context.UserType userType) Creates a new Scheduler user.SchedulerUser(String login, String encryptedPassword, Context.UserType userType, Set<RoleInfo> permissions) Creates a new Scheduler user with her permissions. -
Method Summary
Modifier and TypeMethodDescriptionReturns the authentication method.Gets the user's permissions, which will determine the actions she could perform.Returns the session associated to this user.Returns a unique string representing this user's session.booleanChecks if the user is local or not (VDP authentication).voidlogout()Clears the user session when the user logs out.Methods inherited from class com.denodo.commons.User
equals, getEncryptedPassword, getLogin, hashCode, setEncryptedPassword, toString
-
Constructor Details
-
SchedulerUser
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- theUserTypeof 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- theUserTypeof the authenticated user against the Scheduler server.permissions- the user's permissions.
-
-
Method Details
-
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:
trueif the user is authenticated against the Scheduler server;falseif the user is authenticated against the VDP server.
-
getSessionID
Returns a unique string representing this user's session.- Returns:
- the session identifier for that user
-
getSession
Returns the session associated to this user.- Returns:
- the
SchedulerSessionassociated to this user.
-
getAuthenticationMethod
Returns the authentication method. It is an instance ofContext.UserType.- Returns:
- the
UserTypewith the specific authentication method of this connected user.
-
logout
public void logout()Clears the user session when the user logs out.
-