[ofbiz-plugins] branch trunk updated: Improved: Move 'SecurityPermission' data to seed data files (OFBIZ-10575) (#38)

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

[ofbiz-plugins] branch trunk updated: Improved: Move 'SecurityPermission' data to seed data files (OFBIZ-10575) (#38)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 01e2e16  Improved: Move 'SecurityPermission' data to seed data files (OFBIZ-10575) (#38)
01e2e16 is described below

commit 01e2e16681bfab2bb94a0a286f3f66fb463ec6dc
Author: Priya Sharma <[hidden email]>
AuthorDate: Tue Aug 11 19:31:46 2020 +0530

    Improved: Move 'SecurityPermission' data to seed data files (OFBIZ-10575) (#38)
   
    Co-authored-by: Priya Sharma <[hidden email]>
---
 birt/data/BirtSecurityGroupDemoData.xml            |  6 -----
 birt/data/BirtSecurityPermissionSeedData.xml       | 26 ++++++++++++++++++++++
 myportal/data/MyPortalSecurityGroupDemoData.xml    |  3 ---
 .../data/MyPortalSecurityPermissionSeedData.xml    |  5 ++++-
 4 files changed, 30 insertions(+), 10 deletions(-)

diff --git a/birt/data/BirtSecurityGroupDemoData.xml b/birt/data/BirtSecurityGroupDemoData.xml
index 5182134..1213c8d 100644
--- a/birt/data/BirtSecurityGroupDemoData.xml
+++ b/birt/data/BirtSecurityGroupDemoData.xml
@@ -18,12 +18,6 @@
     under the License.
 -->
 <entity-engine-xml>
-    <SecurityPermission permissionId="BIRT_ADMIN" description="ALL Birt component operations"/>
-    <SecurityPermission permissionId="BIRT_CREATE" description="Create report from master"/>
-    <SecurityPermission permissionId="BIRT_UPDATE" description="Update operations for reports"/>
-    <SecurityPermission permissionId="BIRT_DELETE" description="Delete reports"/>
-    <SecurityPermission permissionId="BIRT_VIEW" description="View and use all birt reports"/>
-
     <SecurityGroup groupId="BIRTADMIN" description="Birt - admin"/>
     <SecurityGroup groupId="BIRTUSER" description="Birt - user"/>
 
diff --git a/birt/data/BirtSecurityPermissionSeedData.xml b/birt/data/BirtSecurityPermissionSeedData.xml
new file mode 100644
index 0000000..1facda0
--- /dev/null
+++ b/birt/data/BirtSecurityPermissionSeedData.xml
@@ -0,0 +1,26 @@
+<?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>
+    <SecurityPermission permissionId="BIRT_ADMIN" description="ALL Birt component operations"/>
+    <SecurityPermission permissionId="BIRT_CREATE" description="Create report from master"/>
+    <SecurityPermission permissionId="BIRT_UPDATE" description="Update operations for reports"/>
+    <SecurityPermission permissionId="BIRT_DELETE" description="Delete reports"/>
+    <SecurityPermission permissionId="BIRT_VIEW" description="View and use all birt reports"/>
+</entity-engine-xml>
\ No newline at end of file
diff --git a/myportal/data/MyPortalSecurityGroupDemoData.xml b/myportal/data/MyPortalSecurityGroupDemoData.xml
index 95aac62..ad98cd8 100644
--- a/myportal/data/MyPortalSecurityGroupDemoData.xml
+++ b/myportal/data/MyPortalSecurityGroupDemoData.xml
@@ -21,7 +21,6 @@ under the License.
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MYPORTALBASE_ADMIN"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FULLADMIN" permissionId="MYPORTALBASE_ADMIN"/>
     
-    <SecurityPermission permissionId="MYPORTAL_EMPLOYEE" description="Use the employee screens in myportal."/>
     <SecurityGroup description="Employee user of myportal, Limited access to the projectmgr, comms,custRequests" groupId="MYPORTAL_EMPLOYEE"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_EMPLOYEE" permissionId="MYPORTALBASE_ADMIN"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_EMPLOYEE" permissionId="MYPORTAL_EMPLOYEE"/>
@@ -47,7 +46,6 @@ under the License.
     <!-- and can upload content for email/task/project -->
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_EMPLOYEE" permissionId="CONTENTMGR_ROLE_CREATE"/>
 
-    <SecurityPermission permissionId="MYPORTAL_EMPL-NOEML" description="Usage of the employee screens in MYPORTAL: projectmanager and internal notes."/>
     <SecurityGroup description="Employee user of MYPORTAL, Limited access to the projectmgr and comms, custReq, no email" groupId="MYPORTAL_EMPL-NOEML"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_EMPL-NOEML" permissionId="MYPORTALBASE_ADMIN"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_EMPL-NOEML" permissionId="MYPORTAL_EMPLOYEE"/>
@@ -68,7 +66,6 @@ under the License.
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_EMPL-NOEML" permissionId="WORKEFFORTMGR_ROLE_UPDATE"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_EMPL-NOEML" permissionId="WORKEFFORTMGR_ROLE_DELETE"/>
     
-    <SecurityPermission permissionId="MYPORTAL_CUSTOMER" description="Use the customer screens in MYPORTAL."/>
     <SecurityGroup description="Customer user of MYPORTAL, Limited access to own custRequests, and project" groupId="MYPORTAL_CUSTOMER"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_CUSTOMER" permissionId="MYPORTALBASE_ADMIN"/>
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="MYPORTAL_CUSTOMER" permissionId="PARTYMGR_CME-NOTE_CREATE"/><!-- allow customer to read/write internal notes -->
diff --git a/myportal/data/MyPortalSecurityPermissionSeedData.xml b/myportal/data/MyPortalSecurityPermissionSeedData.xml
index df1631d..fe19f03 100644
--- a/myportal/data/MyPortalSecurityPermissionSeedData.xml
+++ b/myportal/data/MyPortalSecurityPermissionSeedData.xml
@@ -20,7 +20,10 @@ under the License.
 <entity-engine-xml>
     <SecurityPermission description="ALL MyPortal base operations" permissionId="MYPORTALBASE_ADMIN"/>
     <SecurityPermission description="MyPortal Base View permission." permissionId="MYPORTALBASE_VIEW"/>
-    
+    <SecurityPermission permissionId="MYPORTAL_EMPLOYEE" description="Use the employee screens in myportal."/>
+    <SecurityPermission permissionId="MYPORTAL_EMPL-NOEML" description="Usage of the employee screens in MYPORTAL: projectmanager and internal notes."/>
+    <SecurityPermission permissionId="MYPORTAL_CUSTOMER" description="Use the customer screens in MYPORTAL."/>
+
     <!-- Super group -->
     <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" permissionId="MYPORTALBASE_ADMIN"/>