public class User extends Object implements Serializable
Constructor and Description |
---|
User(AuthenticationInformation auth)
Creates a new user with only the authentication information set.
|
User(com.saperion.intf.SaUserInfo userInfo,
AuthenticationInformation auth)
Creates a new user from a userinfo object.
|
User(com.saperion.users.UserName userName,
int uid,
boolean isPresent,
AuthenticationInformation auth,
com.saperion.users.UserFlags userFlags,
int mandantId)
Literal constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActiveSession(com.saperion.connector.authentication.Session activeSession)
Add the given
Session to active session list |
List<com.saperion.connector.authentication.Session> |
getActiveSessions() |
AuthenticationInformation |
getAuthenticationInformation() |
com.saperion.connector.authentication.Session |
getCurrentSession() |
com.saperion.users.UserFlags |
getFlags() |
int |
getId() |
int |
getMandantId() |
com.saperion.users.UserName |
getName() |
static User |
invalidUser() |
boolean |
isPresent() |
boolean |
isTechnical() |
User |
mergePassword(String newPassword) |
User |
mergeShortName(String shortName) |
void |
setCurrentSession(com.saperion.connector.authentication.Session currentSession)
Set the current session
|
void |
setPresent(boolean isPresent)
Sets the present-property.
|
void |
setTechnical(boolean technical)
Sets the technical property.
|
void |
setWfAllowSubstAccess(boolean accessEnabled)
Sets whether the user's substitute has access to the users workflow-inbox.
|
String |
toString() |
public User(com.saperion.users.UserName userName, int uid, boolean isPresent, AuthenticationInformation auth, com.saperion.users.UserFlags userFlags, int mandantId)
userName
- The users nameuid
- The users unique idisPresent
- Whether the user is presentauth
- The information how the user logged in.mandantId
- MandantIduserFlags
- flags for the userpublic User(com.saperion.intf.SaUserInfo userInfo, AuthenticationInformation auth)
userInfo
- detailed user informationauth
- The information how the user logged inpublic User(AuthenticationInformation auth)
auth
- authentication informationpublic com.saperion.users.UserName getName()
public int getId()
public int getMandantId()
public boolean isPresent()
public void setPresent(boolean isPresent)
isPresent
- if the user is present or notpublic AuthenticationInformation getAuthenticationInformation()
public com.saperion.users.UserFlags getFlags()
public static User invalidUser()
public User mergeShortName(String shortName)
shortName
- the new short namepublic User mergePassword(String newPassword)
newPassword
- The new passwordpublic void setWfAllowSubstAccess(boolean accessEnabled)
accessEnabled
- if the substitute has accesspublic boolean isTechnical()
public void setTechnical(boolean technical)
technical
- set to true if this is a technical userpublic com.saperion.connector.authentication.Session getCurrentSession()
public void setCurrentSession(com.saperion.connector.authentication.Session currentSession)
currentSession
- public List<com.saperion.connector.authentication.Session> getActiveSessions()
Session
s of the userpublic void addActiveSession(com.saperion.connector.authentication.Session activeSession)
Session
to active session listactiveSession
- Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.