Package org.javlo.module.admin
Class AdminAction
- java.lang.Object
-
- org.javlo.actions.AbstractModuleAction
-
- org.javlo.module.admin.AdminAction
-
- All Implemented Interfaces:
IAction
,IModuleAction
public class AdminAction extends AbstractModuleAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdminAction.ComponentBean
-
Constructor Summary
Constructors Constructor Description AdminAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 actionBoolean
haveRight(javax.servlet.http.HttpSession session, User user)
check if a specific user can use the module.boolean
haveRight(ContentContext ctx, String action)
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 renderingstatic boolean
updateGraphicCharter(ContentContext ctx, GlobalContext currentGlobalContext)
-
Methods inherited from class org.javlo.actions.AbstractModuleAction
getModuleContext, isLightInterface, performChangeRenderer, performSearch, performWizard
-
-
-
-
Field Detail
-
LOGO_PATH
public static final String LOGO_PATH
- See Also:
- Constant Field Values
-
-
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 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
-
editGlobalContext
public static final void editGlobalContext(ContentContext ctx, Module currentModule, GlobalContext globalContext) throws FileNotFoundException, IOException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
-
performChangeSite
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
-
performPreviewEditComponent
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
-
haveRight
public Boolean haveRight(javax.servlet.http.HttpSession session, User user) throws ModuleException
Description copied from interface:IModuleAction
check if a specific user can use the module.- Specified by:
haveRight
in interfaceIModuleAction
- Overrides:
haveRight
in classAbstractModuleAction
- Returns:
- true if access, false if no access and null if this method can't determine access. If access is not determined by the action javlo will take the user group in config.properties.
- Throws:
ModuleException
-
checkRight
public static void checkRight(ContentContext ctx, GlobalContext globalContext) throws JavloSecurityException
- Throws:
JavloSecurityException
-
performUpdateGlobalContextLight
public static String performUpdateGlobalContextLight(RequestService requestService, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule, User user) throws Exception
- Throws:
Exception
-
performUpdateGlobalContext
public static String performUpdateGlobalContext(RequestService requestService, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule) throws Exception
- Throws:
Exception
-
updateGraphicCharter
public static boolean updateGraphicCharter(ContentContext ctx, GlobalContext currentGlobalContext) throws IOException
- Throws:
IOException
-
performReleaseContent
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
- Throws:
Exception
-
performComponentsSelect
public static final String performComponentsSelect(javax.servlet.http.HttpServletRequest request, ContentContext ctx, User user, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule) throws Exception
- Throws:
Exception
-
performModulesSelect
public static final String performModulesSelect(javax.servlet.http.HttpServletRequest request, ContentContext ctx, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess, Module currentModule, ModulesContext moduleContext) throws Exception
- Throws:
Exception
-
performClearCache
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
- Throws:
Exception
-
clearCache
public static final String clearCache(ContentContext ctx) throws Exception
- Throws:
Exception
-
performClearimagecache
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)
- Parameters:
request
-globalContext
-session
-user
-ctx
-messageRepository
-i18nAccess
-fileCache
-- Returns:
-
performSelectTemplate
public static final String performSelectTemplate(ContentContext ctx, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performUnlinkTemplate
public static final String performUnlinkTemplate(ContentContext ctx, RequestService requestService, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performCreateSite
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
-
performRemoveSite
public static String performRemoveSite(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
performBlockView
public static String performBlockView(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
performBlockEdit
public static String performBlockEdit(RequestService rs, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
performEditStaticConfig
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
-
performUpdateStaticConfig
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
- Throws:
Exception
-
performComponentsDefault
public static String performComponentsDefault(RequestService rs, ContentContext ctx, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
performComponentsForAll
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
-
performRemovelogo
public static String performRemovelogo(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
performUpload
public static String performUpload(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
haveRight
public boolean haveRight(ContentContext ctx, String action)
- Specified by:
haveRight
in interfaceIAction
- Overrides:
haveRight
in classAbstractModuleAction
-
-