java.lang.Object
org.apache.struts.action.Action
ru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
ru.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
|
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 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 |
EditIEAction
public EditIEAction()
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.