Package org.javlo.module.file
Class FileAction
- java.lang.Object
 - 
- org.javlo.actions.AbstractModuleAction
 - 
- org.javlo.module.file.FileAction
 
 
 
- 
- All Implemented Interfaces:
 IAction,IModuleAction
public class FileAction extends AbstractModuleAction
 
- 
- 
Constructor Summary
Constructors Constructor Description FileAction() 
- 
Method Summary
- 
Methods inherited from class org.javlo.actions.AbstractModuleAction
haveRight, haveRight, isLightInterface, performChangeRenderer, performSearch, performWizard 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getActionGroupName
public String getActionGroupName()
Description copied from interface:IActionthe group name of the action- Returns:
 - a group name.
 
 
- 
getModuleContext
public AbstractModuleContext getModuleContext(javax.servlet.http.HttpSession session, Module module) throws Exception
- Overrides:
 getModuleContextin classAbstractModuleAction- Throws:
 Exception
 
- 
getFolder
public static File getFolder(ContentContext ctx) throws FileNotFoundException, InstantiationException, IllegalAccessException, IOException, ModuleException
 
- 
prepare
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
Description copied from interface:IModuleActionmethod called before module rendering- Specified by:
 preparein interfaceIModuleAction- Overrides:
 preparein classAbstractModuleAction- Parameters:
 ctx- the current context.modulesContext- the context of the module. You can call getCurrentModule for recover the module.- Returns:
 - eventually the error message
 - Throws:
 Exception
 
- 
performBrowse
public String performBrowse(javax.servlet.http.HttpServletRequest request, Module currentModule)
 
- 
performUpdateBreadCrumb
public String performUpdateBreadCrumb(RequestService rs, ContentContext ctx, EditContext editContext, ModulesContext moduleContext, Module currentModule, FileModuleContext fileModuleContext) throws Exception
- Throws:
 Exception
 
- 
performUpdateFocus
public String performUpdateFocus(RequestService rs, ContentContext ctx, GlobalContext globalContext, FileModuleContext fileModuleContext, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
- Throws:
 Exception
 
- 
performUpdateMeta
public String performUpdateMeta(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, EditContext editContext, GlobalContext globalContext, FileModuleContext fileModuleContext, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
- Throws:
 Exception
 
- 
getROOTPath
public static String getROOTPath(ContentContext ctx)
 
- 
performClose
public static String performClose(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
 
- 
getURLPathPrefix
public static String getURLPathPrefix(ContentContext ctx)
get the prefix of url resource.- Parameters:
 ctx-- Returns:
 
 
- 
getPathPrefix
public static String getPathPrefix(ContentContext ctx)
get the prefix of path to browse resource.- Parameters:
 ctx-- Returns:
 
 
- 
getContextROOTFolder
public static String getContextROOTFolder(ContentContext ctx)
 
- 
performUpload
public static String performUpload(ContentContext ctx, RequestService rs) throws FileNotFoundException, InstantiationException, IllegalAccessException, IOException, ModuleException
 
- 
performDelete
public static String performDelete(GlobalContext globalContext, RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
 Exception
 
- 
performJpeg
public static String performJpeg(GlobalContext globalContext, RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
 Exception
 
- 
performOrder
public static String performOrder(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
 Exception
 
- 
performSynchro
public static String performSynchro(ContentContext ctx) throws Exception
- Throws:
 Exception
 
- 
performChangeLanguage
public static final String performChangeLanguage(RequestService requestService, ContentContext ctx, GlobalContext globalContext, I18nAccess i18nAccess, MessageRepository messageRepository) throws IOException
- Throws:
 IOException
 
- 
performPreviewedit
public static final String performPreviewedit(javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService rs, EditContext editCtx) throws Exception
- Throws:
 Exception
 
- 
performCreatefilestructure
public static String performCreatefilestructure(RequestService rs, ContentContext ctx, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
 IOException
 
- 
performModify
public static String performModify(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws FileNotFoundException, InstantiationException, IllegalAccessException, IOException, ModuleException
 
- 
performEditimage
public static String performEditimage(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
 Exception
 
 - 
 
 -