public class EditFileEntryAction extends PortletAction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TEMP_RANDOM_SUFFIX |
| Constructor and Description |
|---|
EditFileEntryAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMultipleFileEntries(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected void |
addMultipleFileEntries(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.String selectedFileName,
java.util.List<com.liferay.portal.kernel.util.KeyValuePair> validFileNameKVPs,
java.util.List<com.liferay.portal.kernel.util.KeyValuePair> invalidFileNameKVPs) |
protected void |
addTempFileEntry(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected void |
cancelFileEntriesCheckOut(javax.portlet.ActionRequest actionRequest) |
protected void |
checkInFileEntries(javax.portlet.ActionRequest actionRequest) |
protected void |
checkOutFileEntries(javax.portlet.ActionRequest actionRequest) |
protected void |
deleteFileEntry(javax.portlet.ActionRequest actionRequest,
boolean moveToTrash) |
protected void |
deleteTempFileEntry(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected java.lang.String |
getAddMultipleFileEntriesErrorMessage(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.Exception e) |
protected java.lang.String[] |
getAllowedFileExtensions(javax.portlet.PortletConfig portletConfig,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
protected java.lang.String |
getSaveAndContinueRedirect(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String redirect) |
protected void |
handleUploadException(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.String cmd,
java.lang.Exception e) |
protected void |
moveFileEntries(javax.portlet.ActionRequest actionRequest,
boolean moveFromTrash) |
void |
processAction(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
org.apache.struts.action.ActionForward |
render(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.portlet.PortletConfig portletConfig,
javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse) |
protected void |
revertFileEntry(javax.portlet.ActionRequest actionRequest) |
void |
serveResource(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.portlet.PortletConfig portletConfig,
javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse) |
protected com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
addSuccessMessage, execute, getForward, getForward, getForwardKey, getForwardKey, getModuleConfig, getResources, getResources, getResources, getStrictPortletSetup, getStrictPortletSetup, hideDefaultSuccessMessage, hideDefaultSuccessMessage, isCheckMethodOnProcessAction, isDisplaySuccessMessage, processEvent, redirectToLogin, sendRedirect, sendRedirect, sendRedirect, setForward, strutsExecute, writeJSON, writeJSONaddErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic static final java.lang.String TEMP_RANDOM_SUFFIX
public void processAction(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
processAction in class PortletActionjava.lang.Exceptionpublic org.apache.struts.action.ActionForward render(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.portlet.PortletConfig portletConfig,
javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
throws java.lang.Exception
render in class PortletActionjava.lang.Exceptionpublic void serveResource(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.portlet.PortletConfig portletConfig,
javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse)
throws java.lang.Exception
serveResource in class PortletActionjava.lang.Exceptionprotected void addMultipleFileEntries(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionprotected void addMultipleFileEntries(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.String selectedFileName,
java.util.List<com.liferay.portal.kernel.util.KeyValuePair> validFileNameKVPs,
java.util.List<com.liferay.portal.kernel.util.KeyValuePair> invalidFileNameKVPs)
throws java.lang.Exception
java.lang.Exceptionprotected void addTempFileEntry(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionprotected void cancelFileEntriesCheckOut(javax.portlet.ActionRequest actionRequest)
throws java.lang.Exception
java.lang.Exceptionprotected void checkInFileEntries(javax.portlet.ActionRequest actionRequest)
throws java.lang.Exception
java.lang.Exceptionprotected void checkOutFileEntries(javax.portlet.ActionRequest actionRequest)
throws java.lang.Exception
java.lang.Exceptionprotected void deleteFileEntry(javax.portlet.ActionRequest actionRequest,
boolean moveToTrash)
throws java.lang.Exception
java.lang.Exceptionprotected void deleteTempFileEntry(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getAddMultipleFileEntriesErrorMessage(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.Exception e)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String[] getAllowedFileExtensions(javax.portlet.PortletConfig portletConfig,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected java.lang.String getSaveAndContinueRedirect(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String redirect)
throws java.lang.Exception
java.lang.Exceptionprotected void handleUploadException(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse,
java.lang.String cmd,
java.lang.Exception e)
throws java.lang.Exception
java.lang.Exceptionprotected void moveFileEntries(javax.portlet.ActionRequest actionRequest,
boolean moveFromTrash)
throws java.lang.Exception
java.lang.Exceptionprotected void revertFileEntry(javax.portlet.ActionRequest actionRequest)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(javax.portlet.PortletConfig portletConfig,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exception