Package com.kloudville.idm
Class user
java.lang.Object
com.kloudville.data.object.DataObject
com.kloudville.idm.identity
com.kloudville.idm.user
User
-
Field Summary
FieldsModifier and TypeFieldDescriptionContact profileEmailFirst nameint
Formatted nameLast nameRestrictions: Mandatory: trueOrganization locationint
Mobile phoneOrganizationWork phoneStatusRestrictions: maxlength: 128 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns ID of the contact associated with this usergetEmail()
returns user's email addressreturns user's mobile phone numberreturns ID of organization this user belongs toreturns user's availability statusstatic user
retrieves user by IDreturns user's IDreturns fully qualified ID of this user in form realm:userIDreturns this user's language preference or default system language if there is no preferenceRetrieves this user's roles.Retrieves all teams this user belongs to.boolean
checks whether this user has a specified roleboolean
isActive()
checks whether this user is activeboolean
checks whether this user is availableMethods inherited from class com.kloudville.data.object.DataObject
clearModified, compareDates, copy, formatDecimal, formatDecimalField, getAnyValue, getAnyValueNames, getChildLabel, getDefinition, getDisplayName, getEnumValue, getEnumValueArray, getEnumValueByCode, getEnumValueByIndex, getExtension, getExtensionDefinition, getFormattedMessage, getLastUpdated, getObjectId, getObjectIds, getParent, getText, getTopParent, has, hasChild, hasValue, htmlToText, isDeleted, isError, isModified, isNewObject, mapFrom, mapTo, setAnyValue, setDeleted, setFormattedValue, setNewObject, setObjectId, setText, toJSON, toXML, validate, valToXML
-
Field Details
-
firstName
First nameRestrictions: Mandatory: true maxlength: 64
-
lastName
Last nameRestrictions: Mandatory: true maxlength: 64
-
formattedName
Formatted nameRestrictions: maxlength: 64
-
status
StatusRestrictions: maxlength: 16 enumeration: AVAILABLE (Available) enumeration: BUSY (Busy) enumeration: OFFWORK (Off Work)
-
email
EmailRestrictions: Mandatory: true maxlength: 254 pattern: [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}
-
phoneNumber
Work phoneRestrictions: minlength: 7 maxlength: 32
-
mobilePhone
Mobile phoneRestrictions: minlength: 7 maxlength: 32
-
location
Organization locationRestrictions: maxlength: 36
-
organization
OrganizationRestrictions: maxlength: 36
-
contactId
Contact profileRestrictions: maxlength: 36
-
contact
-
forgotAttempts
public int forgotAttempts -
loginAttempts
public int loginAttempts -
lastLogin
-
terms
Restrictions: maxlength: 128
-
lastUpdated
Restrictions: Mandatory: true
-
-
Constructor Details
-
user
public user()
-
-
Method Details
-
getUserLanguage
returns this user's language preference or default system language if there is no preference -
getContactId
returns ID of the contact associated with this user -
isActive
public boolean isActive()checks whether this user is active -
getStatus
returns user's availability status -
getUserRoles
Retrieves this user's roles. Returns a list of role IDs. -
getOrganizationId
returns ID of organization this user belongs to -
getUserIdFQ
returns fully qualified ID of this user in form realm:userID -
hasRole
checks whether this user has a specified role -
getMobilePhone
returns user's mobile phone number -
getEmail
returns user's email address -
getUserTeams
Retrieves all teams this user belongs to. Returns a list of team IDs. -
getUserId
returns user's ID -
isAvailble
public boolean isAvailble()checks whether this user is available -
getUser
retrieves user by ID
-