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 TypeMethodDescriptionvoidDisables 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.intReturns the maximum number of parallel login sessions a user may have.intReturns 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()istruethis method returns the lower limit of the allowed logon time.IfhasLogonTimeSpan()istruethis method returns the upper limit of the allowed logon time.booleanReturnstrueif a logon time span has been set for this User.booleanisActive()Returnstrueif the user is active.booleanReturnstrueif SSO is to be ignored.booleanReturnstrueif LDAP is enabled for this user.booleanReturnstrueif LDAP is enabled for the system.booleanisLocked()Returnstrueif the user is locked.booleanReturnstrueif a password change is required for this user.booleanReturnstrueif the password never expires.voidsetActive(boolean active) Changes the status of this User.voidsetCalendar(CalendarCondition cond) Sets the authorization check according to the Calendar.voidsetDefaultLogin(UC4ObjectName defaultLogin) Sets the Login object for the database access of Variable objects with the source "SQL".voidsetDistinguishedName(String distinguishedName) Set the distinguished name for the LDAP connection.voidSets the first Email address of this user.voidSets the second Email address of this user.voidsetFirstName(String firstName) Sets the first name of this user.voidsetIgnoreSSO(boolean ignoreSSO) Changes the ignore SSO setting.voidsetLastName(String lastName) Sets the last name of the user.voidsetLDAPConnection(boolean ldapConnection) Enables or disables the LDAP Connection.voidsetLocked(boolean locked) This method can be used to lock or unlock a User.voidsetLogonTimeSpan(Time from, Time to) Sets the time span in which a logon is allowed.voidsetMaxParallelSessions(int multiLogon) Sets the maximum number of parallel login sessions a user may have.voidsetMinActivityRefresh(int refresh) Sets the User-specific minimum interval in seconds for refreshing activities (display refresh).voidsetPassword(String pass) Sets the password of this user.voidsetPasswordChangeRequired(boolean passwordMustChange) Changes the setting for a password change.voidsetPasswordNeverExpires(boolean passwordNeverExpires) Changes the password expiration setting.voidsetTimezone(UC4TimezoneName timezone) Sets the TimeZone to be used for this user following System logon.protected voidstore(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()Returnstrueif 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
trueif the user is active
-
setActive
public void setActive(boolean active) Changes the status of this User.- Parameters:
active-trueif the user should be active,falseif the user should not be allowed to log on to the system.
-
isLocked
public boolean isLocked()Returnstrueif the user is locked. The repeated indication of a wrong password has the effect that a user is locked.- Returns:
- Returns
trueif the user is locked
-
setLocked
public void setLocked(boolean locked) This method can be used to lock or unlock a User.- Parameters:
locked-trueif the user should be locked,falseto 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()Returnstrueif 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:
trueif the password never expires,falseotherwise
-
setPasswordNeverExpires
public void setPasswordNeverExpires(boolean passwordNeverExpires) Changes the password expiration setting. If the parameterpasswordNeverExpiresistruethe 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-trueif the password should never expires,falseotherwise
-
isIgnoreSSO
public boolean isIgnoreSSO()Returnstrueif SSO is to be ignored.- Returns:
trueif SSO is to be ignored,falseotherwise
-
setIgnoreSSO
public void setIgnoreSSO(boolean ignoreSSO) Changes the ignore SSO setting.- Parameters:
ignoreSSO-trueif SSO is to be ignored,falseotherwise
-
isPasswordChangeRequired
public boolean isPasswordChangeRequired()Returnstrueif a password change is required for this user.- Returns:
trueif 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-trueif the User has to change the password at next login
-
isLDAPConnection
public boolean isLDAPConnection()Returnstrueif LDAP is enabled for this user.- Returns:
- LDAP Connection
-
setLDAPConnection
public void setLDAPConnection(boolean ldapConnection) Enables or disables the LDAP Connection.- Parameters:
ldapConnection-trueif LDAP should be enabled for this user.
-
isLDAPConnectionSystem
public boolean isLDAPConnectionSystem()Returnstrueif 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()istruethis method returns the lower limit of the allowed logon time.- Returns:
- Lower limit of the logon time
-
getValidTimeTo
IfhasLogonTimeSpan()istruethis method returns the upper limit of the allowed logon time.- Returns:
- Upper limit of the logon time
-
hasLogonTimeSpan
public boolean hasLogonTimeSpan()Returnstrueif a logon time span has been set for this User. Logon is denied when attempted outside of the defined time frame.- Returns:
trueif 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
-