Class Integration


  • public class Integration
    extends java.lang.Object
    Integration
    • Method Summary

      Modifier and Type Method Description
      Grant authenticate​(java.lang.String login, java.lang.String password, int endpoint)
      I/O user authentication
      void clear​(Grant g)
      Clear integration cache
      void clearCache​(Grant g, boolean logout, boolean notify, int preCompile)
      Clear global cache
      void clearUserCache​(Grant g)
      Deprecated.
      void clearUserCache​(Grant g, java.lang.String login, boolean logout, boolean notify)
      Clear user cache
      Message commitModule​(Grant g, java.lang.String name, java.lang.String msg)
      Module commit to Git
      Message deleteModule​(Grant g, java.lang.String module)
      Delete the full module
      Message exportModule​(Grant g, java.lang.String name, boolean zip, boolean timestamps, boolean inline, boolean historize)
      Full module export
      Message exportModuleData​(Grant g, java.lang.String name, boolean zip, boolean historize)
      Full module data export
      Message exportObject​(Grant g, ObjectDB obj, java.lang.String id, boolean father, boolean child, java.util.Map<java.lang.String,​java.lang.String> h, FlowXML flow, boolean timestamps, boolean zip, boolean inline)
      Export one object in XML
      Message exportObject​(Grant g, ObjectDB obj, java.lang.String id, boolean father, boolean child, java.util.Map<java.lang.String,​java.lang.String> h, FlowXML flow, int limit, boolean timestamp, boolean zip, boolean inline)
      Export one object in XML
      Message exportObject​(Grant g, java.lang.String object, boolean zip)
      Export object to XML or ZIP flow
      Message exportObject​(Grant g, java.lang.String object, boolean timestamps, boolean zip, boolean inline)
      Export object to XML or ZIP flow
      Message importADP​(Grant g, java.lang.String adp, java.io.InputStream msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Import data flow thru adapter
      Message importADP​(Grant g, java.lang.String adp, java.lang.String msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Deprecated. 
      Message importCSV​(Grant g, java.lang.String obj, java.io.InputStream in, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Import a CSV flow with parameters:
      - Parameter Integration.PARAM_OBJECT_NAME: target object name
      - Parameter Integration.PARAM_EXT_DOCDIR: External document root directory, field value contains the relative paths of documents to import (option)
      - Parameter Integration.PARAM_SEPARATOR: default value is ';' (option)
      - Parameter Integration.PARAM_ADAPTER_MODE: INDIRECT|DIRECT, build one XML file or not, default is INDIRECT
      Message importCSV​(Grant g, java.lang.String obj, java.lang.String msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Deprecated. 
      Message importJSON​(Grant g, java.io.InputStream msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Import a JSON flow with parameters (Integration.PARAM_ADAPTER_MODE: INDIRECT|DIRECT, build one XML file or not, default is INDIRECT)
      Message importJSON​(Grant g, java.lang.String msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Deprecated. 
      Message importModule​(Grant g, java.lang.String name, java.lang.String version, java.io.InputStream in, boolean zip, boolean diff)
      Full module import
      Message importModuleXML​(Grant g, java.lang.String name, java.lang.String version, java.io.InputStream xml, boolean diff)
      Full module import
      Message importModuleZIP​(Grant g, java.lang.String name, java.lang.String version, java.io.InputStream zip, boolean diff)
      Full module import
      Message importSAX​(com.simplicite.objects.System.XMLSupervisor xsp, java.lang.String xspId, java.io.InputStream in, java.lang.String docdir, Grant g, java.util.Map<java.lang.String,​java.lang.String> h)
      Import a XML flow within a SAX parser (to limit heap size)
      Message importSAX​(Grant g, java.io.InputStream in, java.lang.String docdir, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.String> h)
      Import a XML flow within a SAX parser (to limit heap size)
      Message importXML​(com.simplicite.objects.System.XMLSupervisor xsp, java.lang.String xspId, FlowXML in, Grant g, java.util.Map<java.lang.String,​java.lang.String> h)
      Import a XML flow with optional supervisor (in memory processing)
      Message importXML​(Grant g, java.io.InputStream in, java.lang.String origin, java.lang.String parser, java.util.Map<java.lang.String,​java.lang.String> h)
      Import a XML flow
      Message importXML​(Grant g, java.lang.String msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.String> h)
      Deprecated. 
      Message importYAML​(Grant g, java.io.InputStream msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Import a YAML flow with parameters (Integration.PARAM_ADAPTER_MODE: INDIRECT|DIRECT, build one XML file or not, default is INDIRECT)
      Message importYAML​(Grant g, java.lang.String msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Deprecated. 
      Message importZIP​(Grant g, byte[] data, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.String> h)
      Deprecated. 
      Message importZIP​(Grant g, java.io.InputStream data, java.lang.String origin, java.lang.String parser, java.util.Map<java.lang.String,​java.lang.String> h)
      Import a ZIP file
      Message importZIP​(Grant g, java.lang.String path, java.lang.String origin, java.lang.String parser, java.util.Map<java.lang.String,​java.lang.String> h)  
      void indexation​(Grant g, boolean reset)
      Rebuild indexation
      java.util.Map<java.lang.String,​java.lang.String> moduleContent​(Grant g, java.lang.String id)
      Parse the module contents
      void moduleDelete​(Grant g, java.util.Map<java.lang.String,​java.lang.String> h)
      Remove obsolete objects
      Message process​(Grant g, java.lang.String service, java.io.InputStream msg, java.util.Map<java.lang.String,​java.lang.Object> params, java.lang.String origin)
      Process a service
      Message process​(Grant g, java.lang.String service, java.lang.String msg, java.util.Map<java.lang.String,​java.lang.Object> params, java.lang.String origin)
      Deprecated. 
      void purgeExports​(Grant g)
      Purge exports
      void purgeJobs​(Grant g)
      Purge jobs
      void purgeLogs​(Grant g)
      Purge logs
      void purgeRecycleBin​(Grant g)
      Purge recycle bin
      void purgeSupervisions​(Grant g)
      Purge supervisions
      void purgeTempFiles​(Grant g)
      Purge temp files
      Message runSQLScript​(Grant g, java.lang.String datasource, java.io.InputStream msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Run a SQL script with parameters (Integration.PARAM_DATSOURCE_NAME: datasource name)
      Message runSQLScript​(Grant g, java.lang.String datasource, java.lang.String msg, java.lang.String origin, java.util.Map<java.lang.String,​java.lang.Object> params)
      Deprecated. 
      java.lang.String runUnitTests​(Grant g, java.lang.String type, java.lang.String name)
      Run unit tests
      Message serviceManager​(Grant g, java.lang.String obj, java.lang.String name, java.lang.Object[] param)
      Invoke one object action with any parameters
      Message serviceManager​(Grant g, java.lang.String obj, java.lang.String name, java.lang.String[] param)
      Invoke one object action with text parameters
      java.lang.String synchronizeDocs​(Grant g)
      Synchronize documents
      • Methods inherited from class java.lang.Object

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

      • BUSINESS_SERVICE

        public static final java.lang.String BUSINESS_SERVICE
        Invoke a service (action on business object)
        See Also:
        Constant Field Values
      • BUSINESS_QUERY

        public static final java.lang.String BUSINESS_QUERY
        Invoke a bussiness object search
        See Also:
        Constant Field Values
      • BUSINESS_IMPORT_XML

        public static final java.lang.String BUSINESS_IMPORT_XML
        Import a Simplicite XML flow
        See Also:
        Constant Field Values
      • BUSINESS_IMPORT_CSV

        public static final java.lang.String BUSINESS_IMPORT_CSV
        Import a Simplicite CSV flow
        See Also:
        Constant Field Values
      • BUSINESS_IMPORT_JSON

        public static final java.lang.String BUSINESS_IMPORT_JSON
        Import a Simplicite JSON flow
        See Also:
        Constant Field Values
      • BUSINESS_IMPORT_YAML

        public static final java.lang.String BUSINESS_IMPORT_YAML
        Import a Simplicite YAML flow
        See Also:
        Constant Field Values
      • BUSINESS_IMPORT_ADP

        public static final java.lang.String BUSINESS_IMPORT_ADP
        Import a flow with one adaptor
        See Also:
        Constant Field Values
      • BUSINESS_IMPORT_ZIP

        public static final java.lang.String BUSINESS_IMPORT_ZIP
        Import a ZIP flow including XML and documents
        See Also:
        Constant Field Values
      • BUSINESS_IMPORT_MODULE

        public static final java.lang.String BUSINESS_IMPORT_MODULE
        Import a Simplicite module
        See Also:
        Constant Field Values
      • BUSINESS_SQLSCRIPT

        public static final java.lang.String BUSINESS_SQLSCRIPT
        Run a SQL script flow
        See Also:
        Constant Field Values
      • BUSINESS_EXPORT_XML

        public static final java.lang.String BUSINESS_EXPORT_XML
        Export a XML flow
        See Also:
        Constant Field Values
      • BUSINESS_EXPORT_CSV

        public static final java.lang.String BUSINESS_EXPORT_CSV
        Export a CSV flow
        See Also:
        Constant Field Values
      • BUSINESS_EXPORT_JSON

        public static final java.lang.String BUSINESS_EXPORT_JSON
        Export a JSON flow
        See Also:
        Constant Field Values
      • BUSINESS_EXPORT_YAML

        public static final java.lang.String BUSINESS_EXPORT_YAML
        Export a YAML flow
        See Also:
        Constant Field Values
      • BUSINESS_EXPORT_ZIP

        public static final java.lang.String BUSINESS_EXPORT_ZIP
        Export a ZIP flow including XML and documents
        See Also:
        Constant Field Values
      • BUSINESS_EXPORT_MODULE

        public static final java.lang.String BUSINESS_EXPORT_MODULE
        Export a module
        See Also:
        Constant Field Values
      • BUSINESS_EXPORT_MODULE_DATA

        public static final java.lang.String BUSINESS_EXPORT_MODULE_DATA
        Export a module's data
        See Also:
        Constant Field Values
      • BUSINESS_COMMIT_MODULE

        public static final java.lang.String BUSINESS_COMMIT_MODULE
        Commit a Simplicite module to Git
        See Also:
        Constant Field Values
      • CSV_ADAPTER_NAME

        public static final java.lang.String CSV_ADAPTER_NAME
        Standard CSV adapter name
        See Also:
        Constant Field Values
      • JSON_ADAPTER_NAME

        public static final java.lang.String JSON_ADAPTER_NAME
        Standard JSON adapter name
        See Also:
        Constant Field Values
      • YAML_ADAPTER_NAME

        public static final java.lang.String YAML_ADAPTER_NAME
        Standard YAML adapter name
        See Also:
        Constant Field Values
      • SQLSCRIPT_ADAPTER_NAME

        public static final java.lang.String SQLSCRIPT_ADAPTER_NAME
        Standard SQL adapter name
        See Also:
        Constant Field Values
      • BUSINESS_DELETE_MODULE

        public static final java.lang.String BUSINESS_DELETE_MODULE
        Delete a Simplicite module
        See Also:
        Constant Field Values
      • BUILD_INDEX

        public static final java.lang.String BUILD_INDEX
        Rebuild index
        See Also:
        Constant Field Values
      • CLEAR_CACHE

        public static final java.lang.String CLEAR_CACHE
        Clear integration cache
        See Also:
        Constant Field Values
      • RESTART_CRON

        public static final java.lang.String RESTART_CRON
        Restart cron
        See Also:
        Constant Field Values
      • COUNT_SESSIONS

        public static final java.lang.String COUNT_SESSIONS
        Count sessions
        See Also:
        Constant Field Values
      • PURGE_JOBS

        public static final java.lang.String PURGE_JOBS
        Purge asynchronous jobs
        See Also:
        Constant Field Values
      • PURGE_SUPERVISIONS

        public static final java.lang.String PURGE_SUPERVISIONS
        Purge supervisions
        See Also:
        Constant Field Values
      • PURGE_RECYCLEBIN

        public static final java.lang.String PURGE_RECYCLEBIN
        Purge recycle bin
        See Also:
        Constant Field Values
      • PURGE_EXPORTS

        public static final java.lang.String PURGE_EXPORTS
        Purge exports
        See Also:
        Constant Field Values
      • PURGE_TEMPFILES

        public static final java.lang.String PURGE_TEMPFILES
        Purge temp files
        See Also:
        Constant Field Values
      • SYNC_DOCS

        public static final java.lang.String SYNC_DOCS
        Synchronize documents
        See Also:
        Constant Field Values
      • ACTION_INSERT

        public static final java.lang.String ACTION_INSERT
        Create if not exists
        See Also:
        Constant Field Values
      • ACTION_UPSERT

        public static final java.lang.String ACTION_UPSERT
        Update or create if not exists
        See Also:
        Constant Field Values
      • ACTION_UPDATE

        public static final java.lang.String ACTION_UPDATE
        Update if exists
        See Also:
        Constant Field Values
      • ACTION_DELETE

        public static final java.lang.String ACTION_DELETE
        Delete
        See Also:
        Constant Field Values
      • PARAM_OBJECT_NAME

        public static final java.lang.String PARAM_OBJECT_NAME
        Parameter Object name
        See Also:
        Constant Field Values
      • PARAM_ADAPTER_NAME

        public static final java.lang.String PARAM_ADAPTER_NAME
        Parameter Adapter name
        See Also:
        Constant Field Values
      • PARAM_ADAPTER_MODE

        public static final java.lang.String PARAM_ADAPTER_MODE
        Parameter adapter mode DIRECT or INDIRECT
        See Also:
        Constant Field Values
      • PARAM_ENCODING

        public static final java.lang.String PARAM_ENCODING
        Parameter encoding
        See Also:
        Constant Field Values
      • PARAM_EFFECTIVE_DATE

        public static final java.lang.String PARAM_EFFECTIVE_DATE
        Parameter Effective date
        See Also:
        Constant Field Values
      • PARAM_CLEAR_CACHE

        public static final java.lang.String PARAM_CLEAR_CACHE
        Parameter Clear cache
        See Also:
        Constant Field Values
      • PARAM_EXT_DOCDIR

        public static final java.lang.String PARAM_EXT_DOCDIR
        Parameter External doc directory
        See Also:
        Constant Field Values
      • PARAM_DATASOURCE_NAME

        public static final java.lang.String PARAM_DATASOURCE_NAME
        Parameter Datsource name
        See Also:
        Constant Field Values
      • PARAM_XML_PARSER

        public static final java.lang.String PARAM_XML_PARSER
        Parameter XML parser dom/sax
        See Also:
        Constant Field Values
      • PARAM_SEPARATOR

        public static final java.lang.String PARAM_SEPARATOR
        CSV Parameter file separator
        See Also:
        Constant Field Values
      • PARAM_QUOTE

        public static final java.lang.String PARAM_QUOTE
        CSV Parameter quote character
        See Also:
        Constant Field Values
      • PARAM_NEW_LINE

        public static final java.lang.String PARAM_NEW_LINE
        CSV Parameter line return symbols
        See Also:
        Constant Field Values
      • PARAM_COMMENT_SYMBOL

        public static final java.lang.String PARAM_COMMENT_SYMBOL
        CSV Parameter commented line
        See Also:
        Constant Field Values
      • PARAM_MAPPINGS

        public static final java.lang.String PARAM_MAPPINGS
        CSV Parameter fields mapping
        See Also:
        Constant Field Values
      • PARAM_HEADER

        public static final java.lang.String PARAM_HEADER
        CSV Parameter has header
        See Also:
        Constant Field Values
      • XML_PARSER_DOM

        public static final java.lang.String XML_PARSER_DOM
        DOM XML parser
        See Also:
        Constant Field Values
      • XML_PARSER_SAX

        public static final java.lang.String XML_PARSER_SAX
        SAX XML parser
        See Also:
        Constant Field Values
      • RESULT_XML

        public static final java.lang.String RESULT_XML
        FlowXML result
        See Also:
        Constant Field Values
      • RESULT_ZIP

        public static final java.lang.String RESULT_ZIP
        ZIP Bytes result
        See Also:
        Constant Field Values
      • RESULT_FILE

        public static final java.lang.String RESULT_FILE
        File path result
        See Also:
        Constant Field Values
      • RESULT_XSP_ID

        public static final java.lang.String RESULT_XSP_ID
        XML supervisor id
        See Also:
        Constant Field Values
    • Constructor Detail

      • Integration

        public Integration()
    • Method Detail

      • authenticate

        public Grant authenticate​(java.lang.String login,
                                  java.lang.String password,
                                  int endpoint)
        I/O user authentication
        Parameters:
        login - I/O user login
        password - I/O user password
        endpoint - End point (one of Globals.ENDPOINT_*)
        Returns:
        Grant
      • clear

        public void clear​(Grant g)
        Clear integration cache
      • clearCache

        public void clearCache​(Grant g,
                               boolean logout,
                               boolean notify,
                               int preCompile)
        Clear global cache
        Parameters:
        g - Admin rights
        logout - Invalidate all sessions ?
        notify - Notify all servers ?
        preCompile - pre-compile objects and processes ? 0=no, 1=sync, 2=async
      • clearUserCache

        @Deprecated
        public final void clearUserCache​(Grant g)
        Deprecated.
        Clear local user cache no logout
      • clearUserCache

        public void clearUserCache​(Grant g,
                                   java.lang.String login,
                                   boolean logout,
                                   boolean notify)
        Clear user cache
        Parameters:
        g - Admin rights
        login - User login
        logout - Invalidate all user's sessions ?
        notify - Notify all servers ?
      • process

        @Deprecated
        public Message process​(Grant g,
                               java.lang.String service,
                               java.lang.String msg,
                               java.util.Map<java.lang.String,​java.lang.Object> params,
                               java.lang.String origin)
        Deprecated.
      • process

        public Message process​(Grant g,
                               java.lang.String service,
                               java.io.InputStream msg,
                               java.util.Map<java.lang.String,​java.lang.Object> params,
                               java.lang.String origin)
        Process a service
      • importXML

        @Deprecated
        public Message importXML​(Grant g,
                                 java.lang.String msg,
                                 java.lang.String origin,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
        Deprecated.
      • importXML

        public Message importXML​(Grant g,
                                 java.io.InputStream in,
                                 java.lang.String origin,
                                 java.lang.String parser,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
        Import a XML flow
        Parameters:
        g - Grant
        in - XML message to load in memory
        origin - Flow origin
        parser - 'xml' or 'sax'
        h - Optional colored hash of imported objects
        Returns:
        Message with LOG + h + supervision Id
      • importXML

        public Message importXML​(com.simplicite.objects.System.XMLSupervisor xsp,
                                 java.lang.String xspId,
                                 FlowXML in,
                                 Grant g,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
                          throws ImportException
        Import a XML flow with optional supervisor (in memory processing)
        Parameters:
        xsp - Optional supervisor
        xspId - Supervision Id
        in - In memory XML flow
        g - User rights
        h - Optional colored hash of imported objects
        Returns:
        Message with results
        Throws:
        ImportException
      • importSAX

        public Message importSAX​(Grant g,
                                 java.io.InputStream in,
                                 java.lang.String docdir,
                                 java.lang.String origin,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
                          throws ImportException
        Import a XML flow within a SAX parser (to limit heap size)
        Parameters:
        g - User rights
        in - XML flow
        docdir - Optional doc directory
        origin - Sender
        h - Optional colored hash of imported objects
        Returns:
        Message with results
        Throws:
        ImportException
      • importSAX

        public Message importSAX​(com.simplicite.objects.System.XMLSupervisor xsp,
                                 java.lang.String xspId,
                                 java.io.InputStream in,
                                 java.lang.String docdir,
                                 Grant g,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
                          throws ImportException
        Import a XML flow within a SAX parser (to limit heap size)
        Parameters:
        xsp - Optional supervisor
        xspId - Supervision Id
        in - XML flow
        docdir - Optional doc directory
        g - User rights
        h - Optional colored hash of imported objects
        Returns:
        Message with results
        Throws:
        ImportException
      • importADP

        @Deprecated
        public Message importADP​(Grant g,
                                 java.lang.String adp,
                                 java.lang.String msg,
                                 java.lang.String origin,
                                 java.util.Map<java.lang.String,​java.lang.Object> params)
        Deprecated.
      • importADP

        public Message importADP​(Grant g,
                                 java.lang.String adp,
                                 java.io.InputStream msg,
                                 java.lang.String origin,
                                 java.util.Map<java.lang.String,​java.lang.Object> params)
        Import data flow thru adapter
        Parameters:
        g - Grant
        adp - Adapter name
        msg - Message
        origin - Sender
        params - Optional parameters
        Returns:
        Message
      • importZIP

        @Deprecated
        public Message importZIP​(Grant g,
                                 byte[] data,
                                 java.lang.String origin,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
        Deprecated.
      • importZIP

        public Message importZIP​(Grant g,
                                 java.io.InputStream data,
                                 java.lang.String origin,
                                 java.lang.String parser,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
        Import a ZIP file
        Parameters:
        g - Grant
        data - ZIP file data
        origin - Sender origin
        parser - xml or sax
        h - Colored hash
        Returns:
        Message with LOG + h + xsp_id
      • importZIP

        public Message importZIP​(Grant g,
                                 java.lang.String path,
                                 java.lang.String origin,
                                 java.lang.String parser,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
      • importCSV

        @Deprecated
        public Message importCSV​(Grant g,
                                 java.lang.String obj,
                                 java.lang.String msg,
                                 java.lang.String origin,
                                 java.util.Map<java.lang.String,​java.lang.Object> params)
        Deprecated.
      • importCSV

        public Message importCSV​(Grant g,
                                 java.lang.String obj,
                                 java.io.InputStream in,
                                 java.lang.String origin,
                                 java.util.Map<java.lang.String,​java.lang.Object> params)
        Import a CSV flow with parameters:
        - Parameter Integration.PARAM_OBJECT_NAME: target object name
        - Parameter Integration.PARAM_EXT_DOCDIR: External document root directory, field value contains the relative paths of documents to import (option)
        - Parameter Integration.PARAM_SEPARATOR: default value is ';' (option)
        - Parameter Integration.PARAM_ADAPTER_MODE: INDIRECT|DIRECT, build one XML file or not, default is INDIRECT
        Parameters:
        g - User rights
        obj - Object name
        in - CSV stream ZZZ in platform encoding ZZZ
        origin - Sender origin
        params - Hash of parameters
        Returns:
        Message
      • importJSON

        @Deprecated
        public Message importJSON​(Grant g,
                                  java.lang.String msg,
                                  java.lang.String origin,
                                  java.util.Map<java.lang.String,​java.lang.Object> params)
        Deprecated.
      • importJSON

        public Message importJSON​(Grant g,
                                  java.io.InputStream msg,
                                  java.lang.String origin,
                                  java.util.Map<java.lang.String,​java.lang.Object> params)
        Import a JSON flow with parameters (Integration.PARAM_ADAPTER_MODE: INDIRECT|DIRECT, build one XML file or not, default is INDIRECT)
        Parameters:
        g - Grant
        msg - JSON message
        origin - Sender
        params - Hash of parameters
        Returns:
        Message
      • importYAML

        @Deprecated
        public Message importYAML​(Grant g,
                                  java.lang.String msg,
                                  java.lang.String origin,
                                  java.util.Map<java.lang.String,​java.lang.Object> params)
        Deprecated.
      • importYAML

        public Message importYAML​(Grant g,
                                  java.io.InputStream msg,
                                  java.lang.String origin,
                                  java.util.Map<java.lang.String,​java.lang.Object> params)
        Import a YAML flow with parameters (Integration.PARAM_ADAPTER_MODE: INDIRECT|DIRECT, build one XML file or not, default is INDIRECT)
        Parameters:
        g - Grant
        msg - YAML message
        origin - Sender
        params - Hash of parameters
        Returns:
        Message
      • runSQLScript

        @Deprecated
        public Message runSQLScript​(Grant g,
                                    java.lang.String datasource,
                                    java.lang.String msg,
                                    java.lang.String origin,
                                    java.util.Map<java.lang.String,​java.lang.Object> params)
        Deprecated.
      • runSQLScript

        public Message runSQLScript​(Grant g,
                                    java.lang.String datasource,
                                    java.io.InputStream msg,
                                    java.lang.String origin,
                                    java.util.Map<java.lang.String,​java.lang.Object> params)
        Run a SQL script with parameters (Integration.PARAM_DATSOURCE_NAME: datasource name)
        Parameters:
        g - Grant
        msg - SQL script message
        origin - Sender
        params - Hash of parameters
        Returns:
        Message
      • exportObject

        public Message exportObject​(Grant g,
                                    ObjectDB obj,
                                    java.lang.String id,
                                    boolean father,
                                    boolean child,
                                    java.util.Map<java.lang.String,​java.lang.String> h,
                                    FlowXML flow,
                                    int limit,
                                    boolean timestamp,
                                    boolean zip,
                                    boolean inline)
        Export one object in XML
        Parameters:
        g - Grant
        obj - Business object
        id - Record row_id
        father - True to retrieve fathers
        child - True to retrieve childs
        h - Colored hash (to check export unicity)
        flow - Optional to add object to a former flow
        limit - Limit the number of objects (0=no limit)
        timestamp - Export timestamp ?
        zip - ZIP export ?
        inline - Inline documents/images in XML
        Returns:
        XML flow
      • exportObject

        public Message exportObject​(Grant g,
                                    ObjectDB obj,
                                    java.lang.String id,
                                    boolean father,
                                    boolean child,
                                    java.util.Map<java.lang.String,​java.lang.String> h,
                                    FlowXML flow,
                                    boolean timestamps,
                                    boolean zip,
                                    boolean inline)
        Export one object in XML
        Parameters:
        g - Grant
        obj - Business object
        id - Record row_id
        father - True to retrieve fathers
        child - True to retrieve childs
        h - Colored hash (to check export unicity)
        flow - Optional to add object to an former flow
        timestamps - Export timestamp ?
        zip - ZIP export ?
        inline - Inline documents/images in XML
        Returns:
        XML flow
      • exportObject

        public Message exportObject​(Grant g,
                                    java.lang.String object,
                                    boolean zip)
        Export object to XML or ZIP flow
        Parameters:
        g - Grant
        object - Object name
        zip - ZIP export ?
      • exportObject

        public Message exportObject​(Grant g,
                                    java.lang.String object,
                                    boolean timestamps,
                                    boolean zip,
                                    boolean inline)
        Export object to XML or ZIP flow
        Parameters:
        g - Grant
        object - Object name
        timestamps - Export timestamp ?
        zip - ZIP export ?
        inline - Inline documents/images in XML
      • moduleContent

        public java.util.Map<java.lang.String,​java.lang.String> moduleContent​(Grant g,
                                                                                    java.lang.String id)
        Parse the module contents
        Parameters:
        g - Grant
        id - Module ID
        Returns:
        Hash for coloration (key table:row_id)
      • deleteModule

        public Message deleteModule​(Grant g,
                                    java.lang.String module)
        Delete the full module
      • moduleDelete

        public void moduleDelete​(Grant g,
                                 java.util.Map<java.lang.String,​java.lang.String> h)
        Remove obsolete objects
      • exportModule

        public Message exportModule​(Grant g,
                                    java.lang.String name,
                                    boolean zip,
                                    boolean timestamps,
                                    boolean inline,
                                    boolean historize)
        Full module export
      • exportModuleData

        public Message exportModuleData​(Grant g,
                                        java.lang.String name,
                                        boolean zip,
                                        boolean historize)
        Full module data export
      • importModuleXML

        public Message importModuleXML​(Grant g,
                                       java.lang.String name,
                                       java.lang.String version,
                                       java.io.InputStream xml,
                                       boolean diff)
        Full module import
      • importModuleZIP

        public Message importModuleZIP​(Grant g,
                                       java.lang.String name,
                                       java.lang.String version,
                                       java.io.InputStream zip,
                                       boolean diff)
        Full module import
      • importModule

        public Message importModule​(Grant g,
                                    java.lang.String name,
                                    java.lang.String version,
                                    java.io.InputStream in,
                                    boolean zip,
                                    boolean diff)
        Full module import
      • commitModule

        public Message commitModule​(Grant g,
                                    java.lang.String name,
                                    java.lang.String msg)
        Module commit to Git
      • indexation

        public void indexation​(Grant g,
                               boolean reset)
        Rebuild indexation
      • serviceManager

        public Message serviceManager​(Grant g,
                                      java.lang.String obj,
                                      java.lang.String name,
                                      java.lang.String[] param)
        Invoke one object action with text parameters
      • serviceManager

        public Message serviceManager​(Grant g,
                                      java.lang.String obj,
                                      java.lang.String name,
                                      java.lang.Object[] param)
        Invoke one object action with any parameters
      • purgeLogs

        public void purgeLogs​(Grant g)
        Purge logs
      • purgeJobs

        public void purgeJobs​(Grant g)
        Purge jobs
      • purgeSupervisions

        public void purgeSupervisions​(Grant g)
        Purge supervisions
      • purgeRecycleBin

        public void purgeRecycleBin​(Grant g)
        Purge recycle bin
      • purgeExports

        public void purgeExports​(Grant g)
        Purge exports
      • purgeTempFiles

        public void purgeTempFiles​(Grant g)
        Purge temp files
      • synchronizeDocs

        public java.lang.String synchronizeDocs​(Grant g)
        Synchronize documents
      • runUnitTests

        public java.lang.String runUnitTests​(Grant g,
                                             java.lang.String type,
                                             java.lang.String name)
        Run unit tests
        Parameters:
        g - Grant
        type - Type = configuration object name (e.g. Objectinternal)
        name - Name = configuration object name