Interface IModuleAction

    • Method Detail

      • prepare

        String prepare​(ContentContext ctx,
                       ModulesContext moduleContext)
                throws Exception
        method called before module rendering
        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

        String performSearch​(ContentContext ctx,
                             ModulesContext modulesContext,
                             String query)
                      throws Exception
        method called when a seach in lauched from search form.
        Parameters:
        ctx -
        moduleContext - the context of the module. You can call getCurrentModule for recover the module.
        query - the text entered in the search input field.
        Returns:
        eventually the error message
        Throws:
        Exception
      • haveRight

        Boolean haveRight​(javax.servlet.http.HttpSession session,
                          User user)
                   throws ModuleException
        check if a specific user can use the module.
        Parameters:
        user -
        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