Class QueryBuilderChange


  • public class QueryBuilderChange
    extends org.apache.struts.actions.DispatchAction
    Action to handle links on main query builder tile.
    Author:
    Mark Woodbridge, Thomas Riley
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.log4j.Logger LOG  
      • Fields inherited from class org.apache.struts.actions.DispatchAction

        clazz, log, methods, types
      • Fields inherited from class org.apache.struts.actions.BaseAction

        messages
      • Fields inherited from class org.apache.struts.action.Action

        servlet
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.struts.action.ActionForward addToView​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Add a path to the results view.
      org.apache.struts.action.ActionForward ajaxCollapse​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX request - collapse a model browser node.
      org.apache.struts.action.ActionForward ajaxEditConstraint​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX request - edit an existing constraint.
      org.apache.struts.action.ActionForward ajaxEditJoinStyle​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Edit a constraint's join style settings for a path, and forward to queryBuilderConstraint, for use by ajax.
      org.apache.struts.action.ActionForward ajaxEditTemplateConstraint​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX request - edit a template constraint.
      org.apache.struts.action.ActionForward ajaxExpand​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX request - expand a model browser node.
      org.apache.struts.action.ActionForward ajaxNewConstraint​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX request - ahow the panel for adding a new constraint to the query.
      org.apache.struts.action.ActionForward ajaxRenderPaths​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX request - render query paths.
      org.apache.struts.action.ActionForward changePath​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Change the currently active metadata Node
      org.apache.struts.action.ActionForward editConstraint​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Edit a constraint on the query identified by the constraint code.
      org.apache.struts.action.ActionForward editJoinStyle​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Edit a the join style settings for a path.
      org.apache.struts.action.ActionForward editTemplateConstraint​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Edit a constraint's template settings identified by code in query.
      org.apache.struts.action.ActionForward newConstraint​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Add a new constraint to the query.
      org.apache.struts.action.ActionForward removeConstraint​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Remove a constraint identified by its code from the query.
      org.apache.struts.action.ActionForward removeNode​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Remove everything in a query under a given path.
      org.apache.struts.action.ActionForward removeSubclass​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Remove a subclass constraint from the query.
      org.apache.struts.action.ActionForward startTemplateBuild​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Put query builder in template building mode.
      org.apache.struts.action.ActionForward stopTemplateBuild​(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Bring the query builder out of template building mode and discard any unfinished template building.
      • Methods inherited from class org.apache.struts.actions.DispatchAction

        cancelled, dispatchMethod, execute, getMethod, getMethodName, getParameter, unspecified
      • Methods inherited from class org.apache.struts.action.Action

        addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        protected static final org.apache.log4j.Logger LOG
    • Constructor Detail

      • QueryBuilderChange

        public QueryBuilderChange()
    • Method Detail

      • removeNode

        public org.apache.struts.action.ActionForward removeNode​(org.apache.struts.action.ActionMapping mapping,
                                                                 org.apache.struts.action.ActionForm form,
                                                                 javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response)
                                                          throws java.lang.Exception
        Remove everything in a query under a given path.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • newConstraint

        public org.apache.struts.action.ActionForward newConstraint​(org.apache.struts.action.ActionMapping mapping,
                                                                    org.apache.struts.action.ActionForm form,
                                                                    javax.servlet.http.HttpServletRequest request,
                                                                    javax.servlet.http.HttpServletResponse response)
                                                             throws java.lang.Exception
        Add a new constraint to the query.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • removeConstraint

        public org.apache.struts.action.ActionForward removeConstraint​(org.apache.struts.action.ActionMapping mapping,
                                                                       org.apache.struts.action.ActionForm form,
                                                                       javax.servlet.http.HttpServletRequest request,
                                                                       javax.servlet.http.HttpServletResponse response)
                                                                throws java.lang.Exception
        Remove a constraint identified by its code from the query.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • removeSubclass

        public org.apache.struts.action.ActionForward removeSubclass​(org.apache.struts.action.ActionMapping mapping,
                                                                     org.apache.struts.action.ActionForm form,
                                                                     javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpServletResponse response)
                                                              throws java.lang.Exception
        Remove a subclass constraint from the query.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - the optional ActionForm bean for this request
        request - the HTTP request we are processing
        response - the HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if something goes wrong
      • editConstraint

        public org.apache.struts.action.ActionForward editConstraint​(org.apache.struts.action.ActionMapping mapping,
                                                                     org.apache.struts.action.ActionForm form,
                                                                     javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpServletResponse response)
                                                              throws java.lang.Exception
        Edit a constraint on the query identified by the constraint code.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • editTemplateConstraint

        public org.apache.struts.action.ActionForward editTemplateConstraint​(org.apache.struts.action.ActionMapping mapping,
                                                                             org.apache.struts.action.ActionForm form,
                                                                             javax.servlet.http.HttpServletRequest request,
                                                                             javax.servlet.http.HttpServletResponse response)
                                                                      throws java.lang.Exception
        Edit a constraint's template settings identified by code in query.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • editJoinStyle

        public org.apache.struts.action.ActionForward editJoinStyle​(org.apache.struts.action.ActionMapping mapping,
                                                                    org.apache.struts.action.ActionForm form,
                                                                    javax.servlet.http.HttpServletRequest request,
                                                                    javax.servlet.http.HttpServletResponse response)
                                                             throws java.lang.Exception
        Edit a the join style settings for a path.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • changePath

        public org.apache.struts.action.ActionForward changePath​(org.apache.struts.action.ActionMapping mapping,
                                                                 org.apache.struts.action.ActionForm form,
                                                                 javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response)
                                                          throws java.lang.Exception
        Change the currently active metadata Node
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • startTemplateBuild

        public org.apache.struts.action.ActionForward startTemplateBuild​(org.apache.struts.action.ActionMapping mapping,
                                                                         org.apache.struts.action.ActionForm form,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
                                                                  throws java.lang.Exception
        Put query builder in template building mode.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • stopTemplateBuild

        public org.apache.struts.action.ActionForward stopTemplateBuild​(org.apache.struts.action.ActionMapping mapping,
                                                                        org.apache.struts.action.ActionForm form,
                                                                        javax.servlet.http.HttpServletRequest request,
                                                                        javax.servlet.http.HttpServletResponse response)
                                                                 throws java.lang.Exception
        Bring the query builder out of template building mode and discard any unfinished template building.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • addToView

        public org.apache.struts.action.ActionForward addToView​(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
                                                         throws java.lang.Exception
        Add a path to the results view.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • ajaxExpand

        public org.apache.struts.action.ActionForward ajaxExpand​(org.apache.struts.action.ActionMapping mapping,
                                                                 org.apache.struts.action.ActionForm form,
                                                                 javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response)
                                                          throws java.lang.Exception
        AJAX request - expand a model browser node.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • ajaxCollapse

        public org.apache.struts.action.ActionForward ajaxCollapse​(org.apache.struts.action.ActionMapping mapping,
                                                                   org.apache.struts.action.ActionForm form,
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
                                                            throws java.lang.Exception
        AJAX request - collapse a model browser node.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • ajaxNewConstraint

        public org.apache.struts.action.ActionForward ajaxNewConstraint​(org.apache.struts.action.ActionMapping mapping,
                                                                        org.apache.struts.action.ActionForm form,
                                                                        javax.servlet.http.HttpServletRequest request,
                                                                        javax.servlet.http.HttpServletResponse response)
                                                                 throws java.lang.Exception
        AJAX request - ahow the panel for adding a new constraint to the query.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • ajaxEditConstraint

        public org.apache.struts.action.ActionForward ajaxEditConstraint​(org.apache.struts.action.ActionMapping mapping,
                                                                         org.apache.struts.action.ActionForm form,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
                                                                  throws java.lang.Exception
        AJAX request - edit an existing constraint.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • ajaxEditTemplateConstraint

        public org.apache.struts.action.ActionForward ajaxEditTemplateConstraint​(org.apache.struts.action.ActionMapping mapping,
                                                                                 org.apache.struts.action.ActionForm form,
                                                                                 javax.servlet.http.HttpServletRequest request,
                                                                                 javax.servlet.http.HttpServletResponse response)
                                                                          throws java.lang.Exception
        AJAX request - edit a template constraint.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • ajaxRenderPaths

        public org.apache.struts.action.ActionForward ajaxRenderPaths​(org.apache.struts.action.ActionMapping mapping,
                                                                      org.apache.struts.action.ActionForm form,
                                                                      javax.servlet.http.HttpServletRequest request,
                                                                      javax.servlet.http.HttpServletResponse response)
                                                               throws java.lang.Exception
        AJAX request - render query paths.
        Parameters:
        mapping - The ActionMapping used to select this instance
        form - The optional ActionForm bean for this request (if any)
        request - The HTTP request we are processing
        response - The HTTP response we are creating
        Returns:
        an ActionForward object defining where control goes next
        Throws:
        java.lang.Exception - if the application business logic throws
      • ajaxEditJoinStyle

        public org.apache.struts.action.ActionForward ajaxEditJoinStyle​(org.apache.struts.action.ActionMapping mapping,
                                                                        org.apache.struts.action.ActionForm form,
                                                                        javax.servlet.http.HttpServletRequest request,
                                                                        javax.servlet.http.HttpServletResponse response)
                                                                 throws java.lang.Exception
        Edit a constraint's join style settings for a path, and forward to queryBuilderConstraint, for use by ajax.
        Parameters:
        mapping - the action mapping
        form - struts form
        request - the request
        response - the response
        Returns:
        the forward
        Throws:
        java.lang.Exception - if something goes wrong