Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.presentation.web.publish
Class EditIEAction  view EditIEAction download EditIEAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
          extended byru.gammalabs.ice.presentation.web.publish.EditIEAction

public class EditIEAction
extends ru.gammalabs.ice.presentation.web.ActionThatRequiresPermission

Action performs IE edit. It incapsulates two functionalities: 1. shows the IE edit form 2. processes the submited data from edit from


Field Summary
 
Fields inherited from class ru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EditIEAction()
           
 
Method Summary
private  ru.gammalabs.ice.publishing.IE loadIE(EditIEFormBean formBean, ru.gammalabs.ice.presentation.web.SessionData sessionData, boolean initiation)
          Load the ie object depending on whether the id is specified - then retrieve it from db or if typeId is specified - then create new ie of specified type.
 org.apache.struts.action.ActionForward performAfterPermissionCheck(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          This method should be overriden by user's Action.
private  org.apache.struts.action.ActionForward performCancel(org.apache.struts.action.ActionMapping actionMapping, EditIEFormBean formBean, ru.gammalabs.ice.presentation.web.SessionData sessionData)
           
private  org.apache.struts.action.ActionForward performEdit(org.apache.struts.action.ActionMapping actionMapping, EditIEFormBean formBean, ru.gammalabs.ice.presentation.web.SessionData sessionData)
          prepare formBean for showing the edit form
private  org.apache.struts.action.ActionForward performSave(org.apache.struts.action.ActionMapping actionMapping, EditIEFormBean formBean, ru.gammalabs.ice.presentation.web.SessionData sessionData, javax.servlet.http.HttpServletRequest httpServletRequest)
           
private  void saveIE(ru.gammalabs.ice.publishing.IE ie, EditIEFormBean formBean, ru.gammalabs.ice.presentation.web.SessionData sessionData, java.util.List updatedFieldsList)
          save the ie object depending on whether the id is specified - then store it to db or if typeId is specified - then create new ie of specified type.
 
Methods inherited from class ru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
perform
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditIEAction

public EditIEAction()
Method Detail

performAfterPermissionCheck

public org.apache.struts.action.ActionForward performAfterPermissionCheck(org.apache.struts.action.ActionMapping actionMapping,
                                                                          org.apache.struts.action.ActionForm actionForm,
                                                                          javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                          javax.servlet.http.HttpServletResponse httpServletResponse)
                                                                   throws java.io.IOException,
                                                                          javax.servlet.ServletException,
                                                                          ru.gammalabs.ice.presentation.web.ActionException,
                                                                          ru.gammalabs.ice.publishing.framework.CMSException
Description copied from class: ru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
This method should be overriden by user's Action. In this method it is guaranteed that the permission check was already performed.


performEdit

private org.apache.struts.action.ActionForward performEdit(org.apache.struts.action.ActionMapping actionMapping,
                                                           EditIEFormBean formBean,
                                                           ru.gammalabs.ice.presentation.web.SessionData sessionData)
                                                    throws ru.gammalabs.ice.publishing.framework.CMSException,
                                                           ru.gammalabs.ice.presentation.web.ActionException
prepare formBean for showing the edit form


performCancel

private org.apache.struts.action.ActionForward performCancel(org.apache.struts.action.ActionMapping actionMapping,
                                                             EditIEFormBean formBean,
                                                             ru.gammalabs.ice.presentation.web.SessionData sessionData)

performSave

private org.apache.struts.action.ActionForward performSave(org.apache.struts.action.ActionMapping actionMapping,
                                                           EditIEFormBean formBean,
                                                           ru.gammalabs.ice.presentation.web.SessionData sessionData,
                                                           javax.servlet.http.HttpServletRequest httpServletRequest)
                                                    throws ru.gammalabs.ice.presentation.web.ActionException,
                                                           ru.gammalabs.ice.publishing.framework.CMSException

loadIE

private ru.gammalabs.ice.publishing.IE loadIE(EditIEFormBean formBean,
                                              ru.gammalabs.ice.presentation.web.SessionData sessionData,
                                              boolean initiation)
                                       throws ru.gammalabs.ice.presentation.web.ActionException,
                                              ru.gammalabs.ice.security.AccessDeniedException
Load the ie object depending on whether the id is specified - then retrieve it from db or if typeId is specified - then create new ie of specified type.


saveIE

private void saveIE(ru.gammalabs.ice.publishing.IE ie,
                    EditIEFormBean formBean,
                    ru.gammalabs.ice.presentation.web.SessionData sessionData,
                    java.util.List updatedFieldsList)
             throws ru.gammalabs.ice.presentation.web.ActionException,
                    ru.gammalabs.ice.publishing.framework.CMSException
save the ie object depending on whether the id is specified - then store it to db or if typeId is specified - then create new ie of specified type.