Package com.uc4.api.objects
Class UserAttributes
java.lang.Object
com.uc4.api.objects.UserAttributes
This class stores user attributes like first name, last name and email address.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Disables the logon time span limitation.Returns the authorization check according to the Calendar.Returns the Login object for the database access of Variable objects with the source "SQL".Returns the distinguished name of this user.Returns the first Email address of this user.Returns the second Email address of this user.int
Returns the maximum number of parallel login sessions a user may have.int
Returns the User-specific minimum interval in seconds for refreshing activities (display refresh).Returns the TimeZone to be used for this user following System logon.IfhasLogonTimeSpan()
istrue
this method returns the lower limit of the allowed logon time.IfhasLogonTimeSpan()
istrue
this method returns the upper limit of the allowed logon time.boolean
Returnstrue
if a logon time span has been set for this User.boolean
isActive()
Returnstrue
if the user is active.boolean
Returnstrue
if SSO is to be ignored.boolean
Returnstrue
if LDAP is enabled for this user.boolean
Returnstrue
if LDAP is enabled for the system.boolean
isLocked()
Returnstrue
if the user is locked.boolean
Returnstrue
if a password change is required for this user.boolean
Returnstrue
if the password never expires.void
setActive
(boolean active) Changes the status of this User.void
setCalendar
(CalendarCondition cond) Sets the authorization check according to the Calendar.void
setDefaultLogin
(UC4ObjectName defaultLogin) Sets the Login object for the database access of Variable objects with the source "SQL".void
setDistinguishedName
(String distinguishedName) Set the distinguished name for the LDAP connection.void
Sets the first Email address of this user.void
Sets the second Email address of this user.void
setFirstName
(String firstName) Sets the first name of this user.void
setIgnoreSSO
(boolean ignoreSSO) Changes the ignore SSO setting.void
setLastName
(String lastName) Sets the last name of the user.void
setLDAPConnection
(boolean ldapConnection) Enables or disables the LDAP Connection.void
setLocked
(boolean locked) This method can be used to lock or unlock a User.void
setLogonTimeSpan
(Time from, Time to) Sets the time span in which a logon is allowed.void
setMaxParallelSessions
(int multiLogon) Sets the maximum number of parallel login sessions a user may have.void
setMinActivityRefresh
(int refresh) Sets the User-specific minimum interval in seconds for refreshing activities (display refresh).void
setPassword
(String pass) Sets the password of this user.void
setPasswordChangeRequired
(boolean passwordMustChange) Changes the setting for a password change.void
setPasswordNeverExpires
(boolean passwordNeverExpires) Changes the password expiration setting.void
setTimezone
(UC4TimezoneName timezone) Sets the TimeZone to be used for this user following System logon.protected void
store
(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo)
-
Constructor Details
-
UserAttributes
protected UserAttributes(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
protected void store(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) -
setPassword
Sets the password of this user. If users are in various international locations, special national language characters -- umlauts, accents, special letters, etc. -- should be avoided. Not all keyboards in all countries support such characters.- Parameters:
pass
- Password
-
isActive
public boolean isActive()Returnstrue
if the user is active. Active means that the user may log on to the Automation Engine. Inactive users must not log on to the system; logically, they are no longer part of the system.- Returns:
- Returns
true
if the user is active
-
setActive
public void setActive(boolean active) Changes the status of this User.- Parameters:
active
-true
if the user should be active,false
if the user should not be allowed to log on to the system.
-
isLocked
public boolean isLocked()Returnstrue
if the user is locked. The repeated indication of a wrong password has the effect that a user is locked.- Returns:
- Returns
true
if the user is locked
-
setLocked
public void setLocked(boolean locked) This method can be used to lock or unlock a User.- Parameters:
locked
-true
if the user should be locked,false
to unlock the user
-
getFirstName
- Returns:
- First name of the user
-
setFirstName
Sets the first name of this user. The first and last names of the user are displayed in various areas of the UserInterface. For example, in the System Overview.- Parameters:
firstName
- User's first name
-
getLastName
- Returns:
- Last name of the user
-
setLastName
Sets the last name of the user. The first and last names of the user are displayed in various areas of the UserInterface. For example, in the System Overview.- Parameters:
lastName
- User's last name
-
getEmail1
Returns the first Email address of this user.- Returns:
- User's Email address
-
setEmail1
Sets the first Email address of this user.- Parameters:
email1
- User's Email address, max. 50 characters
-
getEmail2
Returns the second Email address of this user.- Returns:
- User's Email address
-
setEmail2
Sets the second Email address of this user.- Parameters:
email2
- User's Email address, max. 50 characters
-
getDefaultLogin
Returns the Login object for the database access of Variable objects with the source "SQL". The specified Login will only be used if the User has logged on and if the setting "Apply User's Login" has been specified.- Returns:
- Name of the LOGIN Object
-
setDefaultLogin
Sets the Login object for the database access of Variable objects with the source "SQL". The specified Login will only be used if the User has logged on and if the setting "Apply User's Login" has been specified.- Parameters:
defaultLogin
- Name of the LOGIN Object
-
isPasswordNeverExpires
public boolean isPasswordNeverExpires()Returnstrue
if the password never expires. In this case the user never has to change the password. The password "pass" is an exception and must always be changed immediately at the next logon.- Returns:
true
if the password never expires,false
otherwise
-
setPasswordNeverExpires
public void setPasswordNeverExpires(boolean passwordNeverExpires) Changes the password expiration setting. If the parameterpasswordNeverExpires
istrue
the user never has to change the password. The password "pass" is an exception and must always be changed immediately at the next logon.- Parameters:
passwordNeverExpires
-true
if the password should never expires,false
otherwise
-
isIgnoreSSO
public boolean isIgnoreSSO()Returnstrue
if SSO is to be ignored.- Returns:
true
if SSO is to be ignored,false
otherwise
-
setIgnoreSSO
public void setIgnoreSSO(boolean ignoreSSO) Changes the ignore SSO setting.- Parameters:
ignoreSSO
-true
if SSO is to be ignored,false
otherwise
-
isPasswordChangeRequired
public boolean isPasswordChangeRequired()Returnstrue
if a password change is required for this user.- Returns:
true
if the User has to change the password at next login
-
setPasswordChangeRequired
public void setPasswordChangeRequired(boolean passwordMustChange) Changes the setting for a password change.- Parameters:
passwordMustChange
-true
if the User has to change the password at next login
-
isLDAPConnection
public boolean isLDAPConnection()Returnstrue
if LDAP is enabled for this user.- Returns:
- LDAP Connection
-
setLDAPConnection
public void setLDAPConnection(boolean ldapConnection) Enables or disables the LDAP Connection.- Parameters:
ldapConnection
-true
if LDAP should be enabled for this user.
-
isLDAPConnectionSystem
public boolean isLDAPConnectionSystem()Returnstrue
if LDAP is enabled for the system.- Returns:
- LDAP Connection
-
getDistinguishedName
Returns the distinguished name of this user.- Returns:
- Distinguished name
-
setDistinguishedName
Set the distinguished name for the LDAP connection.- Parameters:
distinguishedName
- Distinguished name
-
getTimezone
Returns the TimeZone to be used for this user following System logon. If no TimeZone has been chosen, the client's pre-set TimeZone is used.- Returns:
- Name of the timezone object
-
setTimezone
Sets the TimeZone to be used for this user following System logon. If no TimeZone has been chosen, the client's pre-set TimeZone is used.- Parameters:
timezone
- Name of the timezone object
-
getValidTimeFrom
IfhasLogonTimeSpan()
istrue
this method returns the lower limit of the allowed logon time.- Returns:
- Lower limit of the logon time
-
getValidTimeTo
IfhasLogonTimeSpan()
istrue
this method returns the upper limit of the allowed logon time.- Returns:
- Upper limit of the logon time
-
hasLogonTimeSpan
public boolean hasLogonTimeSpan()Returnstrue
if a logon time span has been set for this User. Logon is denied when attempted outside of the defined time frame.- Returns:
true
if a logon time span is set
-
setLogonTimeSpan
Sets the time span in which a logon is allowed.- Parameters:
from
- Lower limit of the logon timeto
- Upper limit of the logon time
-
disableLogonTimeSpan
public void disableLogonTimeSpan()Disables the logon time span limitation. -
setCalendar
Sets the authorization check according to the Calendar. If, during logon, none of the listed Calendars are valid with their Calendar keys, access will be denied- Parameters:
cond
- Name and Keyword of a UC4 calendar
-
getCalendar
Returns the authorization check according to the Calendar. If, during logon, none of the listed Calendars are valid with their Calendar keys, access will be denied- Returns:
- Name and Keyword of a UC4 calendar, never
null
-
getMaxParallelSessions
public int getMaxParallelSessions()Returns the maximum number of parallel login sessions a user may have. A value of "0" enables unlimited parallel access frequency.- Returns:
- Maximum number of parallel login sessions
-
setMaxParallelSessions
public void setMaxParallelSessions(int multiLogon) Sets the maximum number of parallel login sessions a user may have. A value of "0" enables unlimited parallel access frequency.- Parameters:
multiLogon
- Maximum number of parallel login sessions, values from 0 to 9999 are allowed
-
getMinActivityRefresh
public int getMinActivityRefresh()Returns the User-specific minimum interval in seconds for refreshing activities (display refresh). The value "0" signals that no minimum value has been specified.- Returns:
- Interval in seconds
-
setMinActivityRefresh
public void setMinActivityRefresh(int refresh) Sets the User-specific minimum interval in seconds for refreshing activities (display refresh). The value "0" signals that no minimum value has been specified.- Parameters:
refresh
- Interval in seconds, values from 0 to 999 are allowed
-