Class ReferencedLink

    • Constructor Detail

      • ReferencedLink

        public ReferencedLink()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
        Description copied from class: HttpBaseServlet
        Loads basic configuration settings that this class and all that extend it require to function properly. Also instantiates XmlEngine object. This method is called upon load of the class, which is configured to be loaded upon start of the application server. See also web.xml (load-on-startup).
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class HttpSecureAppServlet
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
        Method called from js during the click on a link
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Parameters:
        request - HTTP request object to handle parameters and session attributes
        response - HTTP response object to handle possible redirects
        Throws:
        IOException
        javax.servlet.ServletException
      • applyRules

        public static String applyRules​(String fieldId,
                                        String strTableReferenceId,
                                        Entity obEntity,
                                        String strKeyReferenceId,
                                        boolean fieldRules,
                                        boolean hasKeyReferenceId)
        Apply navigation rules
        Parameters:
        fieldId - Source field id
        strTableReferenceId - Destination table id
        obEntity - Table entity
        strKeyReferenceId - Destination row id
        fieldRules - boolean that determines if the rules to be applied are the field level ones or the table level ones
        Returns:
        destination tab id or null if no rule is met