Package com.logicaldoc.webservice.model
Class WSUser
java.lang.Object
com.logicaldoc.webservice.model.WSUser
Web Service User. Useful class to create repository Users.
- Since:
- 6.1
- Author:
- Matteo Caruso - LogicalDOC
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WSUser
getCity()
getEmail()
int
int
long[]
long
getId()
getKey()
getName()
int
long
getQuota()
long
int
The source from which the user has been createdgetState()
int
getType()
void
void
setCountry
(String cnt) void
setDateFormat
(String dateFormat) void
setDateFormatLong
(String dateFormatLong) void
setDateFormatShort
(String dateFormatShort) void
setDecodedPassword
(String decodedPassword) void
void
void
setEmailSignature
(String emailSignature) void
setEmailSignature2
(String emailSignature2) void
setEnabled
(int enabled) void
setEnforceWorkingTime
(int enforceWorkingTime) void
void
setFirstName
(String firstName) void
setGroupIds
(long[] groupIds) void
setId
(long id) void
void
setLanguage
(String lang) void
setLastModified
(String lastModified) void
setMaxInactivity
(Integer maxInactivity) void
void
setPassword
(String passwd) Sets the password and encode itvoid
setPasswordChanged
(String passwordChanged) void
setPasswordExpires
(int passwordExpires) void
setPasswordmd4
(String passwordmd4) void
setPostalcode
(String pc) void
setQuota
(long quota) void
setQuotaCount
(long quotaCount) void
setSearchPref
(String searchPref) void
setSecondFactor
(String secondFactor) void
setSource
(int source) void
void
void
setTelephone
(String phone) void
setTelephone2
(String telephone2) void
setTimeZone
(String timeZone) void
setType
(int type) void
setUsername
(String uname) void
setWorkingTimes
(WSWorkingTime[] workingTimes) toString()
toUser()
-
Field Details
-
TYPE_DEFAULT
public static final int TYPE_DEFAULT- See Also:
-
TYPE_SYSTEM
public static final int TYPE_SYSTEM- See Also:
-
TYPE_GUEST
public static final int TYPE_GUEST- See Also:
-
SOURCE_DEFAULT
public static final int SOURCE_DEFAULT- See Also:
-
SOURCE_LDAP
public static final int SOURCE_LDAP- See Also:
-
SOURCE_ACTIVE_DIRECTORY
public static final int SOURCE_ACTIVE_DIRECTORY- See Also:
-
USERID_ADMIN
public static final long USERID_ADMIN- See Also:
-
-
Constructor Details
-
WSUser
public WSUser()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getType
public int getType() -
setType
public void setType(int type) -
getUsername
-
getPassword
-
getName
-
getFullName
-
getFirstName
-
getStreet
-
getPostalcode
-
getCity
-
getCountry
-
getLanguage
-
getEmail
-
getTelephone
-
setUsername
-
setPassword
Sets the password and encode it- Parameters:
passwd
- The password in readable format
-
setName
-
setFirstName
-
setStreet
-
setPostalcode
-
setCity
-
setCountry
-
setLanguage
-
setEmail
-
setTelephone
-
getGroupIds
public long[] getGroupIds() -
setGroupIds
public void setGroupIds(long[] groupIds) -
toString
-
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
-
setState
-
getTelephone2
-
setTelephone2
-
getPasswordChanged
- Returns:
- when the password was modified
-
setPasswordChanged
-
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:
-
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
-
setLastModified
-
toUser
-
fromUser
-
getPasswordmd4
-
setPasswordmd4
-
getEmailSignature
-
setEmailSignature
-
getEmail2
-
setEmail2
-
getEmailSignature2
-
setEmailSignature2
-
getDateFormat
-
setDateFormat
-
getDateFormatShort
-
setDateFormatShort
-
getDateFormatLong
-
setDateFormatLong
-
getSearchPref
-
setSearchPref
-
getExpire
-
setExpire
-
getEnforceWorkingTime
public int getEnforceWorkingTime() -
setEnforceWorkingTime
public void setEnforceWorkingTime(int enforceWorkingTime) -
getWorkingTimes
-
setWorkingTimes
-
getMaxInactivity
-
setMaxInactivity
-
getTimeZone
-
setTimeZone
-
getSecondFactor
-
setSecondFactor
-
getKey
-
setKey
-
getDecodedPassword
-
setDecodedPassword
-