You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/09/26 15:55:55 UTC

svn commit: r579654 - in /ofbiz/trunk: framework/example/ framework/exampleext/ specialpurpose/oagis/ specialpurpose/oagis/data/ specialpurpose/projectmgr/ specialpurpose/projectmgr/data/

Author: jacopoc
Date: Wed Sep 26 06:55:54 2007
New Revision: 579654

URL: http://svn.apache.org/viewvc?rev=579654&view=rev
Log:
Added seed data for VIEW permission to the Oagis and ProjectMgr components.
Added base permissions to the Example*, Oagis, ProjectMgr components.

Added:
    ofbiz/trunk/specialpurpose/oagis/data/OagisSecurityData.xml
    ofbiz/trunk/specialpurpose/projectmgr/data/ProjectMgrSecurityData.xml
Modified:
    ofbiz/trunk/framework/example/ofbiz-component.xml
    ofbiz/trunk/framework/exampleext/ofbiz-component.xml
    ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml
    ofbiz/trunk/specialpurpose/projectmgr/ofbiz-component.xml

Modified: ofbiz/trunk/framework/example/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/ofbiz-component.xml?rev=579654&r1=579653&r2=579654&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/ofbiz-component.xml (original)
+++ ofbiz/trunk/framework/example/ofbiz-component.xml Wed Sep 26 06:55:54 2007
@@ -52,6 +52,6 @@
         title="Example"
         server="default-server"
         location="webapp/example"
-        base-permission="OFBTOOLS"
+        base-permission="OFBTOOLS,EXAMPLE"
         mount-point="/example"/>
 </ofbiz-component>

Modified: ofbiz/trunk/framework/exampleext/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/exampleext/ofbiz-component.xml?rev=579654&r1=579653&r2=579654&view=diff
==============================================================================
--- ofbiz/trunk/framework/exampleext/ofbiz-component.xml (original)
+++ ofbiz/trunk/framework/exampleext/ofbiz-component.xml Wed Sep 26 06:55:54 2007
@@ -24,5 +24,5 @@
     <resource-loader name="main" type="component"/>
 
     <webapp name="exampleext" title="ExampleExt" server="default-server" location="webapp/exampleext"
-        base-permission="OFBTOOLS" mount-point="/exampleext"/>
+        base-permission="OFBTOOLS,EXAMPLE" mount-point="/exampleext"/>
 </ofbiz-component>

Added: ofbiz/trunk/specialpurpose/oagis/data/OagisSecurityData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/data/OagisSecurityData.xml?rev=579654&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/data/OagisSecurityData.xml (added)
+++ ofbiz/trunk/specialpurpose/oagis/data/OagisSecurityData.xml Wed Sep 26 06:55:54 2007
@@ -0,0 +1,30 @@
+<?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.
+-->
+
+<entity-engine-xml>
+    <!-- Oagis component security -->
+    <SecurityPermission description="View operations in the Oagis application." permissionId="OAGIS_VIEW"/>
+
+    <SecurityGroupPermission groupId="FLEXADMIN" permissionId="OAGIS_VIEW"/>
+    <SecurityGroupPermission groupId="FULLADMIN" permissionId="OAGIS_VIEW"/>
+    <SecurityGroupPermission groupId="VIEWADMIN" permissionId="OAGIS_VIEW"/>
+    <SecurityGroupPermission groupId="BIZADMIN" permissionId="OAGIS_VIEW"/>
+
+</entity-engine-xml>

Modified: ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml?rev=579654&r1=579653&r2=579654&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml (original)
+++ ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml Wed Sep 26 06:55:54 2007
@@ -29,6 +29,7 @@
     <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/>
     <entity-resource type="group" reader-name="main" loader="main" location="entitydef/entitygroup.xml"/>
     <entity-resource type="data" reader-name="seed" loader="main" location="data/OagisTypeData.xml"/>
+    <entity-resource type="data" reader-name="seed" loader="main" location="data/OagisSecurityData.xml"/>
     
     <service-resource type="model" loader="main" location="servicedef/services.xml"/>
     <!-- Uncomment To activate automatic messaging to the partner
@@ -39,7 +40,7 @@
         title="Oagis"
         server="default-server"
         location="webapp/oagis"
-        base-permission="OFBTOOLS"
+        base-permission="OFBTOOLS,OAGIS"
         mount-point="/oagis"
         app-bar-display="true"/>
 </ofbiz-component>

Added: ofbiz/trunk/specialpurpose/projectmgr/data/ProjectMgrSecurityData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/data/ProjectMgrSecurityData.xml?rev=579654&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/data/ProjectMgrSecurityData.xml (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/data/ProjectMgrSecurityData.xml Wed Sep 26 06:55:54 2007
@@ -0,0 +1,30 @@
+<?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.
+-->
+
+<entity-engine-xml>
+    <!-- Project Manager security -->
+    <SecurityPermission description="View operations in the Project Manager." permissionId="PROJECT_VIEW"/>
+
+    <SecurityGroupPermission groupId="FLEXADMIN" permissionId="PROJECT_VIEW"/>
+    <SecurityGroupPermission groupId="FULLADMIN" permissionId="PROJECT_VIEW"/>
+    <SecurityGroupPermission groupId="VIEWADMIN" permissionId="PROJECT_VIEW"/>
+    <SecurityGroupPermission groupId="BIZADMIN" permissionId="PROJECT_VIEW"/>
+
+</entity-engine-xml>

Modified: ofbiz/trunk/specialpurpose/projectmgr/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/ofbiz-component.xml?rev=579654&r1=579653&r2=579654&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/ofbiz-component.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/ofbiz-component.xml Wed Sep 26 06:55:54 2007
@@ -26,13 +26,14 @@
     <classpath type="dir" location="config"/>
     <classpath type="jar" location="build/lib/*"/>
     <entity-resource type="data" reader-name="seed" loader="main" location="data/ProjectMgrTypeData.xml"/>
+    <entity-resource type="data" reader-name="seed" loader="main" location="data/ProjectMgrSecurityData.xml"/>
     <!-- service-resource type="model" loader="main" location="servicedef/services.xml"/-->
 
     <webapp name="projectmgr"
         title="Project"
         server="default-server"
         location="webapp/projectmgr"
-        base-permission="OFBTOOLS"
+        base-permission="OFBTOOLS,PROJECT"
         mount-point="/projectmgr"
         app-bar-display="true"/>
 </ofbiz-component>