]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/SlcApi.js
MonitorPerspective implementation
[gpl/argeo-slc.git] / server / org.argeo.slc.ria / src / argeo-ria-lib / slc / class / org / argeo / slc / ria / SlcApi.js
index 7d4a647b824ae9132de2d4759ac6afc4f39f92b5..b5604d4d59d2763358d5a237267f4764ed4a6379 100644 (file)
@@ -20,6 +20,7 @@ qx.Class.define("org.argeo.slc.ria.SlcApi",
        COPY_COLLECTION_TO_COLL_SERVICE : "copyCollectionToCollection.service",\r
        LIST_RESULTS_SERVICE : "listResultAttributes.service",\r
        GET_RESULT_SERVICE : "getResult.service",\r
+       GET_ATTACHEMENT_SERVICE : "getAttachment.service",\r
        LIST_SLCEXEC_SERVICE : "listSlcExecutions.service",\r
        NEW_SLCEXEC_SERVICE : "newSlcExecution.service",\r
        \r
@@ -29,6 +30,9 @@ qx.Class.define("org.argeo.slc.ria.SlcApi",
        RELOAD_BUNDLE_SERVICE : "reloadBundle.service",\r
        AMQ_SERVICE : "amq",\r
        \r
+       LIST_MODULAR_DISTRIB_SERVICE : "listModularDistributions.service",\r
+       UPLOAD_MODULAR_DISTRIB_SERVICE : "uploadModularDistrib.service",\r
+       \r
        /**\r
         * Standard Request getter\r
         * @param serviceName {String} The name of the service to call (without base context)\r
@@ -183,6 +187,11 @@ qx.Class.define("org.argeo.slc.ria.SlcApi",
                return request;\r
        },\r
 \r
+       buildGetAttachmentUrl : function(attachmentId, contentType, name){\r
+               return org.argeo.slc.ria.SlcApi.DEFAULT_CONTEXT + "/" + org.argeo.slc.ria.SlcApi.GET_ATTACHEMENT_SERVICE\r
+                       + "?uuid=" + attachmentId + "&contentType=" + contentType + "&name=" + name;\r
+       },\r
+       \r
        /**\r
         * List currently registered SlcExecutions.\r
         * @param fireReloadEventType {String} Event type to trigger (optionnal)\r
@@ -197,6 +206,23 @@ qx.Class.define("org.argeo.slc.ria.SlcApi",
                );\r
        },\r
        \r
+       /**\r
+        * List currently registered SlcExecutions.\r
+        * @param fireReloadEventType {String} Event type to trigger (optionnal)\r
+        * @param iLoadStatusables {org.argeo.ria.components.ILoadStatusables[]} Gui parts to update \r
+        * @return {qx.io.remote.Request}\r
+        */\r
+       getListModularDistributionsService:function(fireReloadEventType, iLoadStatusables){\r
+               return org.argeo.slc.ria.SlcApi.getServiceRequest(\r
+                       org.argeo.slc.ria.SlcApi.LIST_MODULAR_DISTRIB_SERVICE,\r
+                       fireReloadEventType,\r
+                       iLoadStatusables\r
+               );\r
+       },\r
+       \r
+       getUploadModularDistributionsService : function(){\r
+               return org.argeo.slc.ria.SlcApi.UPLOAD_MODULAR_DISTRIB_SERVICE;\r
+       },\r
 \r
        /**\r
         * New SlcExecution\r
@@ -213,7 +239,7 @@ qx.Class.define("org.argeo.slc.ria.SlcApi",
                        iLoadStatusables\r
                );\r
                req.setMethod("POST");\r
-               req.setRequestHeader("Content-Type", "text/xml");\r
+               //req.setRequestHeader("Content-Type", "text/xml");\r
                req.setData("body=" + encodeURIComponent(xmlDescription));\r
                return req;\r
        },\r