org.chorem.pollen.ui.actions.user
Class ManageFavoriteLists

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
          extended by org.chorem.pollen.ui.actions.PollenActionSupport
              extended by org.chorem.pollen.ui.actions.user.ManageFavoriteLists
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.nuiton.topia.framework.TopiaTransactionAware

public class ManageFavoriteLists
extends PollenActionSupport

Manage favorite lists of a connected user.

Since:
1.3
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  String action
           
protected  File csvImport
           
protected  String csvImportContentType
           
protected  String csvImportFileName
           
protected  org.chorem.pollen.business.persistence.PersonList favoriteList
           
protected  String ldapImport
           
 
Fields inherited from class org.chorem.pollen.ui.actions.PollenActionSupport
SAFE_LANGUAGES, serviceContext, serviceFactory, transaction
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ManageFavoriteLists()
           
 
Method Summary
protected  void addImport(org.chorem.pollen.services.FavoriteListImport service, String url, org.chorem.pollen.business.persistence.PersonList list)
           
 String create()
           
 String delete()
           
 String getAction()
           
 org.chorem.pollen.business.persistence.PersonList getCreateFavoriteList()
           
 org.chorem.pollen.business.persistence.PersonList getDeleteFavoriteList()
           
protected  org.chorem.pollen.business.persistence.PersonList getFavoriteList()
           
 org.chorem.pollen.services.impl.FavoriteService getFavoriteService()
           
 String getLdapImport()
           
 PageSkin getSkin()
           
 void setAction(String action)
           
 void setCsvImport(File csvImport)
           
 void setCsvImportContentType(String csvImportContentType)
           
 void setCsvImportFileName(String csvImportFileName)
           
 void setLdapImport(String ldapImport)
           
 
Methods inherited from class org.chorem.pollen.ui.actions.PollenActionSupport
addFlashError, addFlashMessage, clearFlashErrors, clearFlashMessages, getActionContext, getApplicationUrl, getApplicationVersion, getConfiguration, getCurrentDateTime, getCurrentUrl, getFlashErrors, getFlashMessages, getJqueryTheme, getPageLogo, getPollenApplicationContext, getPollenSession, getPollenUserAccount, getSafeLanguage, getServiceContext, getServiceFactory, getTransaction, getVoteCountingTypeHelp, hasAnyErrors, hasFlashErrors, hasFlashMessages, isUserAdmin, isUserLoggued, newService, setTransaction
 
Methods inherited from class org.nuiton.web.struts2.BaseAction
_
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

favoriteList

protected org.chorem.pollen.business.persistence.PersonList favoriteList

csvImport

protected File csvImport

csvImportContentType

protected String csvImportContentType

csvImportFileName

protected String csvImportFileName

ldapImport

protected String ldapImport

action

protected String action
Constructor Detail

ManageFavoriteLists

public ManageFavoriteLists()
Method Detail

getFavoriteService

public org.chorem.pollen.services.impl.FavoriteService getFavoriteService()

setCsvImport

public void setCsvImport(File csvImport)

setCsvImportContentType

public void setCsvImportContentType(String csvImportContentType)

setCsvImportFileName

public void setCsvImportFileName(String csvImportFileName)

getLdapImport

public String getLdapImport()

setLdapImport

public void setLdapImport(String ldapImport)

getCreateFavoriteList

public org.chorem.pollen.business.persistence.PersonList getCreateFavoriteList()

getDeleteFavoriteList

public org.chorem.pollen.business.persistence.PersonList getDeleteFavoriteList()

getAction

public String getAction()

setAction

public void setAction(String action)

getSkin

public PageSkin getSkin()
Overrides:
getSkin in class PollenActionSupport

create

public String create()
              throws Exception
Throws:
Exception

delete

public String delete()
              throws Exception
Throws:
Exception

getFavoriteList

protected org.chorem.pollen.business.persistence.PersonList getFavoriteList()

addImport

protected void addImport(org.chorem.pollen.services.FavoriteListImport service,
                         String url,
                         org.chorem.pollen.business.persistence.PersonList list)
                  throws org.chorem.pollen.services.exceptions.FavoriteListNotFoundException
Throws:
org.chorem.pollen.services.exceptions.FavoriteListNotFoundException


Copyright © 2009-2012 CodeLutin. All Rights Reserved.