Package org.javlo.module.persistence
Class Persistence
- java.lang.Object
-
- org.javlo.actions.AbstractModuleAction
-
- org.javlo.module.persistence.Persistence
-
- All Implemented Interfaces:
IAction
,IModuleAction
public class Persistence extends AbstractModuleAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Persistence.ExportBean
-
Constructor Summary
Constructors Constructor Description Persistence()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionGroupName()
the group name of the actionstatic void
main(String[] args)
static String
performImportpage(RequestService requestService, ContentContext ctx, javax.servlet.http.HttpServletRequest request, MenuElement currentPage, I18nAccess i18nAccess)
static String
performRestore(RequestService rs, ContentContext ctx, ContentService content, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performUpload(RequestService requestService, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ContentContext ctx, ContentService content, I18nAccess i18nAccess)
String
prepare(ContentContext ctx, ModulesContext modulesContext)
method called before module rendering-
Methods inherited from class org.javlo.actions.AbstractModuleAction
getModuleContext, haveRight, haveRight, isLightInterface, performChangeRenderer, performSearch, performWizard
-
-
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IAction
the group name of the action- Returns:
- a group name.
-
prepare
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
Description copied from interface:IModuleAction
method called before module rendering- Specified by:
prepare
in interfaceIModuleAction
- Overrides:
prepare
in 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
-
performUpload
public static String performUpload(RequestService requestService, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ContentContext ctx, ContentService content, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performImportpage
public static String performImportpage(RequestService requestService, ContentContext ctx, javax.servlet.http.HttpServletRequest request, MenuElement currentPage, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performRestore
public static String performRestore(RequestService rs, ContentContext ctx, ContentService content, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-