Class BaseProcessActionHandler

    • Constructor Detail

      • BaseProcessActionHandler

        public BaseProcessActionHandler()
    • Method Detail

      • execute

        protected final org.codehaus.jettison.json.JSONObject execute​(Map<String,​Object> parameters,
                                                                      String content)
        Description copied from class: BaseActionHandler
        Needs to be implemented by a subclass.
        Specified by:
        execute in class BaseActionHandler
        Parameters:
        parameters - the parameters obtained from the request. Note that the request object and the session object are also present in this map, resp. as the constants KernelConstants.HTTP_REQUEST and KernelConstants.HTTP_SESSION.
        content - the request content (if any)
        Returns:
        the return should be a JSONObject, this is passed back to the caller on the client.
      • hasAccess

        public static boolean hasAccess​(Process processDefinition,
                                        Map<String,​Object> parameters)
        Permissions to processes can be given in 2 ways:

        Explicit grant to process definition access:

        • whenever the process is directly executed from menu
        • in case the process is marked as "Requires Explicit Access Permission"
        • in case there is a "Secured Process" preference for current window

        Inherited from window access in case it is invoked from a window button and none of the previous conditions is satisfied.

      • doExecute

        protected abstract org.codehaus.jettison.json.JSONObject doExecute​(Map<String,​Object> parameters,
                                                                           String content)