svn commit: r795728 - in /ofbiz/trunk: applications/product/data/ProductUserDemoData.xml applications/securityext/data/PasswordSecurityData.xml applications/securityext/data/UserDemoData.xml specialpurpose/ecommerce/data/DemoProduct.xml

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

svn commit: r795728 - in /ofbiz/trunk: applications/product/data/ProductUserDemoData.xml applications/securityext/data/PasswordSecurityData.xml applications/securityext/data/UserDemoData.xml specialpurpose/ecommerce/data/DemoProduct.xml

ashish-18
Author: ashish
Date: Mon Jul 20 09:40:55 2009
New Revision: 795728

URL: http://svn.apache.org/viewvc?rev=795728&view=rev
Log:
Adding more data to test role based permissions on catalog manager.
For testing this you can login by user ltdadmin & ltdadmin1.
And then can update records in consecutive tabs present in the EditProduct screen.

Modified:
    ofbiz/trunk/applications/product/data/ProductUserDemoData.xml
    ofbiz/trunk/applications/securityext/data/PasswordSecurityData.xml
    ofbiz/trunk/applications/securityext/data/UserDemoData.xml
    ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml

Modified: ofbiz/trunk/applications/product/data/ProductUserDemoData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/data/ProductUserDemoData.xml?rev=795728&r1=795727&r2=795728&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/data/ProductUserDemoData.xml (original)
+++ ofbiz/trunk/applications/product/data/ProductUserDemoData.xml Mon Jul 20 09:40:55 2009
@@ -21,4 +21,5 @@
 <entity-engine-xml>
     <!-- Limited user demo -->
     <UserLoginSecurityGroup groupId="CATALOGADMIN_LTD" userLoginId="ltdadmin" fromDate="2001-01-01 12:00:00.0"/>
+    <UserLoginSecurityGroup groupId="CATALOGADMIN_LTD" userLoginId="ltdadmin1" fromDate="2001-01-01 12:00:00.0"/>
 </entity-engine-xml>

Modified: ofbiz/trunk/applications/securityext/data/PasswordSecurityData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/securityext/data/PasswordSecurityData.xml?rev=795728&r1=795727&r2=795728&view=diff
==============================================================================
--- ofbiz/trunk/applications/securityext/data/PasswordSecurityData.xml (original)
+++ ofbiz/trunk/applications/securityext/data/PasswordSecurityData.xml Mon Jul 20 09:40:55 2009
@@ -25,5 +25,6 @@
     <UserLogin userLoginId="flexadmin" currentPassword="{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a" passwordHint=""/>
     <UserLogin userLoginId="demoadmin" currentPassword="{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a" passwordHint=""/>
     <UserLogin userLoginId="ltdadmin" currentPassword="{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a" passwordHint=""/>
+    <UserLogin userLoginId="ltdadmin1" currentPassword="{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a" passwordHint=""/>
     <UserLogin userLoginId="bizadmin" currentPassword="{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a" passwordHint=""/>
 </entity-engine-xml>

Modified: ofbiz/trunk/applications/securityext/data/UserDemoData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/securityext/data/UserDemoData.xml?rev=795728&r1=795727&r2=795728&view=diff
==============================================================================
--- ofbiz/trunk/applications/securityext/data/UserDemoData.xml (original)
+++ ofbiz/trunk/applications/securityext/data/UserDemoData.xml Mon Jul 20 09:40:55 2009
@@ -46,6 +46,15 @@
     <PartyRole partyId="ltdadmin" roleTypeId="LTD_ADMIN"/>
     <PartyRole partyId="ltdadmin" roleTypeId="_NA_"/>
     <PartyContactMech partyId="ltdadmin" contactMechId="admin" fromDate="2003-01-01 00:00:00.0" allowSolicitation="Y"/>
