From 85415ee45499b677a2e28490336c8df86765c654 Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Thu, 21 Jun 2012 07:21:49 +0000 Subject: [PATCH] split up securitypermissions as seed data and securitygroups as demo data with a single exception: the creation of a super security group which has general access to the system and which is used with the 'ant create-admin-user-login' command. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1352431 13f79535-47bb-0310-9956-ffa450edef68 --- ...ml => AssetMaintSecurityGroupDemoData.xml} | 6 -- .../AssetMaintSecurityPermissionSeedData.xml | 30 ++++++ assetmaint/ofbiz-component.xml | 3 +- ...Data.xml => EbaySecurityGroupDemoData.xml} | 3 - ebay/data/EbaySecurityPermissionSeedData.xml | 29 ++++++ ebay/ofbiz-component.xml | 3 +- ...xml => EbayStoreSecurityGroupDemoData.xml} | 3 - .../EbayStoreSecurityPermissionSeedData.xml | 28 ++++++ ebaystore/ofbiz-component.xml | 3 +- example/data/ExampleSecurityGroupDemoData.xml | 29 ++++++ ... => ExampleSecurityPermissionSeedData.xml} | 10 +- example/ofbiz-component.xml | 3 +- ...ml => GoogleBaseSecurityGroupDemoData.xml} | 5 - .../GoogleBaseSecurityPermissionSeedData.xml | 29 ++++++ googlebase/ofbiz-component.xml | 3 +- .../GoogleCheckoutSecurityGroupDemoData.xml | 29 ++++++ ...gleCheckoutSecurityPermissionSeedData.xml} | 10 +- googlecheckout/ofbiz-component.xml | 3 +- .../data/HhFacilitySecurityGroupDemoData.xml | 22 +++++ ... HhFacilitySecurityPermissionSeedData.xml} | 3 +- hhfacility/ofbiz-component.xml | 3 +- ...lTypeData.xml => MyPortalPageDemoData.xml} | 0 ....xml => MyPortalSecurityGroupDemoData.xml} | 3 - .../MyPortalSecurityPermissionSeedData.xml | 27 ++++++ myportal/ofbiz-component.xml | 5 +- ...ata.xml => OagisSecurityGroupDemoData.xml} | 2 - .../data/OagisSecurityPermissionSeedData.xml | 28 ++++++ oagis/ofbiz-component.xml | 3 +- .../data/ProjectMgrSecurityGroupDemoData.xml | 42 ++++++++ ... ProjectMgrSecurityPermissionSeedData.xml} | 18 +--- projectmgr/ofbiz-component.xml | 3 +- ...ata.xml => scrumSecurityGroupDemoData.xml} | 71 -------------- .../data/scrumSecurityPermissionSeedData.xml | 95 +++++++++++++++++++ scrum/ofbiz-component.xml | 3 +- webpos/data/WebPosSecurityGroupDemoData.xml | 24 +++++ ...l => WebPosSecurityPermissionSeedData.xml} | 6 +- webpos/ofbiz-component.xml | 3 +- ....xml => WorkFlowSecurityGroupDemoData.xml} | 1 - .../WorkFlowSecurityPermissionSeedData.xml | 26 +++++ workflow/ofbiz-component.xml | 3 +- 40 files changed, 478 insertions(+), 142 deletions(-) rename assetmaint/data/{AssetMaintSecurityData.xml => AssetMaintSecurityGroupDemoData.xml} (73%) create mode 100644 assetmaint/data/AssetMaintSecurityPermissionSeedData.xml rename ebay/data/{EbaySecurityData.xml => EbaySecurityGroupDemoData.xml} (84%) create mode 100644 ebay/data/EbaySecurityPermissionSeedData.xml rename ebaystore/data/{EbayStoreSecurityData.xml => EbayStoreSecurityGroupDemoData.xml} (83%) create mode 100644 ebaystore/data/EbayStoreSecurityPermissionSeedData.xml create mode 100644 example/data/ExampleSecurityGroupDemoData.xml rename example/data/{ExampleSecurityData.xml => ExampleSecurityPermissionSeedData.xml} (72%) rename googlebase/data/{GoogleBaseSecurityData.xml => GoogleBaseSecurityGroupDemoData.xml} (77%) create mode 100644 googlebase/data/GoogleBaseSecurityPermissionSeedData.xml create mode 100644 googlecheckout/data/GoogleCheckoutSecurityGroupDemoData.xml rename googlecheckout/data/{GoogleCheckoutSecurityData.xml => GoogleCheckoutSecurityPermissionSeedData.xml} (72%) create mode 100644 hhfacility/data/HhFacilitySecurityGroupDemoData.xml rename hhfacility/data/{HhFacilitySecurityData.xml => HhFacilitySecurityPermissionSeedData.xml} (90%) rename myportal/data/{MyPortalTypeData.xml => MyPortalPageDemoData.xml} (100%) rename myportal/data/{MyPortalSecurityData.xml => MyPortalSecurityGroupDemoData.xml} (97%) create mode 100644 myportal/data/MyPortalSecurityPermissionSeedData.xml rename oagis/data/{OagisSecurityData.xml => OagisSecurityGroupDemoData.xml} (91%) create mode 100644 oagis/data/OagisSecurityPermissionSeedData.xml create mode 100644 projectmgr/data/ProjectMgrSecurityGroupDemoData.xml rename projectmgr/data/{ProjectMgrSecurityData.xml => ProjectMgrSecurityPermissionSeedData.xml} (65%) rename scrum/data/{scrumSecurityData.xml => scrumSecurityGroupDemoData.xml} (64%) create mode 100644 scrum/data/scrumSecurityPermissionSeedData.xml create mode 100644 webpos/data/WebPosSecurityGroupDemoData.xml rename webpos/data/{WebPosSecurityData.xml => WebPosSecurityPermissionSeedData.xml} (83%) rename workflow/data/{WorkFlowSecurityData.xml => WorkFlowSecurityGroupDemoData.xml} (91%) create mode 100644 workflow/data/WorkFlowSecurityPermissionSeedData.xml diff --git a/assetmaint/data/AssetMaintSecurityData.xml b/assetmaint/data/AssetMaintSecurityGroupDemoData.xml similarity index 73% rename from assetmaint/data/AssetMaintSecurityData.xml rename to assetmaint/data/AssetMaintSecurityGroupDemoData.xml index 67a5c8a1d..58b3b52a2 100644 --- a/assetmaint/data/AssetMaintSecurityData.xml +++ b/assetmaint/data/AssetMaintSecurityGroupDemoData.xml @@ -19,12 +19,6 @@ under the License. --> - - - - - - diff --git a/assetmaint/data/AssetMaintSecurityPermissionSeedData.xml b/assetmaint/data/AssetMaintSecurityPermissionSeedData.xml new file mode 100644 index 000000000..fc12c2e04 --- /dev/null +++ b/assetmaint/data/AssetMaintSecurityPermissionSeedData.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + diff --git a/assetmaint/ofbiz-component.xml b/assetmaint/ofbiz-component.xml index 355a0a0c7..c086389fa 100644 --- a/assetmaint/ofbiz-component.xml +++ b/assetmaint/ofbiz-component.xml @@ -32,7 +32,8 @@ - + + diff --git a/ebay/data/EbaySecurityData.xml b/ebay/data/EbaySecurityGroupDemoData.xml similarity index 84% rename from ebay/data/EbaySecurityData.xml rename to ebay/data/EbaySecurityGroupDemoData.xml index 3ccddfff9..a27abd575 100644 --- a/ebay/data/EbaySecurityData.xml +++ b/ebay/data/EbaySecurityGroupDemoData.xml @@ -20,9 +20,6 @@ under the License. - - - diff --git a/ebay/data/EbaySecurityPermissionSeedData.xml b/ebay/data/EbaySecurityPermissionSeedData.xml new file mode 100644 index 000000000..549950f3d --- /dev/null +++ b/ebay/data/EbaySecurityPermissionSeedData.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/ebay/ofbiz-component.xml b/ebay/ofbiz-component.xml index 10c96e319..6b3227ed8 100644 --- a/ebay/ofbiz-component.xml +++ b/ebay/ofbiz-component.xml @@ -26,7 +26,8 @@ under the License. - + + diff --git a/ebaystore/data/EbayStoreSecurityData.xml b/ebaystore/data/EbayStoreSecurityGroupDemoData.xml similarity index 83% rename from ebaystore/data/EbayStoreSecurityData.xml rename to ebaystore/data/EbayStoreSecurityGroupDemoData.xml index 5628bd855..7b4da6d4d 100644 --- a/ebaystore/data/EbayStoreSecurityData.xml +++ b/ebaystore/data/EbayStoreSecurityGroupDemoData.xml @@ -20,9 +20,6 @@ under the License. - - - diff --git a/ebaystore/data/EbayStoreSecurityPermissionSeedData.xml b/ebaystore/data/EbayStoreSecurityPermissionSeedData.xml new file mode 100644 index 000000000..14c4617b0 --- /dev/null +++ b/ebaystore/data/EbayStoreSecurityPermissionSeedData.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + diff --git a/ebaystore/ofbiz-component.xml b/ebaystore/ofbiz-component.xml index 947ea0a2c..a824f32fe 100644 --- a/ebaystore/ofbiz-component.xml +++ b/ebaystore/ofbiz-component.xml @@ -28,7 +28,8 @@ under the License. - + + diff --git a/example/data/ExampleSecurityGroupDemoData.xml b/example/data/ExampleSecurityGroupDemoData.xml new file mode 100644 index 000000000..43759462b --- /dev/null +++ b/example/data/ExampleSecurityGroupDemoData.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/example/data/ExampleSecurityData.xml b/example/data/ExampleSecurityPermissionSeedData.xml similarity index 72% rename from example/data/ExampleSecurityData.xml rename to example/data/ExampleSecurityPermissionSeedData.xml index 93b9fade5..6944460d4 100644 --- a/example/data/ExampleSecurityData.xml +++ b/example/data/ExampleSecurityPermissionSeedData.xml @@ -24,11 +24,7 @@ under the License. - - - - - - - + + + diff --git a/example/ofbiz-component.xml b/example/ofbiz-component.xml index 01b235717..70794f35a 100644 --- a/example/ofbiz-component.xml +++ b/example/ofbiz-component.xml @@ -36,7 +36,8 @@ under the License. - + + diff --git a/googlebase/data/GoogleBaseSecurityData.xml b/googlebase/data/GoogleBaseSecurityGroupDemoData.xml similarity index 77% rename from googlebase/data/GoogleBaseSecurityData.xml rename to googlebase/data/GoogleBaseSecurityGroupDemoData.xml index bab079a1a..389179b6d 100644 --- a/googlebase/data/GoogleBaseSecurityData.xml +++ b/googlebase/data/GoogleBaseSecurityGroupDemoData.xml @@ -20,16 +20,11 @@ under the License. - - - - - diff --git a/googlebase/data/GoogleBaseSecurityPermissionSeedData.xml b/googlebase/data/GoogleBaseSecurityPermissionSeedData.xml new file mode 100644 index 000000000..4824dad2b --- /dev/null +++ b/googlebase/data/GoogleBaseSecurityPermissionSeedData.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/googlebase/ofbiz-component.xml b/googlebase/ofbiz-component.xml index 43b389cb2..056259b69 100644 --- a/googlebase/ofbiz-component.xml +++ b/googlebase/ofbiz-component.xml @@ -27,7 +27,8 @@ under the License. - + + diff --git a/googlecheckout/data/GoogleCheckoutSecurityGroupDemoData.xml b/googlecheckout/data/GoogleCheckoutSecurityGroupDemoData.xml new file mode 100644 index 000000000..6688f64e1 --- /dev/null +++ b/googlecheckout/data/GoogleCheckoutSecurityGroupDemoData.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/googlecheckout/data/GoogleCheckoutSecurityData.xml b/googlecheckout/data/GoogleCheckoutSecurityPermissionSeedData.xml similarity index 72% rename from googlecheckout/data/GoogleCheckoutSecurityData.xml rename to googlecheckout/data/GoogleCheckoutSecurityPermissionSeedData.xml index 90a3f3d72..40d76835d 100644 --- a/googlecheckout/data/GoogleCheckoutSecurityData.xml +++ b/googlecheckout/data/GoogleCheckoutSecurityPermissionSeedData.xml @@ -24,11 +24,7 @@ under the License. - - - - - - - + + + diff --git a/googlecheckout/ofbiz-component.xml b/googlecheckout/ofbiz-component.xml index 06ecd51f6..a583103ca 100644 --- a/googlecheckout/ofbiz-component.xml +++ b/googlecheckout/ofbiz-component.xml @@ -28,7 +28,8 @@ - + + diff --git a/hhfacility/data/HhFacilitySecurityGroupDemoData.xml b/hhfacility/data/HhFacilitySecurityGroupDemoData.xml new file mode 100644 index 000000000..057a09e1e --- /dev/null +++ b/hhfacility/data/HhFacilitySecurityGroupDemoData.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/hhfacility/data/HhFacilitySecurityData.xml b/hhfacility/data/HhFacilitySecurityPermissionSeedData.xml similarity index 90% rename from hhfacility/data/HhFacilitySecurityData.xml rename to hhfacility/data/HhFacilitySecurityPermissionSeedData.xml index 01e2a91e9..b7a344d6d 100644 --- a/hhfacility/data/HhFacilitySecurityData.xml +++ b/hhfacility/data/HhFacilitySecurityPermissionSeedData.xml @@ -21,5 +21,6 @@ under the License. - + + diff --git a/hhfacility/ofbiz-component.xml b/hhfacility/ofbiz-component.xml index 4b2a9f2a0..d8cb155a8 100644 --- a/hhfacility/ofbiz-component.xml +++ b/hhfacility/ofbiz-component.xml @@ -24,7 +24,8 @@ under the License. - + + diff --git a/myportal/data/MyPortalTypeData.xml b/myportal/data/MyPortalPageDemoData.xml similarity index 100% rename from myportal/data/MyPortalTypeData.xml rename to myportal/data/MyPortalPageDemoData.xml diff --git a/myportal/data/MyPortalSecurityData.xml b/myportal/data/MyPortalSecurityGroupDemoData.xml similarity index 97% rename from myportal/data/MyPortalSecurityData.xml rename to myportal/data/MyPortalSecurityGroupDemoData.xml index 2b993e590..d15b2dbe5 100644 --- a/myportal/data/MyPortalSecurityData.xml +++ b/myportal/data/MyPortalSecurityGroupDemoData.xml @@ -18,9 +18,6 @@ specific language governing permissions and limitations under the License. --> - - - diff --git a/myportal/data/MyPortalSecurityPermissionSeedData.xml b/myportal/data/MyPortalSecurityPermissionSeedData.xml new file mode 100644 index 000000000..14937b23d --- /dev/null +++ b/myportal/data/MyPortalSecurityPermissionSeedData.xml @@ -0,0 +1,27 @@ + + + + + + + + + + diff --git a/myportal/ofbiz-component.xml b/myportal/ofbiz-component.xml index a0682d91f..3782b9e54 100644 --- a/myportal/ofbiz-component.xml +++ b/myportal/ofbiz-component.xml @@ -24,8 +24,9 @@ - - + + + diff --git a/oagis/data/OagisSecurityData.xml b/oagis/data/OagisSecurityGroupDemoData.xml similarity index 91% rename from oagis/data/OagisSecurityData.xml rename to oagis/data/OagisSecurityGroupDemoData.xml index a2ce94ef3..ce4692810 100644 --- a/oagis/data/OagisSecurityData.xml +++ b/oagis/data/OagisSecurityGroupDemoData.xml @@ -20,8 +20,6 @@ under the License. - - diff --git a/oagis/data/OagisSecurityPermissionSeedData.xml b/oagis/data/OagisSecurityPermissionSeedData.xml new file mode 100644 index 000000000..cc854a78d --- /dev/null +++ b/oagis/data/OagisSecurityPermissionSeedData.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + diff --git a/oagis/ofbiz-component.xml b/oagis/ofbiz-component.xml index dcc0cfaa7..2ae939c49 100644 --- a/oagis/ofbiz-component.xml +++ b/oagis/ofbiz-component.xml @@ -28,7 +28,8 @@ under the License. - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projectmgr/data/ProjectMgrSecurityData.xml b/projectmgr/data/ProjectMgrSecurityPermissionSeedData.xml similarity index 65% rename from projectmgr/data/ProjectMgrSecurityData.xml rename to projectmgr/data/ProjectMgrSecurityPermissionSeedData.xml index 08887f2ba..f5ddb38be 100644 --- a/projectmgr/data/ProjectMgrSecurityData.xml +++ b/projectmgr/data/ProjectMgrSecurityPermissionSeedData.xml @@ -36,21 +36,7 @@ under the License. - - - - - - - - - - - - - - - - + + diff --git a/projectmgr/ofbiz-component.xml b/projectmgr/ofbiz-component.xml index 1094497ea..cc5520982 100644 --- a/projectmgr/ofbiz-component.xml +++ b/projectmgr/ofbiz-component.xml @@ -29,7 +29,8 @@ under the License. - + + diff --git a/scrum/data/scrumSecurityData.xml b/scrum/data/scrumSecurityGroupDemoData.xml similarity index 64% rename from scrum/data/scrumSecurityData.xml rename to scrum/data/scrumSecurityGroupDemoData.xml index f08068d1b..64f843fd9 100644 --- a/scrum/data/scrumSecurityData.xml +++ b/scrum/data/scrumSecurityGroupDemoData.xml @@ -18,77 +18,6 @@ specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/scrum/data/scrumSecurityPermissionSeedData.xml b/scrum/data/scrumSecurityPermissionSeedData.xml new file mode 100644 index 000000000..3940bd6ea --- /dev/null +++ b/scrum/data/scrumSecurityPermissionSeedData.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/ofbiz-component.xml b/scrum/ofbiz-component.xml index 659f5a759..0cdd682bf 100644 --- a/scrum/ofbiz-component.xml +++ b/scrum/ofbiz-component.xml @@ -35,7 +35,8 @@ under the License. - + + diff --git a/webpos/data/WebPosSecurityGroupDemoData.xml b/webpos/data/WebPosSecurityGroupDemoData.xml new file mode 100644 index 000000000..5a506100e --- /dev/null +++ b/webpos/data/WebPosSecurityGroupDemoData.xml @@ -0,0 +1,24 @@ + + + + + + + diff --git a/webpos/data/WebPosSecurityData.xml b/webpos/data/WebPosSecurityPermissionSeedData.xml similarity index 83% rename from webpos/data/WebPosSecurityData.xml rename to webpos/data/WebPosSecurityPermissionSeedData.xml index 6697fde7d..e2cba56c6 100644 --- a/webpos/data/WebPosSecurityData.xml +++ b/webpos/data/WebPosSecurityPermissionSeedData.xml @@ -18,10 +18,10 @@ specific language governing permissions and limitations under the License. --> - + - - + + diff --git a/webpos/ofbiz-component.xml b/webpos/ofbiz-component.xml index ccaedd0fa..dba9cb145 100644 --- a/webpos/ofbiz-component.xml +++ b/webpos/ofbiz-component.xml @@ -26,7 +26,8 @@ under the License. - + + diff --git a/workflow/data/WorkFlowSecurityData.xml b/workflow/data/WorkFlowSecurityGroupDemoData.xml similarity index 91% rename from workflow/data/WorkFlowSecurityData.xml rename to workflow/data/WorkFlowSecurityGroupDemoData.xml index be2055473..ff472f251 100644 --- a/workflow/data/WorkFlowSecurityData.xml +++ b/workflow/data/WorkFlowSecurityGroupDemoData.xml @@ -19,7 +19,6 @@ under the License. --> - diff --git a/workflow/data/WorkFlowSecurityPermissionSeedData.xml b/workflow/data/WorkFlowSecurityPermissionSeedData.xml new file mode 100644 index 000000000..35bfd87e5 --- /dev/null +++ b/workflow/data/WorkFlowSecurityPermissionSeedData.xml @@ -0,0 +1,26 @@ + + + + + + + + + diff --git a/workflow/ofbiz-component.xml b/workflow/ofbiz-component.xml index 1e478816d..5083bdf15 100644 --- a/workflow/ofbiz-component.xml +++ b/workflow/ofbiz-component.xml @@ -28,7 +28,8 @@ under the License. - + +