public class SchedulerUser extends User
| Modifier and Type | Field and Description |
|---|---|
protected static long |
serialVersionUID
For interoperability with possible future changes.
|
| Constructor and Description |
|---|
SchedulerUser(java.lang.String login,
java.lang.String encryptedPassword,
Context.UserType userType)
Creates a new Scheduler user.
|
SchedulerUser(java.lang.String login,
java.lang.String encryptedPassword,
Context.UserType userType,
java.util.Set<RoleInfo> permissions)
Creates a new Scheduler user with her permissions.
|
| Modifier and Type | Method and Description |
|---|---|
Context.UserType |
getAuthenticationMethod()
Returns the authentication method.
|
java.util.Set<RoleInfo> |
getPermissions()
Gets the user's permissions, which will determine the actions she could perform.
|
SchedulerSession |
getSession()
Returns the session associated to this user.
|
java.lang.String |
getSessionID()
Returns a unique string representing this user's session.
|
boolean |
isLocalAuth()
Checks if the user is local or not (VDP authentication).
|
void |
logout()
Clears the user session when the user logs out.
|
equals, getEncryptedPassword, getLogin, hashCode, setEncryptedPassword, toStringprotected static final long serialVersionUID
public SchedulerUser(java.lang.String login,
java.lang.String encryptedPassword,
Context.UserType userType)
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.public SchedulerUser(java.lang.String login,
java.lang.String encryptedPassword,
Context.UserType userType,
java.util.Set<RoleInfo> permissions)
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.public java.util.Set<RoleInfo> getPermissions()
public boolean isLocalAuth()
true if the user is authenticated against the Scheduler server;
false if the user is authenticated against the VDP server.public java.lang.String getSessionID()
public SchedulerSession getSession()
SchedulerSession associated to this user.public Context.UserType getAuthenticationMethod()
Context.UserType.UserType with the specific authentication method of this connected user.public void logout()
Copyright © 2024 Denodo Technologies. All rights reserved.