java.lang.Object
org.apache.struts.action.Action
ru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
ru.gammalabs.ice.presentation.web.publish.UploadFileAction
- public class UploadFileAction
- extends ru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
Handles the file upload in generic manner - passing the handling of uploaded file to upload handler.
| 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 |
LOG
private static org.apache.log4j.Category LOG
UploadFileAction
public UploadFileAction()
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.publishing.framework.CMSException,
ru.gammalabs.ice.presentation.web.ActionException
- 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.
performChooseFile
private org.apache.struts.action.ActionForward performChooseFile(org.apache.struts.action.ActionMapping actionMapping,
UploadFileFormBean formBean,
ru.gammalabs.ice.presentation.web.SessionData sessionData)
throws ru.gammalabs.ice.presentation.web.ActionException
- process the actual file upload
fillFormText
private void fillFormText(ru.gammalabs.ice.presentation.web.SessionData sessionData,
UploadFileFormBean formBean)
performUploadFile
private org.apache.struts.action.ActionForward performUploadFile(org.apache.struts.action.ActionMapping actionMapping,
UploadFileFormBean formBean,
ru.gammalabs.ice.presentation.web.SessionData sessionData,
javax.servlet.http.HttpServletRequest request)
throws ru.gammalabs.ice.publishing.framework.CMSException,
ru.gammalabs.ice.presentation.web.ActionException
- process the actual file upload