Package com.uc4.api.objects
Class UserAttributes
- java.lang.Object
-
- com.uc4.api.objects.UserAttributes
-
public class UserAttributes extends java.lang.ObjectThis class stores user attributes like first name, last name and email address.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserAttributes(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableLogonTimeSpan()Disables the logon time span limitation.CalendarConditiongetCalendar()Returns the authorization check according to the Calendar.UC4ObjectNamegetDefaultLogin()Returns the Login object for the database access of Variable objects with the source "SQL".java.lang.StringgetDistinguishedName()Returns the distinguished name of this user.java.lang.StringgetEmail1()Returns the first Email address of this user.java.lang.StringgetEmail2()Returns the second Email address of this user.java.lang.StringgetFirstName()java.lang.StringgetLastName()intgetMaxParallelSessions()Returns the maximum number of parallel login sessions a user may have.intgetMinActivityRefresh()Returns the User-specific minimum interval in seconds for refreshing activities (display refresh).UC4TimezoneNamegetTimezone()Returns the TimeZone to be used for this user following System logon.TimegetValidTimeFrom()IfhasLogonTimeSpan()istruethis method returns the lower limit of the allowed logon time.TimegetValidTimeTo()IfhasLogonTimeSpan()istruethis method returns the upper limit of the allowed logon time.booleanhasLogonTimeSpan()Returnstrueif a logon time span has been set for this User.booleanisActive()Returnstrueif the user is active.booleanisIgnoreSSO()Returnstrueif SSO is to be ignored.booleanisLDAPConnection()Returnstrueif LDAP is enabled for this user.booleanisLDAPConnectionSystem()Returnstrueif LDAP is enabled for the system.booleanisLocked()Returnstrueif the user is locked.booleanisPasswordChangeRequired()Returnstrueif a password change is required for this user.booleanisPasswordNeverExpires()Returnstrueif 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(java.lang.String distinguishedName)Set the distinguished name for the LDAP connection.voidsetEmail1(java.lang.String email1)Sets the first Email address of this user.voidsetEmail2(java.lang.String email2)Sets the second Email address of this user.voidsetFirstName(java.lang.String firstName)Sets the first name of this user.voidsetIgnoreSSO(boolean ignoreSSO)Changes the ignore SSO setting.voidsetLastName(java.lang.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(java.lang.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, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
-
setPassword
public void setPassword(java.lang.String pass)
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
public java.lang.String getFirstName()
- Returns:
- First name of the user
-
setFirstName
public void setFirstName(java.lang.String firstName)
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
public java.lang.String getLastName()
- Returns:
- Last name of the user
-
setLastName
public void setLastName(java.lang.String lastName)
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
public java.lang.String getEmail1()
Returns the first Email address of this user.- Returns:
- User's Email address
-
setEmail1
public void setEmail1(java.lang.String email1)
Sets the first Email address of this user.- Parameters:
email1- User's Email address, max. 50 characters
-
getEmail2
public java.lang.String getEmail2()
Returns the second Email address of this user.- Returns:
- User's Email address
-
setEmail2
public void setEmail2(java.lang.String email2)
Sets the second Email address of this user.- Parameters:
email2- User's Email address, max. 50 characters
-
getDefaultLogin
public UC4ObjectName 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
public void setDefaultLogin(UC4ObjectName defaultLogin)
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
public java.lang.String getDistinguishedName()
Returns the distinguished name of this user.- Returns:
- Distinguished name
-
setDistinguishedName
public void setDistinguishedName(java.lang.String distinguishedName)
Set the distinguished name for the LDAP connection.- Parameters:
distinguishedName- Distinguished name
-
getTimezone
public UC4TimezoneName 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
public void setTimezone(UC4TimezoneName timezone)
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
public Time getValidTimeFrom()
IfhasLogonTimeSpan()istruethis method returns the lower limit of the allowed logon time.- Returns:
- Lower limit of the logon time
-
getValidTimeTo
public 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
public void setLogonTimeSpan(Time from, Time to)
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
public void setCalendar(CalendarCondition cond)
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
public CalendarCondition 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
-
-