Class Application


  • public class Application
    extends java.lang.Object
    Application
    • Constructor Summary

      Constructors 
      Constructor Description
      Application()  
    • Method Summary

      Modifier and Type Method Description
      static java.lang.String fireEvent​(java.lang.String name, ObjectDB obj, java.lang.String action, java.lang.String rowId)
      Deprecated.
      Use Websocket: Events.pushObject
      static Grant getClientGrant​(java.lang.String login, java.lang.String pwd, boolean mustAuthenticate)
      Deprecated.
      Does nothing, returns null, calls must be refactored
      static java.lang.String healthCheck​(Grant g, boolean full, int format, java.lang.String serverInfo, java.lang.String contextURL, java.lang.String debug)  
      static int heathCheckFormat​(java.lang.String format)  
      static void monitoring​(Parameters params)  
      static java.lang.String refreshUndoRedo​(Grant g)
      Javascript to refresh undo/redo buttons if exists
      static void registerTestCaseStep​(Grant g, ServletParameters params)
      Register a step to a recording/running test case
      static void resetCache​(Grant g)
      Clear the webapp cache of a specific user
      static void resetCache​(java.lang.String objectName)
      Clear object caches
      static void resetCache​(javax.servlet.http.HttpSession session, boolean invalidateSessions, boolean memory, boolean core)
      Clear all caches
      static java.lang.String updateModelers​(Grant g, java.lang.String obj, java.lang.String id, ObjectContextWeb ctx)
      Update opened modelers
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Application

        public Application()
    • Method Detail

      • resetCache

        public static void resetCache​(javax.servlet.http.HttpSession session,
                                      boolean invalidateSessions,
                                      boolean memory,
                                      boolean core)
        Clear all caches
      • resetCache

        public static void resetCache​(Grant g)
        Clear the webapp cache of a specific user
      • resetCache

        public static void resetCache​(java.lang.String objectName)
        Clear object caches
      • getClientGrant

        @Deprecated
        public static Grant getClientGrant​(java.lang.String login,
                                           java.lang.String pwd,
                                           boolean mustAuthenticate)
        Deprecated.
        Does nothing, returns null, calls must be refactored
      • refreshUndoRedo

        public static java.lang.String refreshUndoRedo​(Grant g)
        Javascript to refresh undo/redo buttons if exists
      • heathCheckFormat

        public static int heathCheckFormat​(java.lang.String format)
      • healthCheck

        public static java.lang.String healthCheck​(Grant g,
                                                   boolean full,
                                                   int format,
                                                   java.lang.String serverInfo,
                                                   java.lang.String contextURL,
                                                   java.lang.String debug)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • registerTestCaseStep

        public static void registerTestCaseStep​(Grant g,
                                                ServletParameters params)
        Register a step to a recording/running test case
      • updateModelers

        public static java.lang.String updateModelers​(Grant g,
                                                      java.lang.String obj,
                                                      java.lang.String id,
                                                      ObjectContextWeb ctx)
        Update opened modelers
        Parameters:
        g - User right to check access to Model
        obj - specific object or any if null
        id - specific id or any if null
        ctx - web context with parameters: modelreload full reload (on undo for example), modeldiv to refresh a specific modeler div, row_id to add/update a node
        Returns:
        javascript
      • fireEvent

        @Deprecated
        public static java.lang.String fireEvent​(java.lang.String name,
                                                 ObjectDB obj,
                                                 java.lang.String action,
                                                 java.lang.String rowId)
        Deprecated.
        Use Websocket: Events.pushObject
        Send a javascript event to notify subscribers
        Parameters:
        name - Event name Application.EVENT_*
        obj - Business object
        action - Action name (required in case of custom Action)
        rowId - Object row ID (optional when event concerns a specific row)
      • monitoring

        public static void monitoring​(Parameters params)