Package org.javlo.module.template
Class TemplateAction
- java.lang.Object
-
- org.javlo.actions.AbstractModuleAction
-
- org.javlo.module.template.TemplateAction
-
- All Implemented Interfaces:
IAction
,IModuleAction
public class TemplateAction extends AbstractModuleAction
-
-
Constructor Summary
Constructors Constructor Description TemplateAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionGroupName()
the group name of the actionstatic String
getContextROOTFolder(ContentContext ctx)
static String
getPreviewImageURL(ContentContext ctx, String filter, String area)
static String
performChangeFromPreview(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, Module currentModule, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performChangeRenderer(javax.servlet.http.HttpSession session, RequestService requestService, GlobalContext globalContext, Module currentModule, I18nAccess i18nAccess)
String
performCommit(RequestService requestService, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performCommitChildren(RequestService requestService, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performDelete(RequestService requestService, javax.servlet.http.HttpSession session, ContentContext ctx)
String
performDeleteArea(javax.servlet.ServletContext application, RequestService requestService)
static String
performEditCSS(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performEditHTML(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performEditTemplate(javax.servlet.ServletContext application, StaticConfig staticConfig, ContentContext ctx, RequestService requestService, Module module, I18nAccess i18nAccess, MessageRepository messageRepository)
String
performGoEditTemplate(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, Module module, I18nAccess i18nAccess)
String
performImport(RequestService requestService, javax.servlet.http.HttpSession session, ContentContext ctx, GlobalContext globalContext, Module currentModule, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performSelectTemplate(RequestService rs, ContentContext ctx, EditContext editContext, MenuElement currentPage, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performUpdateFilter(RequestService rs, javax.servlet.ServletContext application, GlobalContext globalContext, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performUpload(ContentContext ctx, RequestService rs, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performValidate(RequestService requestService, javax.servlet.http.HttpSession session, ContentContext ctx)
String
prepare(ContentContext ctx, ModulesContext moduleContext)
method called before module renderingstatic Collection<PageTemplateRef>
searchPageTemplate(ContentContext ctx, String templateName)
String
selectTemplateForEdit(ContentContext ctx, String id)
-
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.
-
getPreviewImageURL
public static String getPreviewImageURL(ContentContext ctx, String filter, String area)
-
prepare
public String prepare(ContentContext ctx, ModulesContext moduleContext) 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.moduleContext
- the context of the module. You can call getCurrentModule for recover the module.- Returns:
- eventually the error message
- Throws:
Exception
-
selectTemplateForEdit
public String selectTemplateForEdit(ContentContext ctx, String id) throws Exception
- Throws:
Exception
-
performGoEditTemplate
public String performGoEditTemplate(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, Module module, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performEditTemplate
public String performEditTemplate(javax.servlet.ServletContext application, StaticConfig staticConfig, ContentContext ctx, RequestService requestService, Module module, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
- Throws:
Exception
-
performChangeRenderer
public String performChangeRenderer(javax.servlet.http.HttpSession session, RequestService requestService, GlobalContext globalContext, Module currentModule, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performDeleteArea
public String performDeleteArea(javax.servlet.ServletContext application, RequestService requestService) throws Exception
- Throws:
Exception
-
performImport
public String performImport(RequestService requestService, javax.servlet.http.HttpSession session, ContentContext ctx, GlobalContext globalContext, Module currentModule, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performValidate
public String performValidate(RequestService requestService, javax.servlet.http.HttpSession session, ContentContext ctx) throws Exception
- Throws:
Exception
-
performDelete
public String performDelete(RequestService requestService, javax.servlet.http.HttpSession session, ContentContext ctx) throws Exception
- Throws:
Exception
-
performCommit
public String performCommit(RequestService requestService, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performCommitChildren
public String performCommitChildren(RequestService requestService, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performChangeFromPreview
public static String performChangeFromPreview(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, Module currentModule, MessageRepository messageRepository, I18nAccess i18nAccess) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
performSelectTemplate
public static String performSelectTemplate(RequestService rs, ContentContext ctx, EditContext editContext, MenuElement currentPage, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performUpdateFilter
public static String performUpdateFilter(RequestService rs, javax.servlet.ServletContext application, GlobalContext globalContext, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performEditHTML
public static String performEditHTML(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performEditCSS
public static String performEditCSS(RequestService rs, javax.servlet.ServletContext application, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
getContextROOTFolder
public static String getContextROOTFolder(ContentContext ctx)
-
performUpload
public static String performUpload(ContentContext ctx, RequestService rs, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
searchPageTemplate
public static Collection<PageTemplateRef> searchPageTemplate(ContentContext ctx, String templateName) throws Exception
- Throws:
Exception
-
-