public class Edit extends AbstractModuleAction
Modifier and Type | Class and Description |
---|---|
static class |
Edit.ComponentWrapper |
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_RENDERER |
Constructor and Description |
---|
Edit() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPageSecurity(ContentContext ctx)
check is user have all right for modify the current page.
|
static boolean |
checkPageSecurity(ContentContext ctx,
MenuElement page)
check is user have all right for modify a specific page.
|
String |
getActionGroupName()
the group name of the action
|
AbstractModuleContext |
getModuleContext(javax.servlet.http.HttpSession session,
Module module) |
static String |
performAddPage(RequestService requestService,
ContentContext ctx,
I18nAccess i18nAccess,
ContentService content) |
static String |
performChangeArea(ContentContext ctx,
RequestService requestService,
EditContext editContext,
I18nAccess i18nAccess,
MessageRepository messageRepository) |
static String |
performChangeComponent(GlobalContext globalContext,
EditContext editCtx,
ContentContext ctx,
ComponentContext componentContext,
RequestService requestService,
I18nAccess i18nAccess,
Module currentModule,
ContentModuleContext modCtx) |
static String |
performChangeLanguage(RequestService requestService,
ContentContext ctx,
GlobalContext globalContext,
I18nAccess i18nAccess,
MessageRepository messageRepository) |
static String |
performChangeMode(javax.servlet.http.HttpSession session,
RequestService requestService,
ContentModuleContext modCtx) |
static String |
performClearClipboard(ClipBoard clipboard,
ContentContext ctx,
EditContext editCtx) |
static String |
performClosepopup(RequestService rs,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performConfirmReplace(RequestService rs,
ContentContext ctx,
GlobalContext globalContext,
EditContext editCtx,
javax.servlet.http.HttpSession session,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performCopy(RequestService rs,
ContentContext ctx,
EditContext editCtx,
ContentService content,
ClipBoard clipBoard,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performCopyPage(RequestService rs,
ContentContext ctx,
EditContext editCtx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performDelete(ContentContext ctx,
javax.servlet.http.HttpServletRequest request,
ContentService content,
EditContext editContext,
javax.servlet.http.HttpServletResponse response,
I18nAccess i18nAccess,
MessageRepository messageRepository) |
static String |
performDeletePage(GlobalContext globalContext,
ContentService content,
ContentContext ctx,
I18nAccess i18nAccess) |
static String |
performDisplayComponentsList(RequestService requestService,
UserInterfaceContext userInterfaceContext,
Module currentModule) |
static String |
performEditpreview(RequestService requestService,
ContentContext ctx,
ComponentContext componentContext,
EditContext editContext,
ContentService content,
ModulesContext moduleContext,
ContentModuleContext modCtx) |
static String |
performInsert(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestService rs,
ContentService contentService,
GlobalContext globalContext,
javax.servlet.http.HttpSession session,
EditContext editContext,
ContentContext ctx,
ContentService content,
Module currentModule,
I18nAccess i18nAccess,
MessageRepository messageRepository) |
static String |
performInsertPage(RequestService rs,
ContentContext ctx,
MessageRepository messageRepository,
ContentService content,
EditContext editContext,
PersistenceService persistenceService,
I18nAccess i18nAccess) |
static String |
performInsertShared(RequestService rs,
ContentContext ctx,
GlobalContext globalContext,
EditContext editContext,
ContentService content,
SharedContentService sharedContentService,
Module currentModule,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performMoveComponent(RequestService rs,
ContentContext ctx,
ContentService content,
ClipBoard clipboard,
Module currentModule,
PersistenceService persistenceService,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performMovePage(RequestService rs,
ContentContext ctx,
GlobalContext globalContext,
ContentService content,
I18nAccess i18nAccess,
MessageRepository messageRepository) |
static String |
performMovePageToTrash(RequestService rs,
ContentContext ctx,
ContentService content,
PersistenceService persistenceService,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performNeedValidation(ContentContext ctx,
MenuElement currentPage,
I18nAccess i18nAccess) |
static String |
performPageProperties(javax.servlet.ServletContext application,
GlobalContext globalContext,
ContentContext ctx,
javax.servlet.http.HttpSession session,
ContentService content,
EditContext editCtx,
RequestService requestService,
I18nAccess i18nAccess,
MessageRepository messageRepository) |
static String |
performPasteComp(RequestService rs,
ContentContext ctx,
ContentService content,
EditContext editContext,
ClipBoard clipboard,
Module currentModule,
PersistenceService persistenceService,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performPasteCompAsPage(RequestService rs,
ContentContext ctx,
ContentService content,
EditContext editContext,
ClipBoard clipboard,
Module currentModule,
PersistenceService persistenceService,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performPastePage(RequestService rs,
ContentContext ctx,
GlobalContext globalContext,
EditContext editCtx,
ContentService content,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performPreviewedit(javax.servlet.http.HttpServletRequest request,
RequestService rs,
EditContext editCtx) |
static String |
performPublish(javax.servlet.ServletContext application,
javax.servlet.http.HttpServletRequest request,
StaticConfig staticConfig,
GlobalContext globalContext,
ContentService content,
ContentContext ctx,
I18nAccess i18nAccess) |
static String |
performRefresh(ContentContext ctx) |
static String |
performSave(ContentContext ctx,
EditContext editContext,
GlobalContext globalContext,
ContentService content,
ComponentContext componentContext,
RequestService requestService,
I18nAccess i18nAccess,
MessageRepository messageRepository,
Module currentModule,
AdminUserFactory adminUserFactory) |
String |
performSearch(ContentContext ctx,
ModulesContext moduleContext,
String query)
method called when a seach in lauched from search form.
|
static String |
performUpload(ContentContext ctx,
EditContext editContext,
GlobalContext globalContext,
ContentService content,
ComponentContext componentContext,
RequestService requestService,
I18nAccess i18nAccess,
MessageRepository messageRepository,
Module currentModule,
AdminUserFactory adminUserFactory) |
static String |
performValidate(ContentContext ctx,
MenuElement currentPage) |
String |
prepare(ContentContext ctx,
ModulesContext modulesContext)
method called before module rendering
|
static void |
updatePreviewCommands(ContentContext ctx,
String tab)
update previous command zone.
|
static String |
validNodeName(String name,
I18nAccess i18nAccess)
verify the validity of a page name.
|
haveRight, haveRight, isLightInterface, performChangeRenderer, performWizard
public static String CONTENT_RENDERER
public static void updatePreviewCommands(ContentContext ctx, String tab) throws Exception
ctx
- currentModule
- newId
- the id of the componentpreviousId
- the id, null for update and previous component for insert.Exception
public AbstractModuleContext getModuleContext(javax.servlet.http.HttpSession session, Module module) throws Exception
getModuleContext
in class AbstractModuleAction
Exception
public String getActionGroupName()
IAction
public static String validNodeName(String name, I18nAccess i18nAccess)
name
- i18nAccess
- public static boolean checkPageSecurity(ContentContext ctx) throws Exception
ctx
- the contentcontextException
public static boolean checkPageSecurity(ContentContext ctx, MenuElement page) throws Exception
ctx
- page
- Exception
public String prepare(ContentContext ctx, ModulesContext modulesContext) throws Exception
IModuleAction
prepare
in interface IModuleAction
prepare
in class AbstractModuleAction
ctx
- the current context.modulesContext
- the context of the module. You can call getCurrentModule for recover the module.Exception
public String performSearch(ContentContext ctx, ModulesContext moduleContext, String query) throws Exception
IModuleAction
performSearch
in interface IModuleAction
performSearch
in class AbstractModuleAction
query
- the text entered in the search input field.Exception
public static final String performChangeComponent(GlobalContext globalContext, EditContext editCtx, ContentContext ctx, ComponentContext componentContext, RequestService requestService, I18nAccess i18nAccess, Module currentModule, ContentModuleContext modCtx) throws Exception
Exception
public static final String performInsert(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestService rs, ContentService contentService, GlobalContext globalContext, javax.servlet.http.HttpSession session, EditContext editContext, ContentContext ctx, ContentService content, Module currentModule, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
Exception
public static final String performDelete(ContentContext ctx, javax.servlet.http.HttpServletRequest request, ContentService content, EditContext editContext, javax.servlet.http.HttpServletResponse response, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
Exception
public static final String performSave(ContentContext ctx, EditContext editContext, GlobalContext globalContext, ContentService content, ComponentContext componentContext, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository, Module currentModule, AdminUserFactory adminUserFactory) throws Exception
Exception
public static final String performUpload(ContentContext ctx, EditContext editContext, GlobalContext globalContext, ContentService content, ComponentContext componentContext, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository, Module currentModule, AdminUserFactory adminUserFactory) throws Exception
Exception
public static final String performChangeMode(javax.servlet.http.HttpSession session, RequestService requestService, ContentModuleContext modCtx)
public static final String performPageProperties(javax.servlet.ServletContext application, GlobalContext globalContext, ContentContext ctx, javax.servlet.http.HttpSession session, ContentService content, EditContext editCtx, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
Exception
public static final String performChangeLanguage(RequestService requestService, ContentContext ctx, GlobalContext globalContext, I18nAccess i18nAccess, MessageRepository messageRepository) throws IOException
IOException
public static String performAddPage(RequestService requestService, ContentContext ctx, I18nAccess i18nAccess, ContentService content) throws Exception
Exception
public static final String performChangeArea(ContentContext ctx, RequestService requestService, EditContext editContext, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
Exception
public static String performNeedValidation(ContentContext ctx, MenuElement currentPage, I18nAccess i18nAccess) throws Exception
Exception
public static String performValidate(ContentContext ctx, MenuElement currentPage) throws Exception
Exception
public static String performPublish(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, StaticConfig staticConfig, GlobalContext globalContext, ContentService content, ContentContext ctx, I18nAccess i18nAccess) throws Exception
Exception
public static String performDeletePage(GlobalContext globalContext, ContentService content, ContentContext ctx, I18nAccess i18nAccess) throws Exception
Exception
public static String performMovePageToTrash(RequestService rs, ContentContext ctx, ContentService content, PersistenceService persistenceService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static final String performPreviewedit(javax.servlet.http.HttpServletRequest request, RequestService rs, EditContext editCtx)
public static String performEditpreview(RequestService requestService, ContentContext ctx, ComponentContext componentContext, EditContext editContext, ContentService content, ModulesContext moduleContext, ContentModuleContext modCtx) throws Exception
Exception
public static String performDisplayComponentsList(RequestService requestService, UserInterfaceContext userInterfaceContext, Module currentModule) throws ContextException
ContextException
public static String performMovePage(RequestService rs, ContentContext ctx, GlobalContext globalContext, ContentService content, I18nAccess i18nAccess, MessageRepository messageRepository) throws Exception
Exception
public static String performCopyPage(RequestService rs, ContentContext ctx, EditContext editCtx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performPastePage(RequestService rs, ContentContext ctx, GlobalContext globalContext, EditContext editCtx, ContentService content, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performCopy(RequestService rs, ContentContext ctx, EditContext editCtx, ContentService content, ClipBoard clipBoard, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performPasteComp(RequestService rs, ContentContext ctx, ContentService content, EditContext editContext, ClipBoard clipboard, Module currentModule, PersistenceService persistenceService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performPasteCompAsPage(RequestService rs, ContentContext ctx, ContentService content, EditContext editContext, ClipBoard clipboard, Module currentModule, PersistenceService persistenceService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performMoveComponent(RequestService rs, ContentContext ctx, ContentService content, ClipBoard clipboard, Module currentModule, PersistenceService persistenceService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performClearClipboard(ClipBoard clipboard, ContentContext ctx, EditContext editCtx) throws Exception
Exception
public static String performInsertPage(RequestService rs, ContentContext ctx, MessageRepository messageRepository, ContentService content, EditContext editContext, PersistenceService persistenceService, I18nAccess i18nAccess) throws Exception
Exception
public static String performConfirmReplace(RequestService rs, ContentContext ctx, GlobalContext globalContext, EditContext editCtx, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
IOException
public static String performInsertShared(RequestService rs, ContentContext ctx, GlobalContext globalContext, EditContext editContext, ContentService content, SharedContentService sharedContentService, Module currentModule, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performClosepopup(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
public static String performRefresh(ContentContext ctx) throws Exception
Exception
Copyright © 2012-2018. All Rights Reserved.