Class WSUser


  • public class WSUser
    extends Object
    Web Service User. Useful class to create repository Users.
    Since:
    6.1
    Author:
    Matteo Caruso - LogicalDOC
    • Field Detail

      • TYPE_DEFAULT

        public static int TYPE_DEFAULT
      • TYPE_SYSTEM

        public static int TYPE_SYSTEM
      • TYPE_GUEST

        public static int TYPE_GUEST
      • SOURCE_DEFAULT

        public static int SOURCE_DEFAULT
      • SOURCE_LDAP

        public static int SOURCE_LDAP
      • SOURCE_ACTIVE_DIRECTORY

        public static int SOURCE_ACTIVE_DIRECTORY
    • Constructor Detail

      • WSUser

        public WSUser()
    • Method Detail

      • getId

        public long getId()
      • setId

        public void setId​(long id)
      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getUsername

        public String getUsername()
      • getPassword

        public String getPassword()
      • getName

        public String getName()
      • getFullName

        public String getFullName()
      • getFirstName

        public String getFirstName()
      • getStreet

        public String getStreet()
      • getPostalcode

        public String getPostalcode()
      • getCity

        public String getCity()
      • getCountry

        public String getCountry()
      • getLanguage

        public String getLanguage()
      • getEmail

        public String getEmail()
      • getTelephone

        public String getTelephone()
      • setUsername

        public void setUsername​(String uname)
      • setPassword

        public void setPassword​(String pwd)
        Sets the password and encode it
        Parameters:
        pwd - The password in readable format
      • setName

        public void setName​(String name)
      • setFirstName

        public void setFirstName​(String firstName)
      • setStreet

        public void setStreet​(String str)
      • setPostalcode

        public void setPostalcode​(String pc)
      • setCity

        public void setCity​(String ct)
      • setCountry

        public void setCountry​(String cnt)
      • setLanguage

        public void setLanguage​(String lang)
      • setEmail

        public void setEmail​(String mail)
      • setTelephone

        public void setTelephone​(String phone)
      • getGroupIds

        public long[] getGroupIds()
      • setGroupIds

        public void setGroupIds​(long[] groupIds)
      • getUserGroupName

        public String getUserGroupName()
        Returns:
        the name of the group associated to this user, that is '_user_'+id
      • getEnabled

        public int getEnabled()
      • setEnabled

        public void setEnabled​(int enabled)
      • getState

        public String getState()
      • setState

        public void setState​(String state)
      • getTelephone2

        public String getTelephone2()
      • setTelephone2

        public void setTelephone2​(String telephone2)
      • getPasswordChanged

        public String getPasswordChanged()
        Returns:
        when the password was modified
      • setPasswordChanged

        public void setPasswordChanged​(String passwordChanged)
      • getPasswordExpires

        public int getPasswordExpires()
        Returns:
        if the password expires or not
      • setPasswordExpires

        public void setPasswordExpires​(int passwordExpires)
      • setSource

        public void setSource​(int source)
      • getQuota

        public long getQuota()
      • setQuota

        public void setQuota​(long quota)
      • getQuotaCount

        public long getQuotaCount()
      • setQuotaCount

        public void setQuotaCount​(long quotaCount)
      • getLastModified

        public String getLastModified()
      • setLastModified

        public void setLastModified​(String lastModified)
      • toUser

        public User toUser()
      • fromUser

        public static WSUser fromUser​(User user)
      • getPasswordmd4

        public String getPasswordmd4()
      • setPasswordmd4

        public void setPasswordmd4​(String passwordmd4)
      • getEmailSignature

        public String getEmailSignature()
      • setEmailSignature

        public void setEmailSignature​(String emailSignature)
      • getEmail2

        public String getEmail2()
      • setEmail2

        public void setEmail2​(String email2)
      • getEmailSignature2

        public String getEmailSignature2()
      • setEmailSignature2

        public void setEmailSignature2​(String emailSignature2)
      • getDateFormat

        public String getDateFormat()
      • setDateFormat

        public void setDateFormat​(String dateFormat)
      • getDateFormatShort

        public String getDateFormatShort()
      • setDateFormatShort

        public void setDateFormatShort​(String dateFormatShort)
      • getDateFormatLong

        public String getDateFormatLong()
      • setDateFormatLong

        public void setDateFormatLong​(String dateFormatLong)
      • getSearchPref

        public String getSearchPref()
      • setSearchPref

        public void setSearchPref​(String searchPref)