Package org.silverpeas.web.jobdomain
Class UserRequestData
- java.lang.Object
-
- org.silverpeas.web.jobdomain.UserRequestData
-
public class UserRequestData extends Object
This class is a user data container which the data are retrieved from an HTTP request that deals with user data creation or modification.
To get a loaded container, useRequestParameterDecoder.decode(HttpRequest, Class)
.- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description UserRequestData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyDataOnExistingUser(UserFull existingUser)
Applies the data on the specified instance of an existing user.
Following data are not set: user id user loginvoid
applyDataOnNewUser(UserDetail newUser)
Applies the data on the specified new instance of a user.
Following data are not set: user id the user password validity the user passwordUserAccessLevel
getAccessLevel()
String
getEmail()
String
getExtraMessage()
String
getFirstName()
String
getGroupId()
String
getId()
String
getLanguage()
String
getLastName()
String
getLogin()
String
getPassword()
protected boolean
getUserManualNotifReceiverLimitEnabled()
Integer
getUserManualNotifReceiverLimitValue()
ZoneId
getZoneId()
boolean
isFromCSV()
boolean
isPasswordValid()
boolean
isSendEmail()
void
setAccessLevel(UserAccessLevel accessLevel)
void
setEmail(String email)
void
setExtraMessage(String extraMessage)
void
setFirstName(String firstName)
void
setFromCSV(boolean fromCSV)
void
setGroupId(String groupId)
void
setId(String id)
void
setLanguage(String language)
void
setLastName(String lastName)
void
setLogin(String login)
void
setPassword(String password)
void
setPasswordValid(boolean passwordValid)
void
setSendEmail(boolean sendEmail)
void
setUserManualNotifReceiverLimitEnabled(boolean userManualNotifReceiverLimitEnabled)
void
setZoneId(ZoneId zoneId)
String
toString()
-
-
-
Method Detail
-
applyDataOnNewUser
public void applyDataOnNewUser(UserDetail newUser)
Applies the data on the specified new instance of a user.
Following data are not set:- user id
- the user password validity
- the user password
- Parameters:
newUser
- the instance of the new user.
-
applyDataOnExistingUser
public void applyDataOnExistingUser(UserFull existingUser)
Applies the data on the specified instance of an existing user.
Following data are not set:- user id
- user login
- Parameters:
existingUser
- the instance of the existing user.
-
getId
public String getId()
-
setId
public void setId(String id)
-
getLogin
public String getLogin()
-
setLogin
public void setLogin(String login)
-
getLastName
public String getLastName()
-
setLastName
public void setLastName(String lastName)
-
getFirstName
public String getFirstName()
-
setFirstName
public void setFirstName(String firstName)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
isSendEmail
public boolean isSendEmail()
-
setSendEmail
public void setSendEmail(boolean sendEmail)
-
getAccessLevel
public UserAccessLevel getAccessLevel()
-
setAccessLevel
public void setAccessLevel(UserAccessLevel accessLevel)
-
isPasswordValid
public boolean isPasswordValid()
-
setPasswordValid
public void setPasswordValid(boolean passwordValid)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getGroupId
public String getGroupId()
-
setGroupId
public void setGroupId(String groupId)
-
getLanguage
public String getLanguage()
-
setLanguage
public void setLanguage(String language)
-
getExtraMessage
public String getExtraMessage()
-
setExtraMessage
public void setExtraMessage(String extraMessage)
-
getZoneId
public ZoneId getZoneId()
-
setZoneId
public void setZoneId(ZoneId zoneId)
-
getUserManualNotifReceiverLimitEnabled
protected boolean getUserManualNotifReceiverLimitEnabled()
-
setUserManualNotifReceiverLimitEnabled
public void setUserManualNotifReceiverLimitEnabled(boolean userManualNotifReceiverLimitEnabled)
-
getUserManualNotifReceiverLimitValue
public Integer getUserManualNotifReceiverLimitValue()
-
isFromCSV
public boolean isFromCSV()
-
setFromCSV
public void setFromCSV(boolean fromCSV)
-
-