Package com.logicaldoc.webservice.model
Class WSUser
- java.lang.Object
-
- com.logicaldoc.webservice.model.WSUser
-
public class WSUser extends Object
Web Service User. Useful class to create repository Users.- Since:
- 6.1
- Author:
- Matteo Caruso - LogicalDOC
-
-
Field Summary
Fields Modifier and Type Field Description static int
SOURCE_ACTIVE_DIRECTORY
static int
SOURCE_DEFAULT
static int
SOURCE_LDAP
static int
TYPE_DEFAULT
static int
TYPE_GUEST
static int
TYPE_SYSTEM
static long
USERID_ADMIN
-
Constructor Summary
Constructors Constructor Description WSUser()
-
Method Summary
-
-
-
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
-
USERID_ADMIN
public static final long USERID_ADMIN
- See Also:
- Constant Field Values
-
-
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)
-
getSource
public int getSource()
The source from which the user has been created- Returns:
- the source
- See Also:
User.SOURCE_DEFAULT
,User.SOURCE_LDAP
,User.SOURCE_ACTIVE_DIRECTORY
-
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()
-
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)
-
-