org.chorem.bow.action
Class PreferencesAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.chorem.bow.action.BowBaseAction
          extended by org.chorem.bow.action.PreferencesAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.SessionAware

public class PreferencesAction
extends BowBaseAction
implements org.apache.struts2.interceptor.ServletRequestAware

Change les preferences de l'utilisateur (coleur, password, email, ...)

Author:
poussin
See Also:
Serialized Form

Field Summary
protected  String bookmarksHomePage
           
protected  List<org.nuiton.wikitty.search.FacetTopic> bookmarksImportDate
           
protected  String colors
           
protected  String confirmNewPassword
           
protected  String currentPassword
           
protected  String email
           
protected  String newPassword
           
protected  javax.servlet.http.HttpServletRequest request
           
protected  String searchEngineUrlResults
           
protected  String searchEngineUrlSuggestions
           
protected  String tagsNb
           
protected  String update
           
 
Fields inherited from class org.chorem.bow.action.BowBaseAction
log, session, UNTRANSLATED_MARKER
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
PreferencesAction()
           
 
Method Summary
protected  Preference changePreference()
           
protected  User changeUser(User newUser)
           
 String execute()
           
 String getBookmarksHomePage()
           
 List<org.nuiton.wikitty.search.FacetTopic> getBookmarksImportDate()
           
 String getColors()
           
 String getConfirmNewPassword()
           
 String getCurrentPassword()
           
 String getEmail()
           
 String getNewPassword()
           
 String getSearchEngineUrlResults()
           
 String getSearchEngineUrlSuggestions()
           
 String getTagsNb()
           
 String getUpdate()
           
 void setBookmarksHomePage(String bookmarksHomePage)
           
 void setBookmarksImportDate(List<org.nuiton.wikitty.search.FacetTopic> bookmarksImportDate)
           
 void setColors(String colors)
           
 void setConfirmNewPassword(String confirmNewPassword)
           
 void setCurrentPassword(String currentPassword)
           
 void setEmail(String email)
           
 void setNewPassword(String newPassword)
           
 void setSearchEngineUrlResults(String searchEngineUrlResults)
           
 void setSearchEngineUrlSuggestions(String searchEngineUrlSuggestions)
           
 void setServletRequest(javax.servlet.http.HttpServletRequest request)
           
 void setTagsNb(String tagsNb)
           
 void setUpdate(String update)
           
 
Methods inherited from class org.chorem.bow.action.BowBaseAction
getBowProxy, getBowSession, getSafeText, getText, getText, getText, getText, getText, getText, getText, getText, getText, setSession
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colors

protected String colors

tagsNb

protected String tagsNb

bookmarksHomePage

protected String bookmarksHomePage

searchEngineUrlSuggestions

protected String searchEngineUrlSuggestions

searchEngineUrlResults

protected String searchEngineUrlResults

email

protected String email

newPassword

protected String newPassword

currentPassword

protected String currentPassword

confirmNewPassword

protected String confirmNewPassword

update

protected String update

bookmarksImportDate

protected List<org.nuiton.wikitty.search.FacetTopic> bookmarksImportDate

request

protected javax.servlet.http.HttpServletRequest request
Constructor Detail

PreferencesAction

public PreferencesAction()
Method Detail

getColors

public String getColors()
Returns:
the colors

setColors

public void setColors(String colors)
Parameters:
colors - the colors to set

getTagsNb

public String getTagsNb()
Returns:
the tagsNb

setTagsNb

public void setTagsNb(String tagsNb)
Parameters:
tagsNb - the tagsNb to set

getBookmarksHomePage

public String getBookmarksHomePage()
Returns:
the bookmarksHomePage

setBookmarksHomePage

public void setBookmarksHomePage(String bookmarksHomePage)
Parameters:
bookmarksHomePage - the bookmarksHomePage to set

getSearchEngineUrlSuggestions

public String getSearchEngineUrlSuggestions()
Returns:
the searchEngineUrlSuggestions

setSearchEngineUrlSuggestions

public void setSearchEngineUrlSuggestions(String searchEngineUrlSuggestions)
Parameters:
searchEngineUrlSuggestions - the searchEngineUrlSuggestions to set

getSearchEngineUrlResults

public String getSearchEngineUrlResults()
Returns:
the searchEngineUrlResults

setSearchEngineUrlResults

public void setSearchEngineUrlResults(String searchEngineUrlResults)
Parameters:
searchEngineUrlResults - the searchEngineUrlResults to set

getEmail

public String getEmail()
Returns:
the email

setEmail

public void setEmail(String email)
Parameters:
email - the email to set

getNewPassword

public String getNewPassword()
Returns:
the newPassword

setNewPassword

public void setNewPassword(String newPassword)
Parameters:
newPassword - the newPassword to set

getCurrentPassword

public String getCurrentPassword()
Returns:
the currentPassword

setCurrentPassword

public void setCurrentPassword(String currentPassword)
Parameters:
currentPassword - the currentPassword to set

getConfirmNewPassword

public String getConfirmNewPassword()
Returns:
the confirmNewPassword

setConfirmNewPassword

public void setConfirmNewPassword(String confirmNewPassword)
Parameters:
confirmNewPassword - the confirmNewPassword to set

getUpdate

public String getUpdate()
Returns:
the update

setUpdate

public void setUpdate(String update)
Parameters:
update - the update to set

getBookmarksImportDate

public List<org.nuiton.wikitty.search.FacetTopic> getBookmarksImportDate()
Returns:
the bookmarksImportDate

setBookmarksImportDate

public void setBookmarksImportDate(List<org.nuiton.wikitty.search.FacetTopic> bookmarksImportDate)
Parameters:
bookmarksImportDate - the bookmarksImportDate to set

setServletRequest

public void setServletRequest(javax.servlet.http.HttpServletRequest request)
Specified by:
setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAware

changePreference

protected Preference changePreference()

changeUser

protected User changeUser(User newUser)

execute

public String execute()
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport


Copyright © 2010-2011 CodeLutin. All Rights Reserved.