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 TypeMethodDescriptionintgetBoss()Deprecated.intNote: The use of integer IDs is discouraged in scripts.booleanDeprecated.getCity()intThis property is read-only.intNote: 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.intGet the gendergetGuid()Get the GUID of the user.intgetId()Note: The use of integer IDs is discouraged in scripts.Same asgetUserImageContentType().Get the last name of the user.intCheck 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.booleanDeprecated.getName()getPoBox()intDeprecated.SeegetProxyPersonId().intNote: The use of integer IDs is discouraged in scripts.Get the user's public ID.booleanDeprecated.Get the qualified login name of the user.booleanNote: 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.booleanhasBoss()booleanbooleanbooleanThis property is read-only.booleanThis property is read-only.booleanbooleanbooleanisFemale()booleanCheck if the user account can be locked.booleanisMale()booleanbooleanbooleanvoidpropertyMissing(String p_strName, Object p_value) For internal use only.voidsave()Save the user object to the database.voidsetBirthday(Date p_dtValue) voidsetBossId(int p_iValue) Note: The use of integer IDs is discouraged in scripts.voidvoidsetContainerGuid(String p_strValue) voidsetCountry(String p_strValue) voidsetDefaultLanguage(String p_strValue) voidsetDefaultLayout(String p_strValue) voidsetDefaultLocale(String p_strValue) voidsetDescription(String p_strValue) voidsetDisabled(boolean p_bValue) voidsetDiverse(boolean p_bValue) voidsetEmailBiz(String p_strValue) voidsetEmailHome(String p_strValue) voidsetEmployeeNo(String p_strValue) voidsetEnterDate(Date p_dtValue) voidsetExternalLogin1(String p_strValue) voidsetExternalLogin2(String p_strValue) voidsetExternalLogin3(String p_strValue) voidsetExternalPassword1(String p_strValue) voidsetExternalPassword2(String p_strValue) voidsetExternalPassword3(String p_strValue) voidsetFemale(boolean p_bValue) voidsetFirstName(String p_strValue) voidsetFullName(String p_strValue) voidsetGender(int p_iValue) voidsetLastName(String p_strValue) voidsetLockable(boolean p_bLockable) voidsetLocked(int p_iValue) voidsetLoginDomain(String p_strValue) voidsetLoginName(String p_strValue) voidsetMale(boolean p_bValue) voidsetMiddleName(String p_strValue) voidsetModifiablePassword(boolean p_bValue) voidsetMustChangePassword(boolean p_bValue) voidvoidsetPasswordChangedDate(Date p_dt) voidsetPasswordExpires(boolean p_bValue) voidsetPhoneBiz(String p_strValue) voidsetPhoneFax(String p_strValue) voidsetPhoneHome(String p_strValue) voidsetPhoneMobileBiz(String p_strValue) voidsetPhoneMobileHome(String p_strValue) voidsetPhonePager(String p_strValue) voidvoidsetPostalCode(String p_strValue) voidsetProxyPersonId(int p_iValue) Note: The use of integer IDs is discouraged in scripts.voidsetQualifiedLoginName(String p_strValue) voidvoidvoidsetTimeZone(TimeZone p_tz) voidsetTimeZoneId(String p_strValue) voidvoidsetUserImageContentType(String p_strValue) voidsetUserImageFileName(String p_strValue) voidsetUserImageLastModified(Date p_dt) voidsetUserImageMetaInfo(String p_strValue) voidsetUserImageUrl(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:ILogonUserGet the GUID of the user.- Specified by:
getGuidin interfaceILogonUser- Returns:
- The user's GUID.
-
getPublicId
Description copied from interface:IUserGet the user's public ID.The public user ID consists of 40 upper-case hexadecimal digits.
- Specified by:
getPublicIdin 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:
getClassIdin 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:
getContainerIdin interfaceIUser
-
getContainerGuid
- Specified by:
getContainerGuidin 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:
getProxyPersonin 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:
getProxyPersonIdin 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:
hasProxyPersonin interfaceIUser
-
getProxyPersonUser
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
-
getLoginDomain
Description copied from interface:ILogonUserGet the login domain of the user.- Specified by:
getLoginDomainin interfaceILogonUser- Returns:
- The user's login domain.
-
setLoginDomain
-
getLoginName
Description copied from interface:ILogonUserGet the login name of the user.- Specified by:
getLoginNamein 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:
isDeletablein interfaceIUser- Returns:
trueif this user is deletable, orfalseotherwise.
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceIUser
-
setDisabled
public void setDisabled(boolean p_bValue) -
isLockable
public boolean isLockable()Description copied from interface:IUserCheck if the user account can be locked.- Specified by:
isLockablein interfaceIUser- Returns:
trueif the user account can be locked, orfalseotherwise.
-
setLockable
public void setLockable(boolean p_bLockable) -
getLocked
public int getLocked()Description copied from interface:IUserCheck if the user is locked. -
setLocked
public void setLocked(int p_iValue) -
isModifiablePassword
public boolean isModifiablePassword()- Specified by:
isModifiablePasswordin interfaceIUser
-
setModifiablePassword
public void setModifiablePassword(boolean p_bValue) -
isMustChangePassword
public boolean isMustChangePassword()- Specified by:
isMustChangePasswordin interfaceIUser
-
setMustChangePassword
public void setMustChangePassword(boolean p_bValue) -
isPasswordExpires
public boolean isPasswordExpires()- Specified by:
isPasswordExpiresin interfaceIUser
-
setPasswordExpires
public void setPasswordExpires(boolean p_bValue) -
getPasswordChangedDate
- Specified by:
getPasswordChangedDatein interfaceIUser
-
setPasswordChangedDate
-
getCannotChange
Deprecated.Note: do not use this property in scripts.- Specified by:
getCannotChangein interfaceIUser
-
getPwdExpires
Deprecated.Note: do not use this property in scripts.- Specified by:
getPwdExpiresin interfaceIUser
-
getMustChange
Deprecated.Note: do not use this property in scripts.- Specified by:
getMustChangein interfaceIUser
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfaceIUser
-
getEmailBiz
- Specified by:
getEmailBizin interfaceIUser
-
setEmailBiz
-
getEmailHome
- Specified by:
getEmailHomein interfaceIUser
-
setEmailHome
-
getPhoneBiz
- Specified by:
getPhoneBizin interfaceIUser
-
setPhoneBiz
-
getPhoneFax
- Specified by:
getPhoneFaxin interfaceIUser
-
setPhoneFax
-
getPhoneHome
- Specified by:
getPhoneHomein interfaceIUser
-
setPhoneHome
-
getPhoneMobileBiz
- Specified by:
getPhoneMobileBizin interfaceIUser
-
setPhoneMobileBiz
-
getPhoneMobileHome
- Specified by:
getPhoneMobileHomein interfaceIUser
-
setPhoneMobileHome
-
getPhonePager
- Specified by:
getPhonePagerin interfaceIUser
-
setPhonePager
-
getBirthday
- Specified by:
getBirthdayin interfaceIUser
-
setBirthday
-
getEnterDate
- Specified by:
getEnterDatein interfaceIUser
-
setEnterDate
-
getGender
public int getGender()Description copied from interface:IUserGet 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:ILogonUserGet the middle name of the user.- Specified by:
getMiddleNamein interfaceILogonUser- Returns:
- The user's middle name.
-
setMiddleName
-
getCity
-
setCity
-
getCountry
- Specified by:
getCountryin interfaceIUser
-
getIsoCountryCode
- Specified by:
getIsoCountryCodein interfaceIUser
-
setCountry
-
getEmployeeNo
- Specified by:
getEmployeeNoin interfaceIUser
-
setEmployeeNo
-
getFirstName
Description copied from interface:ILogonUserGet the first name of the user.- Specified by:
getFirstNamein interfaceILogonUser- Returns:
- The user's first name.
-
setFirstName
-
getLastName
Description copied from interface:ILogonUserGet the last name of the user.- Specified by:
getLastNamein interfaceILogonUser- Returns:
- The user's last name.
-
setLastName
-
getStreet
-
setStreet
-
getTitle
Description copied from interface:ILogonUserGet the title of the user.- Specified by:
getTitlein interfaceILogonUser- Returns:
- The user's title.
-
setTitle
-
getPostalCode
- Specified by:
getPostalCodein interfaceIUser
-
setPostalCode
-
getTimeZone
- Specified by:
getTimeZonein interfaceIUser
-
setTimeZone
-
getTimeZoneId
Description copied from interface:ILogonUserGet the time zone of the user.- Specified by:
getTimeZoneIdin interfaceILogonUser- Returns:
- The user's time zone.
-
setTimeZoneId
-
getQualifiedLoginName
Description copied from interface:ILogonUserGet the qualified login name of the user.- Specified by:
getQualifiedLoginNamein interfaceILogonUser- Returns:
- The user's qualified login name.
-
setQualifiedLoginName
-
getFullName
Description copied from interface:ILogonUserGet the full name of the user.- Specified by:
getFullNamein interfaceILogonUser- Returns:
- The user's full name.
-
setFullName
-
getExternalLogin1
- Specified by:
getExternalLogin1in interfaceIUser
-
setExternalLogin1
-
getExternalLogin2
- Specified by:
getExternalLogin2in interfaceIUser
-
setExternalLogin2
-
getExternalLogin3
- Specified by:
getExternalLogin3in interfaceIUser
-
setExternalLogin3
-
getExternalPassword1
- Specified by:
getExternalPassword1in interfaceIUser
-
setExternalPassword1
-
getExternalPassword2
- Specified by:
getExternalPassword2in interfaceIUser
-
setExternalPassword2
-
getExternalPassword3
- Specified by:
getExternalPassword3in interfaceIUser
-
setExternalPassword3
-
getDefaultLanguage
Description copied from interface:IUserGet the default language identifier.- Specified by:
getDefaultLanguagein interfaceIUser- Returns:
- The default language identifier.
-
setDefaultLanguage
-
getDefaultLocale
Description copied from interface:IUserGet the default locale identifier.- Specified by:
getDefaultLocalein interfaceIUser- Returns:
- The default locale identifier.
-
setDefaultLocale
-
getExternalLogin
Note: do not use this property in scripts.- Specified by:
getExternalLoginin interfaceIUser
-
getExternalPassword
Note: do not use this property in scripts.- Specified by:
getExternalPasswordin interfaceIUser
-
getDefaultLayout
Description copied from interface:IUserGet the default layout.- Specified by:
getDefaultLayoutin interfaceIUser- Returns:
- The default layout.
-
getDefaultLayoutMobile
Description copied from interface:IUserGet the default layout mobile.- Specified by:
getDefaultLayoutMobilein interfaceIUser- Returns:
- The default layout mobile.
-
setDefaultLayout
-
getImageType
Same asgetUserImageContentType().- Returns:
- The user image content type.
-
getUserImageContentType
- Specified by:
getUserImageContentTypein interfaceIUser
-
setUserImageContentType
-
getUserImageFileName
- Specified by:
getUserImageFileNamein interfaceIUser
-
setUserImageFileName
-
getUserImageUrl
- Specified by:
getUserImageUrlin interfaceIUser
-
setUserImageUrl
-
getUserImageMetaInfo
- Specified by:
getUserImageMetaInfoin interfaceIUser
-
setUserImageMetaInfo
-
getUserImageLastModified
- Specified by:
getUserImageLastModifiedin interfaceIUser
-
setUserImageLastModified
-
getPoBox
-
setPoBox
-
getState
-
setState
-
getDescription
- Specified by:
getDescriptionin interfaceIUser
-
setDescription
-
getCustomMapVH
Note: do not use this property in scripts.- Specified by:
getCustomMapVHin interfaceIUser
-
getValueHolder
Note: do not use this property in scripts.- Specified by:
getValueHolderin interfaceIUser
-
getShowUser
public boolean getShowUser()Note: do not use this property in scripts.- Specified by:
getShowUserin 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().