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(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.
|
Modifier and Type | Method and Description |
---|---|
Context.UserType |
getAuthenticationMethod()
Returns the authentication method.
|
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.
|
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, toString
protected static final long serialVersionUID
public SchedulerUser(String login, 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(String login, String encryptedPassword, Context.UserType userType, 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 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 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 © 2025 Denodo Technologies. All rights reserved.