+    
+    <!-- Adding another limited admin record(i.e with partyId ltdadmin1) to test role based security -->
+    
+    <Party partyId="ltdadmin1" partyTypeId="PERSON"/>
+    <Person firstName="Limited" lastName="Administrator1" middleName="" partyId="ltdadmin1" personalTitle="Mr."/>
+    <PartyRole partyId="ltdadmin1" roleTypeId="ORDER_CLERK"/>
+    <PartyRole partyId="ltdadmin1" roleTypeId="LTD_ADMIN"/>
+    <PartyRole partyId="ltdadmin1" roleTypeId="_NA_"/>
+    <PartyContactMech partyId="ltdadmin1" contactMechId="admin" fromDate="2003-01-01 00:00:00.0" allowSolicitation="Y"/>
 
     <Party partyId="externaluser" partyTypeId="PERSON"/>
     <Person firstName="External" lastName="User" middleName="" partyId="externaluser" personalTitle="Mr."/>
@@ -68,12 +77,14 @@
     <UserLogin userLoginId="flexadmin" partyId="admin"/>
     <UserLogin userLoginId="demoadmin" partyId="admin"/>
     <UserLogin userLoginId="ltdadmin" partyId="ltdadmin"/>
+    <UserLogin userLoginId="ltdadmin1" partyId="ltdadmin1"/>
     <UserLogin userLoginId="bizadmin" partyId="bizadmin"/>
 
     <UserLoginSecurityGroup groupId="FULLADMIN" userLoginId="admin" fromDate="2001-01-01 12:00:00.0"/>
     <UserLoginSecurityGroup groupId="FLEXADMIN" userLoginId="flexadmin" fromDate="2001-01-01 12:00:00.0"/>
     <UserLoginSecurityGroup groupId="VIEWADMIN" userLoginId="demoadmin" fromDate="2001-01-01 12:00:00.0"/>
     <UserLoginSecurityGroup groupId="VIEWADMIN" userLoginId="ltdadmin" fromDate="2001-01-01 12:00:00.0"/>
+    <UserLoginSecurityGroup groupId="VIEWADMIN" userLoginId="ltdadmin1" fromDate="2001-01-01 12:00:00.0"/>
     <UserLoginSecurityGroup groupId="BIZADMIN" userLoginId="bizadmin" fromDate="2001-01-01 12:00:00.0"/>
 
 </entity-engine-xml>

Modified: ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml?rev=795728&r1=795727&r2=795728&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml Mon Jul 20 09:40:55 2009
@@ -151,6 +151,9 @@
     <ProductCategory categoryName="Test Limited Admin Category"
         longDescription="Test Limited Admin Category" productCategoryId="TSTLTDADMIN" productCategoryTypeId="CATALOG_CATEGORY"/>
     <ProductCategoryRole productCategoryId="TSTLTDADMIN" partyId="ltdadmin" roleTypeId="LTD_ADMIN" fromDate="2001-05-13 12:00:00.0"/>
+    
+    <!-- Adding this record to test role based security -->
+    <ProductCategoryRole productCategoryId="TSTLTDADMIN" partyId="ltdadmin1" roleTypeId="LTD_ADMIN" fromDate="2001-05-13 12:00:00.0"/>
 
     <ProductCategory categoryName="Test Cross Sell Category"
         longDescription="Test Cross Sell Category" productCategoryId="TSTCSL" productCategoryTypeId="CROSS_SELL_CATEGORY"/>
@@ -486,7 +489,10 @@
     <ProductCategoryMember productCategoryId="TSTCSL" productId="GZ-7000" fromDate="2003-03-04 19:12:32.389"/>
     <ProductCategoryMember productCategoryId="TSTCSL" productId="GZ-8544" fromDate="2003-03-04 18:46:46.557"/>
     <ProductCategoryMember productCategoryId="TSTCSL" productId="GZ-9290" fromDate="2003-03-04 18:55:14.547"/>
-
+    
+    <!-- Added record to check role based permission for limited admin user -->
+    <ProductCategoryMember productCategoryId="TSTLTDADMIN" productId="GZ-2644" fromDate="2003-03-04 18:55:14.547"/>
+    
     <ProductCategoryRollup fromDate="2001-05-13 12:00:00.0" parentProductCategoryId="CATALOG1" productCategoryId="100"/>
     <ProductCategoryRollup fromDate="2001-05-13 12:00:00.0" parentProductCategoryId="100" productCategoryId="101"/>
     <ProductCategoryRollup fromDate="2001-05-13 12:00:00.0" parentProductCategoryId="100" productCategoryId="102"/>