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 UploadFileAction  view UploadFileAction download UploadFileAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byru.gammalabs.ice.presentation.web.ActionThatRequiresPermission
          extended byru.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.


Field Summary
private static org.apache.log4j.Category LOG
           
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
UploadFileAction()
           
 
Method Summary
private  void fillFormText(ru.gammalabs.ice.presentation.web.SessionData sessionData, UploadFileFormBean formBean)
           
 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 performChooseFile(org.apache.struts.action.ActionMapping actionMapping, UploadFileFormBean formBean, ru.gammalabs.ice.presentation.web.SessionData sessionData)
          process the actual file upload
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)
          process the actual file upload
 
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
 

Field Detail

LOG

private static org.apache.log4j.Category LOG
Constructor Detail

UploadFileAction

public UploadFileAction()
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.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