|
Author: hansbak
Date: Fri Aug 17 06:45:07 2012 New Revision: 1374160 URL: http://svn.apache.org/viewvc?rev=1374160&view=rev Log: adapt ant create component target for new security organization Added: ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml (with props) ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml (with props) Removed: ofbiz/trunk/framework/resources/templates/SecurityData.xml Modified: ofbiz/trunk/build.xml ofbiz/trunk/framework/resources/templates/ofbiz-component.xml Modified: ofbiz/trunk/build.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=1374160&r1=1374159&r2=1374160&view=diff ============================================================================== --- ofbiz/trunk/build.xml (original) +++ ofbiz/trunk/build.xml Fri Aug 17 06:45:07 2012 @@ -1190,7 +1190,10 @@ under the License. <copy file="${basedir}/framework/resources/templates/TypeData.xml" tofile="${basedir}/hot-deploy/${component-name}/data/${component-resource-name}TypeData.xml" encoding="utf-8"> <filterset refid="replacePlaceholders"/> </copy> - <copy file="${basedir}/framework/resources/templates/SecurityData.xml" tofile="${basedir}/hot-deploy/${component-name}/data/${component-resource-name}SecurityData.xml" encoding="utf-8"> + <copy file="${basedir}/framework/resources/templates/SecurityPermissionSeedData.xml" tofile="${basedir}/hot-deploy/${component-name}/data/${component-resource-name}SecurityPermissionSeedData.xml" encoding="utf-8"> + <filterset refid="replacePlaceholders"/> + </copy> + <copy file="${basedir}/framework/resources/templates/SecurityGroupDemoData.xml" tofile="${basedir}/hot-deploy/${component-name}/data/${component-resource-name}SecurityGroupDemoData.xml" encoding="utf-8"> <filterset refid="replacePlaceholders"/> </copy> <copy file="${basedir}/framework/resources/templates/DemoData.xml" tofile="${basedir}/hot-deploy/${component-name}/data/${component-resource-name}DemoData.xml" encoding="utf-8"> Added: ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml?rev=1374160&view=auto ============================================================================== --- ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml (added) +++ ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml Fri Aug 17 06:45:07 2012 @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<entity-engine-xml> + <SecurityGroupPermission groupId="FULLADMIN" permissionId="@base-permission@_ADMIN"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="@base-permission@_CREATE"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="@base-permission@_DELETE"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="@base-permission@_UPDATE"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="@base-permission@_VIEW"/> + <SecurityGroupPermission groupId="VIEWADMIN" permissionId="@base-permission@_VIEW"/> + <SecurityGroupPermission groupId="BIZADMIN" permissionId="@base-permission@_ADMIN"/> +</entity-engine-xml> Propchange: ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/framework/resources/templates/SecurityGroupDemoData.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml?rev=1374160&view=auto ============================================================================== --- ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml (added) +++ ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml Fri Aug 17 06:45:07 2012 @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<entity-engine-xml> + <SecurityPermission description="View operations in the @component-resource-name@ Component." permissionId="@base-permission@_VIEW"/> + <SecurityPermission description="Create operations in the @component-resource-name@ Component." permissionId="@base-permission@_CREATE"/> + <SecurityPermission description="Update operations in the @component-resource-name@ Component." permissionId="@base-permission@_UPDATE"/> + <SecurityPermission description="Delete operations in the @component-resource-name@ Component." permissionId="@base-permission@_DELETE"/> + <SecurityPermission description="ALL operations in the @component-resource-name@ Component." permissionId="@base-permission@_ADMIN"/> + + <SecurityGroupPermission groupId="SUPER" permissionId="@base-permission@_ADMIN"/> + +</entity-engine-xml> Propchange: ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/framework/resources/templates/SecurityPermissionSeedData.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/framework/resources/templates/ofbiz-component.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/resources/templates/ofbiz-component.xml?rev=1374160&r1=1374159&r2=1374160&view=diff ============================================================================== --- ofbiz/trunk/framework/resources/templates/ofbiz-component.xml (original) +++ ofbiz/trunk/framework/resources/templates/ofbiz-component.xml Fri Aug 17 06:45:07 2012 @@ -17,7 +17,8 @@ <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/> <!-- <entity-resource type="eca" reader-name="main" loader="main" location="entitydef/eecas.xml"/> --> <entity-resource type="data" reader-name="seed" loader="main" location="data/@[hidden email]"/> - <entity-resource type="data" reader-name="seed" loader="main" location="data/@[hidden email]"/> + <entity-resource type="data" reader-name="seed" loader="main" location="data/@[hidden email]"/> + <entity-resource type="data" reader-name="demo" loader="main" location="data/@[hidden email]"/> <entity-resource type="data" reader-name="demo" loader="main" location="data/@[hidden email]"/> <!-- service resources: model(s), eca(s) and group definitions --> @@ -36,4 +37,4 @@ location="webapp/@webapp-name@" base-permission="OFBTOOLS,@base-permission@" mount-point="/@webapp-name@"/> -</ofbiz-component> \ No newline at end of file +</ofbiz-component> |
| Free forum by Nabble | Edit this page |
