Class GroovyUser
java.lang.Object
de.uplanet.lucy.server.usermanager.groovy.GroovyUser
- All Implemented Interfaces:
IUser
,ILogonUser
A user wrapper class for Groovy scripting.
Note: Do not store instances of this class for later use by another thread or transaction.
- Since:
- Intrexx 6.0.
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.usermanager.IUser
GENDER_DIVERSE, GENDER_FEMALE, GENDER_MALE, GENDER_UNKNOWN
-
Method Summary
Modifier and TypeMethodDescriptionint
getBoss()
Deprecated.int
Note: The use of integer IDs is discouraged in scripts.boolean
Deprecated.getCity()
int
This property is read-only.int
Note: The use of integer IDs is discouraged in scripts.Map
<String, IValueHolder<?>> Note: do not use this property in scripts.Get the default language identifier.Get the default layout.Get the default layout mobile.Get the default locale identifier.A collection of sets this user is direct member of.getExternalLogin
(int p_iIndex) Note: do not use this property in scripts.getExternalPassword
(int p_iIndex) Note: do not use this property in scripts.Get the first name of the user.Get the full name of the user.int
Get the gendergetGuid()
Get the GUID of the user.int
getId()
Note: The use of integer IDs is discouraged in scripts.Same asgetUserImageContentType()
.Get the last name of the user.int
Check if the user is locked.Get the login domain of the user.Get the login name of the user.Get the middle name of the user.boolean
Deprecated.getName()
getPoBox()
int
Deprecated.SeegetProxyPersonId()
.int
Note: The use of integer IDs is discouraged in scripts.Get the user's public ID.boolean
Deprecated.Get the qualified login name of the user.boolean
Note: do not use this property in scripts.getState()
Get the time zone of the user.getTitle()
Get the title of the user.IValueHolder
<?> getValueHolder
(String p_strAttributGuid) Note: do not use this property in scripts.boolean
hasBoss()
boolean
boolean
boolean
This property is read-only.boolean
This property is read-only.boolean
boolean
boolean
isFemale()
boolean
Check if the user account can be locked.boolean
isMale()
boolean
boolean
boolean
void
propertyMissing
(String p_strName, Object p_value) For internal use only.void
save()
Save the user object to the database.void
setBirthday
(Date p_dtValue) void
setBossId
(int p_iValue) Note: The use of integer IDs is discouraged in scripts.void
void
setContainerGuid
(String p_strValue) void
setCountry
(String p_strValue) void
setDefaultLanguage
(String p_strValue) void
setDefaultLayout
(String p_strValue) void
setDefaultLocale
(String p_strValue) void
setDescription
(String p_strValue) void
setDisabled
(boolean p_bValue) void
setDiverse
(boolean p_bValue) void
setEmailBiz
(String p_strValue) void
setEmailHome
(String p_strValue) void
setEmployeeNo
(String p_strValue) void
setEnterDate
(Date p_dtValue) void
setExternalLogin1
(String p_strValue) void
setExternalLogin2
(String p_strValue) void
setExternalLogin3
(String p_strValue) void
setExternalPassword1
(String p_strValue) void
setExternalPassword2
(String p_strValue) void
setExternalPassword3
(String p_strValue) void
setFemale
(boolean p_bValue) void
setFirstName
(String p_strValue) void
setFullName
(String p_strValue) void
setGender
(int p_iValue) void
setLastName
(String p_strValue) void
setLockable
(boolean p_bLockable) void
setLocked
(int p_iValue) void
setLoginDomain
(String p_strValue) void
setLoginName
(String p_strValue) void
setMale
(boolean p_bValue) void
setMiddleName
(String p_strValue) void
setModifiablePassword
(boolean p_bValue) void
setMustChangePassword
(boolean p_bValue) void
void
setPasswordChangedDate
(Date p_dt) void
setPasswordExpires
(boolean p_bValue) void
setPhoneBiz
(String p_strValue) void
setPhoneFax
(String p_strValue) void
setPhoneHome
(String p_strValue) void
setPhoneMobileBiz
(String p_strValue) void
setPhoneMobileHome
(String p_strValue) void
setPhonePager
(String p_strValue) void
void
setPostalCode
(String p_strValue) void
setProxyPersonId
(int p_iValue) Note: The use of integer IDs is discouraged in scripts.void
setQualifiedLoginName
(String p_strValue) void
void
void
setTimeZone
(TimeZone p_tz) void
setTimeZoneId
(String p_strValue) void
void
setUserImageContentType
(String p_strValue) void
setUserImageFileName
(String p_strValue) void
setUserImageLastModified
(Date p_dt) void
setUserImageMetaInfo
(String p_strValue) void
setUserImageUrl
(String p_strValue) toString()
Returns a string representation of the user object.
-
Method Details
-
propertyMissing
For internal use only. -
get
-
getAt
-
getGuid
Description copied from interface:ILogonUser
Get the GUID of the user.- Specified by:
getGuid
in interfaceILogonUser
- Returns:
- The user's GUID.
-
getPublicId
Description copied from interface:IUser
Get the user's public ID.The public user ID consists of 40 upper-case hexadecimal digits.
- Specified by:
getPublicId
in interfaceIUser
- Returns:
- The public user ID.
-
getId
public int getId()Note: The use of integer IDs is discouraged in scripts. Objects should normally be identified by their GUIDs. -
getName
-
setName
-
getClassId
public int getClassId()This property is read-only.- Specified by:
getClassId
in interfaceIUser
- Returns:
- The class ID of this object.
-
getContainerId
public int getContainerId()Note: The use of integer IDs is discouraged in scripts. Objects should normally be identified by their GUIDs.- Specified by:
getContainerId
in interfaceIUser
-
getContainerGuid
- Specified by:
getContainerGuid
in interfaceIUser
-
setContainerGuid
-
getContainer
-
getDirectMemberSets
A collection of sets this user is direct member of.- Returns:
- The collection of sets this user is direct member of.
-
getBoss
Deprecated.SeegetBossId()
.Do not use this method in scripts. -
getBossId
public int getBossId()Note: The use of integer IDs is discouraged in scripts. Objects should normally be identified by their GUIDs. -
setBossId
public void setBossId(int p_iValue) Note: The use of integer IDs is discouraged in scripts. Objects should normally be identified by their GUIDs. -
hasBoss
public boolean hasBoss() -
getBossUser
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
-
getProxyPerson
Deprecated.SeegetProxyPersonId()
.Do not use this method in scripts.- Specified by:
getProxyPerson
in interfaceIUser
-
getProxyPersonId
public int getProxyPersonId()Note: The use of integer IDs is discouraged in scripts. Objects should normally be identified by their GUIDs.- Specified by:
getProxyPersonId
in interfaceIUser
-
setProxyPersonId
public void setProxyPersonId(int p_iValue) Note: The use of integer IDs is discouraged in scripts. Objects should normally be identified by their GUIDs. -
hasProxyPerson
public boolean hasProxyPerson()- Specified by:
hasProxyPerson
in interfaceIUser
-
getProxyPersonUser
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
-
getLoginDomain
Description copied from interface:ILogonUser
Get the login domain of the user.- Specified by:
getLoginDomain
in interfaceILogonUser
- Returns:
- The user's login domain.
-
setLoginDomain
-
getLoginName
Description copied from interface:ILogonUser
Get the login name of the user.- Specified by:
getLoginName
in interfaceILogonUser
- Returns:
- The user's login name.
-
setLoginName
-
isDeleted
public boolean isDeleted()This property is read-only. -
isDeletable
public boolean isDeletable()This property is read-only.- Specified by:
isDeletable
in interfaceIUser
- Returns:
true
if this user is deletable, orfalse
otherwise.
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabled
in interfaceIUser
-
setDisabled
public void setDisabled(boolean p_bValue) -
isLockable
public boolean isLockable()Description copied from interface:IUser
Check if the user account can be locked.- Specified by:
isLockable
in interfaceIUser
- Returns:
true
if the user account can be locked, orfalse
otherwise.
-
setLockable
public void setLockable(boolean p_bLockable) -
getLocked
public int getLocked()Description copied from interface:IUser
Check if the user is locked. -
setLocked
public void setLocked(int p_iValue) -
isModifiablePassword
public boolean isModifiablePassword()- Specified by:
isModifiablePassword
in interfaceIUser
-
setModifiablePassword
public void setModifiablePassword(boolean p_bValue) -
isMustChangePassword
public boolean isMustChangePassword()- Specified by:
isMustChangePassword
in interfaceIUser
-
setMustChangePassword
public void setMustChangePassword(boolean p_bValue) -
isPasswordExpires
public boolean isPasswordExpires()- Specified by:
isPasswordExpires
in interfaceIUser
-
setPasswordExpires
public void setPasswordExpires(boolean p_bValue) -
getPasswordChangedDate
- Specified by:
getPasswordChangedDate
in interfaceIUser
-
setPasswordChangedDate
-
getCannotChange
Deprecated.Note: do not use this property in scripts.- Specified by:
getCannotChange
in interfaceIUser
-
getPwdExpires
Deprecated.Note: do not use this property in scripts.- Specified by:
getPwdExpires
in interfaceIUser
-
getMustChange
Deprecated.Note: do not use this property in scripts.- Specified by:
getMustChange
in interfaceIUser
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymous
in interfaceIUser
-
getEmailBiz
- Specified by:
getEmailBiz
in interfaceIUser
-
setEmailBiz
-
getEmailHome
- Specified by:
getEmailHome
in interfaceIUser
-
setEmailHome
-
getPhoneBiz
- Specified by:
getPhoneBiz
in interfaceIUser
-
setPhoneBiz
-
getPhoneFax
- Specified by:
getPhoneFax
in interfaceIUser
-
setPhoneFax
-
getPhoneHome
- Specified by:
getPhoneHome
in interfaceIUser
-
setPhoneHome
-
getPhoneMobileBiz
- Specified by:
getPhoneMobileBiz
in interfaceIUser
-
setPhoneMobileBiz
-
getPhoneMobileHome
- Specified by:
getPhoneMobileHome
in interfaceIUser
-
setPhoneMobileHome
-
getPhonePager
- Specified by:
getPhonePager
in interfaceIUser
-
setPhonePager
-
getBirthday
- Specified by:
getBirthday
in interfaceIUser
-
setBirthday
-
getEnterDate
- Specified by:
getEnterDate
in interfaceIUser
-
setEnterDate
-
getGender
public int getGender()Description copied from interface:IUser
Get the gender -
setGender
public void setGender(int p_iValue) -
isMale
public boolean isMale() -
setMale
public void setMale(boolean p_bValue) -
isFemale
public boolean isFemale() -
setFemale
public void setFemale(boolean p_bValue) -
isDiverse
public boolean isDiverse() -
setDiverse
public void setDiverse(boolean p_bValue) - Parameters:
p_bValue
- Iffalse
, GENDER_UNKNOWN will be set.
-
getMiddleName
Description copied from interface:ILogonUser
Get the middle name of the user.- Specified by:
getMiddleName
in interfaceILogonUser
- Returns:
- The user's middle name.
-
setMiddleName
-
getCity
-
setCity
-
getCountry
- Specified by:
getCountry
in interfaceIUser
-
setCountry
-
getEmployeeNo
- Specified by:
getEmployeeNo
in interfaceIUser
-
setEmployeeNo
-
getFirstName
Description copied from interface:ILogonUser
Get the first name of the user.- Specified by:
getFirstName
in interfaceILogonUser
- Returns:
- The user's first name.
-
setFirstName
-
getLastName
Description copied from interface:ILogonUser
Get the last name of the user.- Specified by:
getLastName
in interfaceILogonUser
- Returns:
- The user's last name.
-
setLastName
-
getStreet
-
setStreet
-
getTitle
Description copied from interface:ILogonUser
Get the title of the user.- Specified by:
getTitle
in interfaceILogonUser
- Returns:
- The user's title.
-
setTitle
-
getPostalCode
- Specified by:
getPostalCode
in interfaceIUser
-
setPostalCode
-
getTimeZone
- Specified by:
getTimeZone
in interfaceIUser
-
setTimeZone
-
getTimeZoneId
Description copied from interface:ILogonUser
Get the time zone of the user.- Specified by:
getTimeZoneId
in interfaceILogonUser
- Returns:
- The user's time zone.
-
setTimeZoneId
-
getQualifiedLoginName
Description copied from interface:ILogonUser
Get the qualified login name of the user.- Specified by:
getQualifiedLoginName
in interfaceILogonUser
- Returns:
- The user's qualified login name.
-
setQualifiedLoginName
-
getFullName
Description copied from interface:ILogonUser
Get the full name of the user.- Specified by:
getFullName
in interfaceILogonUser
- Returns:
- The user's full name.
-
setFullName
-
getExternalLogin1
- Specified by:
getExternalLogin1
in interfaceIUser
-
setExternalLogin1
-
getExternalLogin2
- Specified by:
getExternalLogin2
in interfaceIUser
-
setExternalLogin2
-
getExternalLogin3
- Specified by:
getExternalLogin3
in interfaceIUser
-
setExternalLogin3
-
getExternalPassword1
- Specified by:
getExternalPassword1
in interfaceIUser
-
setExternalPassword1
-
getExternalPassword2
- Specified by:
getExternalPassword2
in interfaceIUser
-
setExternalPassword2
-
getExternalPassword3
- Specified by:
getExternalPassword3
in interfaceIUser
-
setExternalPassword3
-
getDefaultLanguage
Description copied from interface:IUser
Get the default language identifier.- Specified by:
getDefaultLanguage
in interfaceIUser
- Returns:
- The default language identifier.
-
setDefaultLanguage
-
getDefaultLocale
Description copied from interface:IUser
Get the default locale identifier.- Specified by:
getDefaultLocale
in interfaceIUser
- Returns:
- The default locale identifier.
-
setDefaultLocale
-
getExternalLogin
Note: do not use this property in scripts.- Specified by:
getExternalLogin
in interfaceIUser
-
getExternalPassword
Note: do not use this property in scripts.- Specified by:
getExternalPassword
in interfaceIUser
-
getDefaultLayout
Description copied from interface:IUser
Get the default layout.- Specified by:
getDefaultLayout
in interfaceIUser
- Returns:
- The default layout.
-
getDefaultLayoutMobile
Description copied from interface:IUser
Get the default layout mobile.- Specified by:
getDefaultLayoutMobile
in interfaceIUser
- Returns:
- The default layout mobile.
-
setDefaultLayout
-
getImageType
Same asgetUserImageContentType()
.- Returns:
- The user image content type.
-
getUserImageContentType
- Specified by:
getUserImageContentType
in interfaceIUser
-
setUserImageContentType
-
getUserImageFileName
- Specified by:
getUserImageFileName
in interfaceIUser
-
setUserImageFileName
-
getUserImageUrl
- Specified by:
getUserImageUrl
in interfaceIUser
-
setUserImageUrl
-
getUserImageMetaInfo
- Specified by:
getUserImageMetaInfo
in interfaceIUser
-
setUserImageMetaInfo
-
getUserImageLastModified
- Specified by:
getUserImageLastModified
in interfaceIUser
-
setUserImageLastModified
-
getPoBox
-
setPoBox
-
getState
-
setState
-
getDescription
- Specified by:
getDescription
in interfaceIUser
-
setDescription
-
getCustomMapVH
Note: do not use this property in scripts.- Specified by:
getCustomMapVH
in interfaceIUser
-
getValueHolder
Note: do not use this property in scripts.- Specified by:
getValueHolder
in interfaceIUser
-
getShowUser
public boolean getShowUser()Note: do not use this property in scripts.- Specified by:
getShowUser
in interfaceIUser
-
save
public void save()Save the user object to the database.- Since:
- Intrexx 7.0.
-
toString
Returns a string representation of the user object.Note that the actual representation may change between different Intrexx versions.
-
getBossId()
.