public class AdminAction extends AbstractModuleAction
Modifier and Type | Class and Description |
---|---|
static class |
AdminAction.ComponentBean |
static class |
AdminAction.GlobalContextBean |
Constructor and Description |
---|
AdminAction() |
Modifier and Type | Method and Description |
---|---|
static void |
checkRight(ContentContext ctx,
GlobalContext globalContext) |
static String |
clearCache(ContentContext ctx) |
static void |
editGlobalContext(ContentContext ctx,
Module currentModule,
GlobalContext globalContext) |
String |
getActionGroupName()
the group name of the action
|
boolean |
haveRight(ContentContext ctx,
String action) |
Boolean |
haveRight(javax.servlet.http.HttpSession session,
User user)
check if a specific user can use the module.
|
static String |
performBlockEdit(RequestService rs,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performBlockView(RequestService rs,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performChangeSite(javax.servlet.http.HttpServletRequest request,
RequestService requestService,
ContentContext ctx,
Module currentModule) |
static String |
performClearCache(javax.servlet.http.HttpServletRequest request,
GlobalContext globalContext,
javax.servlet.http.HttpSession session,
User user,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performClearimagecache(javax.servlet.http.HttpServletRequest request,
GlobalContext globalContext,
javax.servlet.http.HttpSession session,
User user,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess,
FileCache fileCache) |
static String |
performComponentsDefault(RequestService rs,
ContentContext ctx,
javax.servlet.http.HttpSession session,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performComponentsForAll(RequestService rs,
javax.servlet.http.HttpSession session,
AdminUserSecurity adminUserSecurity,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performComponentsSelect(javax.servlet.http.HttpServletRequest request,
ContentContext ctx,
User user,
RequestService requestService,
MessageRepository messageRepository,
I18nAccess i18nAccess,
Module currentModule) |
static String |
performCreateSite(RequestService rs,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess,
Module currentModule,
User user) |
static String |
performEditStaticConfig(javax.servlet.http.HttpServletRequest request,
RequestService requestService,
ContentContext ctx,
Module currentModule,
StaticConfig staticConfig) |
static String |
performModulesSelect(javax.servlet.http.HttpServletRequest request,
ContentContext ctx,
RequestService requestService,
MessageRepository messageRepository,
I18nAccess i18nAccess,
Module currentModule,
ModulesContext moduleContext) |
static String |
performPreviewEditComponent(javax.servlet.http.HttpServletRequest request,
RequestService requestService,
ContentContext ctx,
Module currentModule) |
static String |
performReleaseContent(javax.servlet.http.HttpServletRequest request,
ContentContext ctx,
RequestService requestService,
GlobalContext globalContext,
EditContext editCtx,
MessageRepository messageRepository,
I18nAccess i18nAccess,
AdminUserSecurity security) |
static String |
performRemovelogo(RequestService rs,
javax.servlet.http.HttpSession session,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performRemoveSite(RequestService rs,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performSelectTemplate(ContentContext ctx,
RequestService requestService,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performUnlinkTemplate(ContentContext ctx,
RequestService requestService,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
static String |
performUpdateGlobalContext(RequestService requestService,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess,
Module currentModule) |
static String |
performUpdateGlobalContextLight(RequestService requestService,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess,
Module currentModule,
User user) |
static String |
performUpdateStaticConfig(RequestService requestService,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
ContentContext ctx,
AdminUserFactory adminUserFactory,
MessageRepository messageRepository,
I18nAccess i18nAccess,
Module currentModule,
StaticConfig staticConfig) |
static String |
performUpload(RequestService rs,
javax.servlet.http.HttpSession session,
ContentContext ctx,
MessageRepository messageRepository,
I18nAccess i18nAccess) |
String |
prepare(ContentContext ctx,
ModulesContext moduleContext)
method called before module rendering
|
static boolean |
updateGraphicCharter(ContentContext ctx,
GlobalContext currentGlobalContext) |
getModuleContext, isLightInterface, performChangeRenderer, performSearch, performWizard
public static final String LOGO_PATH
public String getActionGroupName()
IAction
public String prepare(ContentContext ctx, ModulesContext moduleContext) throws Exception
IModuleAction
prepare
in interface IModuleAction
prepare
in class AbstractModuleAction
ctx
- the current context.moduleContext
- the context of the module. You can call getCurrentModule for recover the module.Exception
public static final void editGlobalContext(ContentContext ctx, Module currentModule, GlobalContext globalContext) throws FileNotFoundException, IOException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public static final String performChangeSite(javax.servlet.http.HttpServletRequest request, RequestService requestService, ContentContext ctx, Module currentModule) throws FileNotFoundException, IOException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public static final String performPreviewEditComponent(javax.servlet.http.HttpServletRequest request, RequestService requestService, ContentContext ctx, Module currentModule) throws FileNotFoundException, IOException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
IModuleAction
haveRight
in interface IModuleAction
haveRight
in class AbstractModuleAction
ModuleException
public static void checkRight(ContentContext ctx, GlobalContext globalContext) throws JavloSecurityException
JavloSecurityException
public static String performUpdateGlobalContextLight(RequestService requestService, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule, User user) throws Exception
Exception
public static String performUpdateGlobalContext(RequestService requestService, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule) throws Exception
Exception
public static boolean updateGraphicCharter(ContentContext ctx, GlobalContext currentGlobalContext) throws IOException
IOException
public static final String performReleaseContent(javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, GlobalContext globalContext, EditContext editCtx, MessageRepository messageRepository, I18nAccess i18nAccess, AdminUserSecurity security) throws Exception
Exception
public static final String performComponentsSelect(javax.servlet.http.HttpServletRequest request, ContentContext ctx, User user, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule) throws Exception
Exception
public static final String performModulesSelect(javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule, ModulesContext moduleContext) throws Exception
Exception
public static final String performClearCache(javax.servlet.http.HttpServletRequest request, GlobalContext globalContext, javax.servlet.http.HttpSession session, User user, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static final String clearCache(ContentContext ctx) throws Exception
Exception
public static String performClearimagecache(javax.servlet.http.HttpServletRequest request, GlobalContext globalContext, javax.servlet.http.HttpSession session, User user, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess, FileCache fileCache)
public static final String performSelectTemplate(ContentContext ctx, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static final String performUnlinkTemplate(ContentContext ctx, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
Exception
public static String performCreateSite(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule, User user) throws IOException, JavloSecurityException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public static String performRemoveSite(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
IOException
public static String performBlockView(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
IOException
public static String performBlockEdit(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
IOException
public static final String performEditStaticConfig(javax.servlet.http.HttpServletRequest request, RequestService requestService, ContentContext ctx, Module currentModule, StaticConfig staticConfig) throws FileNotFoundException, IOException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public static String performUpdateStaticConfig(RequestService requestService, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, ContentContext ctx, AdminUserFactory adminUserFactory, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule, StaticConfig staticConfig) throws Exception
Exception
public static String performComponentsDefault(RequestService rs, ContentContext ctx, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
IOException
public static String performComponentsForAll(RequestService rs, javax.servlet.http.HttpSession session, AdminUserSecurity adminUserSecurity, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
public static String performRemovelogo(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
IOException
public static String performUpload(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
IOException
public boolean haveRight(ContentContext ctx, String action)
haveRight
in interface IAction
haveRight
in class AbstractModuleAction
Copyright © 2012-2018. All Rights Reserved.