svn commit: r930233 - in /ofbiz/trunk/applications/accounting: ./ servicedef/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r930233 - in /ofbiz/trunk/applications/accounting: ./ servicedef/

mor-2
Author: mor
Date: Fri Apr  2 10:52:06 2010
New Revision: 930233

URL: http://svn.apache.org/viewvc?rev=930233&view=rev
Log:
Moved the accounting permission services to a separate file.

Added:
    ofbiz/trunk/applications/accounting/servicedef/services_perm.xml   (with props)
Modified:
    ofbiz/trunk/applications/accounting/ofbiz-component.xml
    ofbiz/trunk/applications/accounting/servicedef/services_admin.xml
    ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml
    ofbiz/trunk/applications/accounting/servicedef/services_billing.xml
    ofbiz/trunk/applications/accounting/servicedef/services_cost.xml
    ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml
    ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml
    ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml
    ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml

Modified: ofbiz/trunk/applications/accounting/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/ofbiz-component.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/ofbiz-component.xml (original)
+++ ofbiz/trunk/applications/accounting/ofbiz-component.xml Fri Apr  2 10:52:06 2010
@@ -79,6 +79,9 @@ under the License.
     <service-resource type="model" loader="main" location="servicedef/services_verisign.xml"/>
     <service-resource type="model" loader="main" location="servicedef/services_orbital.xml"/>
 
+    <!-- Accounting Permission Services -->
+    <service-resource type="model" loader="main" location="servicedef/services_perm.xml"/>
+
     <!-- Accounting Migration Service Definition -->
     <service-resource type="model" loader="main" location="servicedef/services_upgrade.xml"/>
 

Modified: ofbiz/trunk/applications/accounting/servicedef/services_admin.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_admin.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_admin.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_admin.xml Fri Apr  2 10:52:06 2010
@@ -119,18 +119,6 @@ under the License.
         <auto-attributes mode="IN" entity-name="PaymentMethodTypeGlAccount" include="pk" optional="false"/>
     </service>
 
-    <!-- Permission services -->
-    <service name="acctgPrefPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="preferencePermissionCheck">
-        <description>Accounting Preferences Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-    <service name="acctgFxPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgFxPermissionCheck">
-        <description>Accounting Foreign Exchange Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-    
     <service name="getFXConversion" engine="simple"
         location="component://accounting/script/org/ofbiz/accounting/admin/AcctgAdminServices.xml" invoke="getFXConversion">
         <description>get the conversion rate</description>

Modified: ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml Fri Apr  2 10:52:06 2010
@@ -247,16 +247,4 @@ under the License.
         <description>Delete AgreementWorkEffortApplic</description>
         <auto-attributes mode="IN" include="pk" optional="false"/>
     </service>
-
-    <!-- Permission services -->
-    <service name="acctgAgreementPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgAgreementPermissionCheck">
-        <description>Accounting Agreement Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-    <service name="acctgCommissionPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="commissionPermissionCheck">
-        <description>Accounting Commission Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-</services>
+</services>
\ No newline at end of file

Modified: ofbiz/trunk/applications/accounting/servicedef/services_billing.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_billing.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_billing.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_billing.xml Fri Apr  2 10:52:06 2010
@@ -113,9 +113,4 @@ under the License.
         <attribute name="availableToCapture" type="BigDecimal" mode="OUT" optional="false"/>
         <attribute name="billingAccount" type="org.ofbiz.entity.GenericValue" mode="OUT" optional="false"/>
     </service>
-    <service name="acctgBillingAcctCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgBillingAcctCheck">
-        <description>Basic Billing Account Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-</services>
+</services>
\ No newline at end of file

Modified: ofbiz/trunk/applications/accounting/servicedef/services_cost.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_cost.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_cost.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_cost.xml Fri Apr  2 10:52:06 2010
@@ -64,13 +64,6 @@ under the License.
         <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 
-    <!-- Permission services -->
-    <service name="acctgCostPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgCostPermissionCheck">
-        <description>Accounting Cost Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-
     <service name="createProductAverageCost" default-entity-name="ProductAverageCost" engine="entity-auto" invoke="create" auth="true">
         <description>Create Product Average Cost record</description>
         <permission-service service-name="acctgCostPermissionCheck" main-action="CREATE"/>

