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 |
|---|---|
AuthenticationInformation |
getAuthenticationInformation() |
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 |
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 userCopyright © 2016 SAPERION AG. All rights reserved.