Class GroovyUser
- java.lang.Object
-
- de.uplanet.lucy.server.usermanager.groovy.GroovyUser
-
- All Implemented Interfaces:
IUser
,ILogonUser
public final class GroovyUser extends Object implements IUser
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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
get(String p_strKey)
Object
getAt(String p_strKey)
Date
getBirthday()
int
getBoss()
Deprecated.SeegetBossId()
.int
getBossId()
Note: The use of integer IDs is discouraged in scripts.GroovyUser
getBossUser()
boolean
getCannotChange()
Deprecated.String
getCity()
int
getClassId()
This property is read-only.GroovyDsContainerNode
getContainer()
String
getContainerGuid()
int
getContainerId()
Note: The use of integer IDs is discouraged in scripts.String
getCountry()
Map<String,IValueHolder<?>>
getCustomMapVH()
Note: do not use this property in scripts.String
getDefaultLanguage()
Get the default language identifier.String
getDefaultLayout()
Get the default layout.String
getDefaultLayoutMobile()
Get the default layout mobile.String
getDefaultLocale()
Get the default locale identifier.String
getDescription()
ModifiableGroovyDsSetNodeCollection
getDirectMemberSets()
A collection of sets this user is direct member of.String
getEmailBiz()
String
getEmailHome()
String
getEmployeeNo()
Date
getEnterDate()
String
getExternalLogin(int p_iIndex)
Note: do not use this property in scripts.String
getExternalLogin1()
String
getExternalLogin2()
String
getExternalLogin3()
String
getExternalPassword(int p_iIndex)
Note: do not use this property in scripts.String
getExternalPassword1()
String
getExternalPassword2()
String
getExternalPassword3()
String
getFirstName()
Get the first name of the user.String
getFullName()
Get the full name of the user.int
getGender()
Get the genderString
getGuid()
Get the GUID of the user.int
getId()
Note: The use of integer IDs is discouraged in scripts.String
getImageType()
Same asgetUserImageContentType()
.String
getLastName()
Get the last name of the user.int
getLocked()
Check if the user is locked.String
getLoginDomain()
Get the login domain of the user.String
getLoginName()
Get the login name of the user.String
getMiddleName()
Get the middle name of the user.boolean
getMustChange()
Deprecated.String
getName()
Date
getPasswordChangedDate()
String
getPhoneBiz()
String
getPhoneFax()
String
getPhoneHome()
String
getPhoneMobileBiz()
String
getPhoneMobileHome()
String
getPhonePager()
String
getPoBox()
String
getPostalCode()
int
getProxyPerson()
Deprecated.SeegetProxyPersonId()
.int
getProxyPersonId()
Note: The use of integer IDs is discouraged in scripts.GroovyUser
getProxyPersonUser()
String
getPublicId()
Get the user's public ID.boolean
getPwdExpires()
Deprecated.String
getQualifiedLoginName()
Get the qualified login name of the user.boolean
getShowUser()
Note: do not use this property in scripts.String
getState()
String
getStreet()
TimeZone
getTimeZone()
String
getTimeZoneId()
Get the time zone of the user.String
getTitle()
Get the title of the user.String
getUserImageContentType()
String
getUserImageFileName()
Date
getUserImageLastModified()
String
getUserImageMetaInfo()
String
getUserImageUrl()
IValueHolder<?>
getValueHolder(String p_strAttributGuid)
Note: do not use this property in scripts.boolean
hasBoss()
boolean
hasProxyPerson()
boolean
isAnonymous()
boolean
isDeletable()
This property is read-only.boolean
isDeleted()
This property is read-only.boolean
isDisabled()
boolean
isDiverse()
boolean
isFemale()
boolean
isLockable()
Check if the user account can be locked.boolean
isMale()
boolean
isModifiablePassword()
boolean
isMustChangePassword()
boolean
isPasswordExpires()
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
setCity(String p_strValue)
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
setName(String p_strValue)
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
setPoBox(String p_strValue)
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
setState(String p_strValue)
void
setStreet(String p_strValue)
void
setTimeZone(TimeZone p_tz)
void
setTimeZoneId(String p_strValue)
void
setTitle(String p_strValue)
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)
String
toString()
Returns a string representation of the user object.
-
-
-
Method Detail
-
propertyMissing
public void propertyMissing(String p_strName, Object p_value)
For internal use only.
-
getGuid
public String getGuid()
Description copied from interface:ILogonUser
Get the GUID of the user.- Specified by:
getGuid
in interfaceILogonUser
- Returns:
- The user's GUID.
-
getPublicId
public String 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.
-
setName
public void setName(String p_strValue)
-
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
public String getContainerGuid()
- Specified by:
getContainerGuid
in interfaceIUser
-
setContainerGuid
public void setContainerGuid(String p_strValue)
-
getContainer
public GroovyDsContainerNode getContainer()
-
getDirectMemberSets
public ModifiableGroovyDsSetNodeCollection getDirectMemberSets()
A collection of sets this user is direct member of.- Returns:
- The collection of sets this user is direct member of.
-
getBoss
@Deprecated public int 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.
-
getBossUser
public GroovyUser getBossUser() throws de.uplanet.lucy.usermanager.NotFoundException
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
-
getProxyPerson
@Deprecated public int 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
public GroovyUser getProxyPersonUser() throws de.uplanet.lucy.usermanager.NotFoundException
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
-
getLoginDomain
public String 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
public void setLoginDomain(String p_strValue)
-
getLoginName
public String 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
public void setLoginName(String p_strValue)
-
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
public Date getPasswordChangedDate()
- Specified by:
getPasswordChangedDate
in interfaceIUser
-
setPasswordChangedDate
public void setPasswordChangedDate(Date p_dt)
-
getCannotChange
@Deprecated public boolean getCannotChange()
Deprecated.Note: do not use this property in scripts.- Specified by:
getCannotChange
in interfaceIUser
-
getPwdExpires
@Deprecated public boolean getPwdExpires()
Deprecated.Note: do not use this property in scripts.- Specified by:
getPwdExpires
in interfaceIUser
-
getMustChange
@Deprecated public boolean 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
public String getEmailBiz()
- Specified by:
getEmailBiz
in interfaceIUser
-
setEmailBiz
public void setEmailBiz(String p_strValue)
-
getEmailHome
public String getEmailHome()
- Specified by:
getEmailHome
in interfaceIUser
-
setEmailHome
public void setEmailHome(String p_strValue)
-
getPhoneBiz
public String getPhoneBiz()
- Specified by:
getPhoneBiz
in interfaceIUser
-
setPhoneBiz
public void setPhoneBiz(String p_strValue)
-
getPhoneFax
public String getPhoneFax()
- Specified by:
getPhoneFax
in interfaceIUser
-
setPhoneFax
public void setPhoneFax(String p_strValue)
-
getPhoneHome
public String getPhoneHome()
- Specified by:
getPhoneHome
in interfaceIUser
-
setPhoneHome
public void setPhoneHome(String p_strValue)
-
getPhoneMobileBiz
public String getPhoneMobileBiz()
- Specified by:
getPhoneMobileBiz
in interfaceIUser
-
setPhoneMobileBiz
public void setPhoneMobileBiz(String p_strValue)
-
getPhoneMobileHome
public String getPhoneMobileHome()
- Specified by:
getPhoneMobileHome
in interfaceIUser
-
setPhoneMobileHome
public void setPhoneMobileHome(String p_strValue)
-
getPhonePager
public String getPhonePager()
- Specified by:
getPhonePager
in interfaceIUser
-
setPhonePager
public void setPhonePager(String p_strValue)
-
getBirthday
public Date getBirthday()
- Specified by:
getBirthday
in interfaceIUser
-
setBirthday
public void setBirthday(Date p_dtValue)
-
getEnterDate
public Date getEnterDate()
- Specified by:
getEnterDate
in interfaceIUser
-
setEnterDate
public void setEnterDate(Date p_dtValue)
-
getGender
public int getGender()
Description copied from interface:IUser
Get the gender
-
setGender
public void setGender(int p_iValue)
-
setMale
public void setMale(boolean p_bValue)
-
setFemale
public void setFemale(boolean p_bValue)
-
setDiverse
public void setDiverse(boolean p_bValue)
- Parameters:
p_bValue
- Iffalse
, GENDER_UNKNOWN will be set.
-
getMiddleName
public String 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
public void setMiddleName(String p_strValue)
-
setCity
public void setCity(String p_strValue)
-
getCountry
public String getCountry()
- Specified by:
getCountry
in interfaceIUser
-
setCountry
public void setCountry(String p_strValue)
-
getEmployeeNo
public String getEmployeeNo()
- Specified by:
getEmployeeNo
in interfaceIUser
-
setEmployeeNo
public void setEmployeeNo(String p_strValue)
-
getFirstName
public String 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
public void setFirstName(String p_strValue)
-
getLastName
public String 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
public void setLastName(String p_strValue)
-
setStreet
public void setStreet(String p_strValue)
-
getTitle
public String getTitle()
Description copied from interface:ILogonUser
Get the title of the user.- Specified by:
getTitle
in interfaceILogonUser
- Returns:
- The user's title.
-
setTitle
public void setTitle(String p_strValue)
-
getPostalCode
public String getPostalCode()
- Specified by:
getPostalCode
in interfaceIUser
-
setPostalCode
public void setPostalCode(String p_strValue)
-
getTimeZone
public TimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceIUser
-
setTimeZone
public void setTimeZone(TimeZone p_tz)
-
getTimeZoneId
public String 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
public void setTimeZoneId(String p_strValue)
-
getQualifiedLoginName
public String 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
public void setQualifiedLoginName(String p_strValue)
-
getFullName
public String 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
public void setFullName(String p_strValue)
-
getExternalLogin1
public String getExternalLogin1()
- Specified by:
getExternalLogin1
in interfaceIUser
-
setExternalLogin1
public void setExternalLogin1(String p_strValue)
-
getExternalLogin2
public String getExternalLogin2()
- Specified by:
getExternalLogin2
in interfaceIUser
-
setExternalLogin2
public void setExternalLogin2(String p_strValue)
-
getExternalLogin3
public String getExternalLogin3()
- Specified by:
getExternalLogin3
in interfaceIUser
-
setExternalLogin3
public void setExternalLogin3(String p_strValue)
-
getExternalPassword1
public String getExternalPassword1()
- Specified by:
getExternalPassword1
in interfaceIUser
-
setExternalPassword1
public void setExternalPassword1(String p_strValue)
-
getExternalPassword2
public String getExternalPassword2()
- Specified by:
getExternalPassword2
in interfaceIUser
-
setExternalPassword2
public void setExternalPassword2(String p_strValue)
-
getExternalPassword3
public String getExternalPassword3()
- Specified by:
getExternalPassword3
in interfaceIUser
-
setExternalPassword3
public void setExternalPassword3(String p_strValue)
-
getDefaultLanguage
public String getDefaultLanguage()
Description copied from interface:IUser
Get the default language identifier.- Specified by:
getDefaultLanguage
in interfaceIUser
- Returns:
- The default language identifier.
-
setDefaultLanguage
public void setDefaultLanguage(String p_strValue)
-
getDefaultLocale
public String getDefaultLocale()
Description copied from interface:IUser
Get the default locale identifier.- Specified by:
getDefaultLocale
in interfaceIUser
- Returns:
- The default locale identifier.
-
setDefaultLocale
public void setDefaultLocale(String p_strValue)
-
getExternalLogin
public String getExternalLogin(int p_iIndex)
Note: do not use this property in scripts.- Specified by:
getExternalLogin
in interfaceIUser
-
getExternalPassword
public String getExternalPassword(int p_iIndex)
Note: do not use this property in scripts.- Specified by:
getExternalPassword
in interfaceIUser
-
getDefaultLayout
public String getDefaultLayout()
Description copied from interface:IUser
Get the default layout.- Specified by:
getDefaultLayout
in interfaceIUser
- Returns:
- The default layout.
-
getDefaultLayoutMobile
public String getDefaultLayoutMobile()
Description copied from interface:IUser
Get the default layout mobile.- Specified by:
getDefaultLayoutMobile
in interfaceIUser
- Returns:
- The default layout mobile.
-
setDefaultLayout
public void setDefaultLayout(String p_strValue)
-
getImageType
public String getImageType()
Same asgetUserImageContentType()
.- Returns:
- The user image content type.
-
getUserImageContentType
public String getUserImageContentType()
- Specified by:
getUserImageContentType
in interfaceIUser
-
setUserImageContentType
public void setUserImageContentType(String p_strValue)
-
getUserImageFileName
public String getUserImageFileName()
- Specified by:
getUserImageFileName
in interfaceIUser
-
setUserImageFileName
public void setUserImageFileName(String p_strValue)
-
getUserImageUrl
public String getUserImageUrl()
- Specified by:
getUserImageUrl
in interfaceIUser
-
setUserImageUrl
public void setUserImageUrl(String p_strValue)
-
getUserImageMetaInfo
public String getUserImageMetaInfo()
- Specified by:
getUserImageMetaInfo
in interfaceIUser
-
setUserImageMetaInfo
public void setUserImageMetaInfo(String p_strValue)
-
getUserImageLastModified
public Date getUserImageLastModified()
- Specified by:
getUserImageLastModified
in interfaceIUser
-
setUserImageLastModified
public void setUserImageLastModified(Date p_dt)
-
setPoBox
public void setPoBox(String p_strValue)
-
setState
public void setState(String p_strValue)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceIUser
-
setDescription
public void setDescription(String p_strValue)
-
getCustomMapVH
public Map<String,IValueHolder<?>> getCustomMapVH()
Note: do not use this property in scripts.- Specified by:
getCustomMapVH
in interfaceIUser
-
getValueHolder
public IValueHolder<?> getValueHolder(String p_strAttributGuid)
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.
-
-