Class user


public class user extends identity
User
  • Field Details

    • firstName

      public String firstName
      First name
              Restrictions:
                      Mandatory: true
                      maxlength: 64
      
    • lastName

      public String lastName
      Last name
              Restrictions:
                      Mandatory: true
                      maxlength: 64
      
    • formattedName

      public String formattedName
      Formatted name
              Restrictions:
                      maxlength: 64
      
    • status

      public String status
      Status
              Restrictions:
                      maxlength: 16
                      enumeration: AVAILABLE (Available)
                      enumeration: BUSY (Busy)
                      enumeration: OFFWORK (Off Work)
      
    • email

      public String email
      Email
              Restrictions:
                      Mandatory: true
                      maxlength: 254
                      pattern: [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}
      
    • phoneNumber

      public String phoneNumber
      Work phone
              Restrictions:
                      minlength: 7
                      maxlength: 32
      
    • mobilePhone

      public String mobilePhone
      Mobile phone
              Restrictions:
                      minlength: 7
                      maxlength: 32
      
    • location

      public String location
      Organization location
              Restrictions:
                      maxlength: 36
      
    • organization

      public String organization
      Organization
              Restrictions:
                      maxlength: 36
      
    • contactId

      public String contactId
      Contact profile
              Restrictions:
                      maxlength: 36
      
    • contact

      public String contact
    • forgotAttempts

      public int forgotAttempts
    • loginAttempts

      public int loginAttempts
    • lastLogin

      public Date lastLogin
    • terms

      public String terms
              Restrictions:
                      maxlength: 128
      
    • lastUpdated

      public Date lastUpdated
              Restrictions:
                      Mandatory: true
      
  • Constructor Details

    • user

      public user()
  • Method Details

    • getUserLanguage

      public String getUserLanguage()
      returns this user's language preference or default system language if there is no preference
    • getContactId

      public String getContactId()
      returns ID of the contact associated with this user
    • isActive

      public boolean isActive()
      checks whether this user is active
    • getStatus

      public String getStatus()
      returns user's availability status
    • getUserRoles

      public Collection getUserRoles()
      Retrieves this user's roles. Returns a list of role IDs.
    • getOrganizationId

      public String getOrganizationId()
      returns ID of organization this user belongs to
    • getUserIdFQ

      public String getUserIdFQ()
      returns fully qualified ID of this user in form realm:userID
    • hasRole

      public boolean hasRole(String role)
      checks whether this user has a specified role
    • getMobilePhone

      public String getMobilePhone()
      returns user's mobile phone number
    • getEmail

      public String getEmail()
      returns user's email address
    • getUserTeams

      public Collection getUserTeams()
      Retrieves all teams this user belongs to. Returns a list of team IDs.
    • getUserId

      public String getUserId()
      returns user's ID
    • isAvailble

      public boolean isAvailble()
      checks whether this user is available
    • getUser

      public static user getUser(String userId)
      retrieves user by ID