Modified: ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml Fri Apr  2 10:52:06 2010
@@ -448,13 +448,6 @@ under the License.
         <implements service="itemFulfillmentInterface"/>
     </service>
 
-    <!-- Permission services -->
-    <service name="acctgFinAcctPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgFinAcctPermissionCheck">
-        <description>Accounting Financial Account Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-
     <service name="depositWithdrawPayments" engine="simple"
             location="component://accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml" invoke="depositWithdrawPayments">
         <description>Deposit withdraw payments</description>

Modified: ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml Fri Apr  2 10:52:06 2010
@@ -241,13 +241,6 @@ under the License.
         <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 
-    <!-- Fixed Asset Permission Services -->
-    <service name="fixedAssetPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="basePermissionCheck">
-        <description>Fixed Asset Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-
     <!-- Fixed Asset Depreciation Services -->
     <service name="createFixedAssetDepMethod" default-entity-name="FixedAssetDepMethod" engine="entity-auto" invoke="create" auth="true">
         <description>Create a Fixed Asset Depreciation Method</description>

Modified: ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml Fri Apr  2 10:52:06 2010
@@ -282,12 +282,6 @@ under the License.
         <attribute name="invoicedTotal" type="BigDecimal" mode="OUT" optional="false"/>
     </service>
 
-    <!-- Permission services -->
-    <service name="acctgInvoicePermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgInvoicePermissionCheck">
-        <description>Accounting Invoice Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
     <service name="updateInvoiceItemType" engine="simple" default-entity-name="InvoiceItemType"
         location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="updateInvoiceItemType">
         <description>Update Invoice Item Type Record</description>

Modified: ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml?rev=930233&r1=930232&r2=930233&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml Fri Apr  2 10:52:06 2010
@@ -398,17 +398,6 @@ under the License.
         <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 
-    <!-- Permission services -->
-    <service name="basicGeneralLedgerPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="basePermissionCheck">
-        <description>Basic General Ledger Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
-    <service name="acctgTransactionPermissionCheck" engine="simple"
-            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgTransactionPermissionCheck">
-        <description>Basic General Ledger Permission Checking Logic</description>
-        <implements service="permissionInterface"/>
-    </service>
     <service name="createAcctgTransForWorkEffortIssuance" engine="simple" auth="true"
         location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransForWorkEffortIssuance">
         <description>Create an accounting transaction for inventory that is issued to a work effort (Type: INVENTORY D: RAWMAT_INVENTORY, C: WIP_INVENTORY)</description>

Added: ofbiz/trunk/applications/accounting/servicedef/services_perm.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_perm.xml?rev=930233&view=auto
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_perm.xml (added)
+++ ofbiz/trunk/applications/accounting/servicedef/services_perm.xml Fri Apr  2 10:52:06 2010
@@ -0,0 +1,91 @@
+<?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>Accounting Permission Services</description>
+    <vendor>OFBiz</vendor>
+    <version>1.0</version>
+    <service name="acctgAgreementPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgAgreementPermissionCheck">
+        <description>Accounting Agreement Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgBillingAcctCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgBillingAcctCheck">
+        <description>Basic Billing Account Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgCommissionPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="commissionPermissionCheck">
+        <description>Accounting Commission Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgCostPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgCostPermissionCheck">
+        <description>Accounting Cost Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgFinAcctPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgFinAcctPermissionCheck">
+        <description>Accounting Financial Account Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgFxPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgFxPermissionCheck">
+        <description>Accounting Foreign Exchange Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgInvoicePermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgInvoicePermissionCheck">
+        <description>Accounting Invoice Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgPrefPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="preferencePermissionCheck">
+        <description>Accounting Preferences Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="acctgTransactionPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgTransactionPermissionCheck">
+        <description>Basic General Ledger Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="basicGeneralLedgerPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="basePermissionCheck">
+        <description>Basic General Ledger Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+
+    <service name="fixedAssetPermissionCheck" engine="simple"
+            location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="basePermissionCheck">
+        <description>Fixed Asset Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
+</services>
\ No newline at end of file

Propchange: ofbiz/trunk/applications/accounting/servicedef/services_perm.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/applications/accounting/servicedef/services_perm.xml
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/trunk/applications/accounting/servicedef/services_perm.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml