Blame view
framework/entityext/servicedef/services.xml
21.3 KB
c16038356
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd"> <description>Entity Extension Services</description> <vendor>OFBiz</vendor> <version>1.0</version> <!-- simple generic service to watch and entity through an EECA --> <service name="watchEntity" engine="java" location="org.ofbiz.entityext.EntityWatchServices" invoke="watchEntity"> <attribute name="newValue" type="org.ofbiz.entity.GenericValue" mode="IN"/> <attribute name="fieldName" type="String" mode="IN" optional="true"/> </service> <!-- Entity Engine Extension Services --> <service name="distributedClearAllEntityCaches" engine="jms" location="serviceMessenger" invoke="clearAllEntityCaches" auth="true"> <description>Clear All Entity Engine Caches for all Servers listening to the topic</description> </service> <!-- Below uses Group/HTTP engine <service name="distributedClearAllEntityCaches" engine="group" location="distributedClearAllEntityCaches" invoke=""/> --> <service name="clearAllEntityCaches" engine="java" export="true" location="org.ofbiz.entityext.cache.EntityCacheServices" invoke="clearAllEntityCaches" auth="true"> <description>Clears all values from all Entity Engine caches. By default does not distribute.</description> <attribute name="distribute" type="Boolean" mode="IN" optional="true"/> </service> <service name="distributedClearCacheLineByValue" engine="jms" location="serviceMessenger" invoke="clearCacheLineByValue" auth="true"> <description>Clear Cache Line by value for all Servers listening to the topic</description> <attribute name="value" type="org.ofbiz.entity.GenericValue" mode="IN" optional="false"/> </service> <!-- Below uses Group/HTTP engine <service name="distributedClearCacheLineByValue" engine="group" location="distributedClearCacheLineByValue" invoke=""/> --> <service name="clearCacheLineByValue" engine="java" export="true" location="org.ofbiz.entityext.cache.EntityCacheServices" invoke="clearCacheLine" auth="true"> <description>Clear Cache Line with a value (GenericValue); this is the preferred method since the all, by primary key and by and caches will be cleared. By default does not distribute.</description> <attribute name="value" type="org.ofbiz.entity.GenericValue" mode="IN" optional="false"/> <attribute name="distribute" type="Boolean" mode="IN" optional="true"/> </service> <service name="distributedClearCacheLineByDummyPK" engine="jms" location="serviceMessenger" invoke="clearCacheLineByDummyPK" auth="true"> <description>Clear Cache Line by dummyPK for all Servers listening to the topic</description> <attribute name="dummyPK" type="GenericEntity" mode="IN" optional="false"/> </service> <!-- Below uses Group/HTTP engine <service name="distributedClearCacheLineByDummyPK" engine="group" location="distributedClearCacheLineByDummyPK" invoke=""/> --> <service name="clearCacheLineByDummyPK" engine="java" export="true" location="org.ofbiz.entityext.cache.EntityCacheServices" invoke="clearCacheLine" auth="true"> <description>Clear Cache Line with a dummyPK (GenericEntity); clears that all cache entry and depending on whether the dummyPK is a primaryKey or not this clears the by primary key cache or the specified entry in the by and cache. By default does not distribute.</description> <attribute name="dummyPK" type="GenericEntity" mode="IN" optional="false"/> <attribute name="distribute" type="Boolean" mode="IN" optional="true"/> </service> <service name="distributedClearCacheLineByPrimaryKey" engine="jms" location="serviceMessenger" invoke="clearCacheLineByPrimaryKey" auth="true"> <description>Clear Cache Line by primaryKey for all Servers listening to the topic</description> <attribute name="primaryKey" type="GenericPK" mode="IN" optional="false"/> <attribute name="distribute" type="Boolean" mode="IN" optional="true"/> </service> <!-- Below uses Group/HTTP engine <service name="distributedClearCacheLineByPrimaryKey" engine="group" location="distributedClearCacheLineByPrimaryKey" invoke=""/> --> <service name="clearCacheLineByPrimaryKey" engine="java" export="true" location="org.ofbiz.entityext.cache.EntityCacheServices" invoke="clearCacheLine" auth="true"> <description>Clear Cache Line with a primaryKey (GenericPK); clears the all and by primary key caches. By default does not distribute.</description> <attribute name="primaryKey" type="GenericPK" mode="IN" optional="false"/> <attribute name="distribute" type="Boolean" mode="IN" optional="true"/> </service> <service name="distributedClearCacheLineByCondition" engine="jms" location="serviceMessenger" invoke="clearCacheLineByCondition" auth="true"> <description>Clear Cache Line by condition for all Servers listening to the topic</description> <attribute name="entityName" type="String" mode="IN" optional="false"/> <attribute name="condition" type="org.ofbiz.entity.condition.EntityCondition" mode="IN" optional="false"/> <attribute name="distribute" type="Boolean" mode="IN" optional="true"/> </service> <service name="clearCacheLineByCondition" engine="java" export="true" location="org.ofbiz.entityext.cache.EntityCacheServices" invoke="clearCacheLine" auth="true"> <description>Clear Cache Line with a condition; By default does not distribute.</description> <attribute name="entityName" type="String" mode="IN" optional="false"/> <attribute name="condition" type="org.ofbiz.entity.condition.EntityCondition" mode="IN" optional="false"/> <attribute name="distribute" type="Boolean" mode="IN" optional="true"/> </service> <!-- HTTP Engine localhost cache clearing (example: duplicate entire block for each server) --> <service name="localhostClearAllEntityCaches" engine="http" location="eedcc-test" invoke="clearAllEntityCaches"> <implements service="clearAllEntityCaches"/> </service> <service name="localhostClearCacheLineByValue" engine="http" location="eedcc-test" invoke="clearCacheLineByValue"> <implements service="clearCacheLineByValue"/> </service> <service name="localhostClearCacheLineByDummyPK" engine="http" location="eedcc-test" invoke="clearCacheLineByDummyPK"> <implements service="clearCacheLineByDummyPK"/> </service> <service name="localhostClearCacheLineByPrimaryKey" engine="http" location="eedcc-test" invoke="clearCacheLineByPrimaryKey"> <implements service="clearCacheLineByPrimaryKey"/> </service> <!-- Index/Key Services --> <service name="rebuildEntityIndexesAndKeys" engine="java" auth="true" use-transaction="false" location="org.ofbiz.entityext.data.EntityDataServices" invoke="rebuildAllIndexesAndKeys"> <description>Rebuilds all indexes/keys</description> <required-permissions join-type="AND"> <check-permission permission="ENTITY_MAINT"/> </required-permissions> <attribute name="groupName" type="String" mode="IN" optional="false"/> <attribute name="fixColSizes" type="Boolean" mode="IN" optional="true"/> <attribute name="messages" type="List" mode="OUT" optional="false"/> </service> <!-- Entity Delimited File Import Services --> <service name="importEntityFileDirectory" engine="java" auth="true" use-transaction="false" location="org.ofbiz.entityext.data.EntityDataServices" invoke="importDelimitedFromDirectory"> <description>Read a directory for .txt files with entity names; read each line as a record</description> <attribute name="rootDirectory" type="String" mode="IN" optional="false"/> <attribute name="delimiter" type="String" mode="IN" optional="true"/> </service> <service name="importDelimitedEntityFile" engine="java" auth="true" transaction-timeout="14400" require-new-transaction="true" location="org.ofbiz.entityext.data.EntityDataServices" invoke="importDelimitedFile"> <description>Import delimited file</description> <attribute name="file" type="java.io.File" mode="IN" optional="false"/> <attribute name="delimiter" type="String" mode="IN" optional="true"/> <attribute name="records" type="Integer" mode="OUT" optional="false"/> </service> <!-- data updates services --> <service name="unwrapByteWrappers" engine="java" auth="true" transaction-timeout="14400" require-new-transaction="true" location="org.ofbiz.entityext.data.EntityDataServices" invoke="unwrapByteWrappers"> <description>Unwrap ByteWrapper Fields for the given entity and field</description> <attribute name="entityName" type="String" mode="IN" optional="false"/> <attribute name="fieldName" type="String" mode="IN" optional="false"/> </service> <!-- EntitySync Services --> <service name="createEntitySync" default-entity-name="EntitySync" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="createEntitySync" auth="true"> <description>Create EntitySync</description> <auto-attributes include="pk" mode="OUT" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="updateEntitySync" default-entity-name="EntitySync" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="updateEntitySync" auth="true"> <description>Update EntitySync</description> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="createEntitySyncInclude" default-entity-name="EntitySyncInclude" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="createEntitySyncInclude" auth="true"> <description>Create EntitySyncInclude</description> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> <override name="applEnumId" optional="false"/> </service> <service name="updateEntitySyncInclude" default-entity-name="EntitySyncInclude" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="updateEntitySyncInclude" auth="true"> <description>Update EntitySyncInclude</description> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="deleteEntitySyncInclude" default-entity-name="EntitySyncInclude" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="deleteEntitySyncInclude" auth="true"> <description>Delete EntitySyncInclude</description> <auto-attributes include="pk" mode="IN" optional="false"/> </service> <service name="updateEntitySyncRunning" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="updateEntitySync" auth="true" require-new-transaction="true"> <description>Update EntitySync while Running</description> <implements service="updateEntitySync"/> </service> <service name="createEntitySyncHistory" default-entity-name="EntitySyncHistory" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="createEntitySyncHistory" auth="true" require-new-transaction="true"> <description>Create EntitySyncHistory</description> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> <override name="startDate" mode="OUT"/> </service> <service name="updateEntitySyncHistory" default-entity-name="EntitySyncHistory" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="updateEntitySyncHistory" auth="true" require-new-transaction="true"> <description>Update EntitySyncHistory</description> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="deleteEntitySyncHistory" default-entity-name="EntitySyncHistory" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="deleteEntitySyncHistory" auth="true" require-new-transaction="true"> <description>Delete EntitySyncHistory</description> <auto-attributes include="pk" mode="IN" optional="false"/> </service> <service name="updateOfflineEntitySync" engine="java" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="updateOfflineEntitySync" auth="true"> <description>Not implemented.</description> </service> <service name="cleanSyncRemoveInfo" engine="java" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="cleanSyncRemoveInfo" auth="true" transaction-timeout="600"> <description>Clean EntitySyncRemove Info - Generally should be run asynchronously after each sync run, or periodically run on a schedule</description> </service> <service name="resetEntitySyncStatusToNotStarted" engine="simple" location="component://entityext/script/org/ofbiz/entityext/synchronization/EntitySyncServices.xml" invoke="resetEntitySyncStatusToNotStarted" auth="true" transaction-timeout="600"> <description>Generally run manually to reset the status of an EntitySync when it has "crashed". Update a EntitySync, set the Status to ESR_NOT_STARTED, but ONLY if running (ie in ESR_RUNNING)</description> <attribute name="entitySyncId" type="String" mode="IN" optional="false"/> </service> <service name="runOfflineEntitySync" engine="java" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="runOfflineEntitySync" auth="true" use-transaction="false"> <attribute name="entitySyncId" type="String" mode="IN" optional="false"/> <attribute name="fileName" type="String" mode="IN" optional="true"><!-- if not specified defaults to "offline_entitySync-" + entitySyncId + "-" + [current date/time in yyyyMMddHHmmss format] + ".xml" --></attribute> </service> <service name="loadOfflineEntitySyncData" engine="java" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="loadOfflineSyncData" auth="true" use-transaction="false"> <attribute name="xmlFileName" type="String" mode="IN" optional="false"/> </service> <!-- Entity Remote Synchronization services --> <service name="runEntitySync" engine="java" auth="true" use-transaction="false" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="runEntitySync"> <description>Run Entity Sync</description> <attribute name="entitySyncId" type="String" mode="IN" optional="false"/> </service> <service name="storeEntitySyncData" engine="java" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="storeEntitySyncData" export="true" auth="true" require-new-transaction="true" transaction-timeout="900"> <description>Run Entity Sync</description> <attribute name="entitySyncId" type="String" mode="IN" optional="false"/> <attribute name="valuesToCreate" type="List" mode="IN" optional="false"/> <attribute name="valuesToStore" type="List" mode="IN" optional="false"/> <attribute name="keysToRemove" type="List" mode="IN" optional="false"/> <attribute name="delegatorName" type="String" mode="IN" optional="true"/> <attribute name="toCreateInserted" type="Long" mode="OUT" optional="false"/> <attribute name="toCreateUpdated" type="Long" mode="OUT" optional="false"/> <attribute name="toCreateNotUpdated" type="Long" mode="OUT" optional="false"/> <attribute name="toStoreInserted" type="Long" mode="OUT" optional="false"/> <attribute name="toStoreUpdated" type="Long" mode="OUT" optional="false"/> <attribute name="toStoreNotUpdated" type="Long" mode="OUT" optional="false"/> <attribute name="toRemoveDeleted" type="Long" mode="OUT" optional="false"/> <attribute name="toRemoveAlreadyDeleted" type="Long" mode="OUT" optional="false"/> </service> <!-- Services for Entity Sync Data Pulling --> <service name="runPullEntitySync" engine="java" auth="true" use-transaction="false" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="runPullEntitySync"> <description>Run Entity Sync Pulling Data From a Remote Server</description> <attribute name="entitySyncId" type="String" mode="IN" optional="false"/> <attribute name="remotePullAndReportEntitySyncDataName" type="String" mode="IN" optional="false"/> <attribute name="localDelegatorName" type="String" mode="IN" optional="true"/> <attribute name="remoteDelegatorName" type="String" mode="IN" optional="true"/> </service> <service name="pullAndReportEntitySyncData" engine="java" auth="true" export="true" use-transaction="false" location="org.ofbiz.entityext.synchronization.EntitySyncServices" invoke="pullAndReportEntitySyncData"> <description>Pull And Report Entity Sync Data</description> <attribute name="entitySyncId" type="String" mode="IN" optional="false"/> <attribute name="delegatorName" type="String" mode="IN" optional="true"/> <!-- fields for returned values to store on the calling machine, note that after storing these this service MUST be called with the results to finalize it! --> <attribute name="valuesToCreate" type="List" mode="OUT" optional="true"/> <attribute name="valuesToStore" type="List" mode="OUT" optional="true"/> <attribute name="keysToRemove" type="List" mode="OUT" optional="true"/> <!-- fields for results of storage on the calling machine --> <attribute name="startDate" type="Timestamp" mode="INOUT" optional="true"/> <attribute name="toCreateInserted" type="Long" mode="IN" optional="true"/> <attribute name="toCreateUpdated" type="Long" mode="IN" optional="true"/> <attribute name="toCreateNotUpdated" type="Long" mode="IN" optional="true"/> <attribute name="toStoreInserted" type="Long" mode="IN" optional="true"/> <attribute name="toStoreUpdated" type="Long" mode="IN" optional="true"/> <attribute name="toStoreNotUpdated" type="Long" mode="IN" optional="true"/> <attribute name="toRemoveDeleted" type="Long" mode="IN" optional="true"/> <attribute name="toRemoveAlreadyDeleted" type="Long" mode="IN" optional="true"/> </service> <!-- Services to call store (Push) remotely --> <service name="remoteStoreEntitySyncDataHttp" engine="http" auth="true" use-transaction="false" location="entity-sync-http" invoke="storeEntitySyncData"> <description>Remotely Store Entity Sync Date</description> <implements service="storeEntitySyncData"/> </service> <service name="remoteStoreEntitySyncDataRmi" engine="rmi" auth="true" use-transaction="false" location="entity-sync-rmi" invoke="storeEntitySyncData"> <description>Remotely Store Entity Sync Data</description> <implements service="storeEntitySyncData"/> </service> <!-- Services to call Pull and Report remotely --> <service name="remotePullAndReportEntitySyncDataHttp" engine="http" auth="true" use-transaction="false" location="entity-sync-http" invoke="pullAndReportEntitySyncData"> <description>Remotely Pull And Report Entity Sync Data</description> <implements service="pullAndReportEntitySyncData"/> </service> <service name="remotePullAndReportEntitySyncDataRmi" engine="rmi" auth="true" use-transaction="false" location="entity-sync-rmi" invoke="pullAndReportEntitySyncData"> <description>Remotely Pull And Report Entity Sync Data</description> <implements service="pullAndReportEntitySyncData"/> </service> </services> |