Package org.javlo.module.components
Class ComponentsAction
- java.lang.Object
-
- org.javlo.module.components.ComponentsAction
-
- All Implemented Interfaces:
IAction
,IModuleAction
public class ComponentsAction extends Object implements IModuleAction
-
-
Constructor Summary
Constructors Constructor Description ComponentsAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkAccess(ContentContext ctx)
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)
String
performAddcomponent(ContentContext ctx, ModulesContext modulesContext, RequestService rs)
String
performCreatefile(ContentContext ctx, ModulesContext modulesContext, RequestService rs)
String
performDeletefile(ContentContext ctx, ModulesContext modulesContext, RequestService rs)
String
performSearch(ContentContext ctx, ModulesContext modulesContext, String query)
method called when a seach in lauched from search form.String
performUpdate(ContentContext ctx, ModulesContext modulesContext, RequestService rs)
String
prepare(ContentContext ctx, ModulesContext moduleContext)
method called before module rendering
-
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IAction
the group name of the action- Specified by:
getActionGroupName
in interfaceIAction
- Returns:
- a group name.
-
haveRight
public boolean haveRight(ContentContext ctx, String action)
-
checkAccess
public static void checkAccess(ContentContext ctx) throws SecurityException
- Throws:
SecurityException
-
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
- 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
-
performSearch
public String performSearch(ContentContext ctx, ModulesContext modulesContext, String query) throws Exception
Description copied from interface:IModuleAction
method called when a seach in lauched from search form.- Specified by:
performSearch
in interfaceIModuleAction
query
- the text entered in the search input field.- Returns:
- eventually the error message
- Throws:
Exception
-
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
- 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
-
performAddcomponent
public String performAddcomponent(ContentContext ctx, ModulesContext modulesContext, RequestService rs) throws Exception
- Throws:
Exception
-
performCreatefile
public String performCreatefile(ContentContext ctx, ModulesContext modulesContext, RequestService rs) throws Exception
- Throws:
Exception
-
performDeletefile
public String performDeletefile(ContentContext ctx, ModulesContext modulesContext, RequestService rs) throws Exception
- Throws:
Exception
-
performUpdate
public String performUpdate(ContentContext ctx, ModulesContext modulesContext, RequestService rs) throws Exception
- Throws:
Exception
-
-