blob: 1d7692a3dd9baf87b6d9aa1c573a719898f7bec2 [file] [log] [blame]
Pamela Dragosh91d04c62017-02-14 19:41:00 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 ECOMP-PAP-REST
5 ================================================================================
6 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
22 <persistence-unit name="XACML-PAP-REST">
23 <class>org.openecomp.policy.rest.jpa.PolicyEntity</class>
24 <class>org.openecomp.policy.rest.jpa.ConfigurationDataEntity</class>
25 <class>org.openecomp.policy.rest.jpa.PolicyDBDaoEntity</class>
26 <class>org.openecomp.policy.rest.jpa.GroupEntity</class>
27 <class>org.openecomp.policy.rest.jpa.PdpEntity</class>
28 <class>org.openecomp.policy.rest.jpa.ActionBodyEntity</class>
29 <class>org.openecomp.policy.rest.jpa.DatabaseLockEntity</class>
30 <class>org.openecomp.policy.rest.jpa.PolicyVersion</class>
31 <class>org.openecomp.policy.rest.jpa.PolicyScore</class>
32 <class>org.openecomp.policy.rest.jpa.FunctionDefinition</class>
33 <class>org.openecomp.policy.rest.jpa.Attribute</class>
34 <class>org.openecomp.policy.rest.jpa.Category</class>
35 <class>org.openecomp.policy.rest.jpa.ConstraintType</class>
36 <class>org.openecomp.policy.rest.jpa.ConstraintValue</class>
37 <class>org.openecomp.policy.rest.jpa.Datatype</class>
38 <class>org.openecomp.policy.rest.jpa.FunctionArgument</class>
39 <class>org.openecomp.policy.rest.jpa.UserInfo</class>
40 <class>org.openecomp.policy.rest.jpa.ActionPolicyDict</class>
41 <class>org.openecomp.policy.rest.jpa.DecisionSettings</class>
42 <class>org.openecomp.policy.rest.jpa.MicroServiceModels</class>
43 <class>org.openecomp.policy.rest.jpa.BRMSParamTemplate</class>
44 <class>org.openecomp.policy.rest.jpa.PolicyEditorScopes</class>
45 <!-- unique to PolicyEngineUtils - will be audited from PAP -->
46 <class>org.openecomp.policy.jpa.BackUpMonitorEntity</class>
47 <!-- unique to integrity-monitor - will be audited from PAP -->
48 <class>org.openecomp.policy.common.im.jpa.StateManagementEntity</class>
49 <class>org.openecomp.policy.common.im.jpa.ForwardProgressEntity</class>
50 <class>org.openecomp.policy.common.im.jpa.ResourceRegistrationEntity</class>
51 <!-- unique to integrity-audit - will be audited from PAP -->
52 <class>org.openecomp.policy.common.ia.jpa.IntegrityAuditEntity</class>
53 <exclude-unlisted-classes>false</exclude-unlisted-classes>
54 <shared-cache-mode>NONE</shared-cache-mode>
55 <properties>
56 <!-- The properties defined below are the default settings to be used when someone initially
57 wants to start working with the XACML-PAP-ADMIN web gui. They are not intended for production
58 use.
59
60 They are setup to drop and create the tables and then load an initial set of data into the database
61 every time the application is deployed. So if you add anything to the dictionaries or PIP
62 configuration, they will get lost upon each deployment. It uses an H2 database engine configured
63 for a local file so you don't have to setup you're own SQL database environment to start.
64
65 Instead of modifying this file directly, please refer to the xacml.admin.properties file for
66 customizing the application settings.
67
68 -->
69 <!-- <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
70 <property name="javax.persistence.schema-generation.create-source" value="metadata-then-script"/>
71 <property name="javax.persistence.schema-generation.create-script-source" value="META-INF/views.sql" />
72 <property name="javax.persistence.schema-generation.drop-source" value="script"/>
73 <property name="javax.persistence.schema-generation.drop-script-source" value="META-INF/drop.sql" />
74 <property name="javax.persistence.sql-load-script-source" value="META-INF/data.sql" />-->
75
76
77
78 <!-- These properties should be set in the xacml.admin.properties file, so they can be re-used by non-JPA
79 database functionality. -->
80 <!--
81 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
82 <property name="javax.persistence.jdbc.url" value="jdbc:h2:file:sql/xacml"/>
83 <property name="javax.persistence.jdbc.user" value="sa"/>
84 <property name="javax.persistence.jdbc.password" value=""/>
85 -->
86 </properties>
87 </persistence-unit>
88
89<persistence-unit name="auditPapPU">
90 <!-- This is the persistence unit used by IntegrityAudit to determine
91 which classes to audit. All the PAP classes are also included in
92 XACML-PAP-ADMIN, so they will be audited there rather than having a
93 duplicate audit run from the XACL-PAP-REST node -->
94 <!-- unique to PolicyEngineUtils - will be audited from PAP -->
95 <class>org.openecomp.policy.jpa.BackUpMonitorEntity</class>
96 <!-- unique to integrity-monitor - will be audited from PAP -->
97 <class>org.openecomp.policy.common.im.jpa.StateManagementEntity</class>
98 <class>org.openecomp.policy.common.im.jpa.ForwardProgressEntity</class>
99 <class>org.openecomp.policy.common.im.jpa.ResourceRegistrationEntity</class>
100 <!-- unique to integrity-audit - will be audited from PAP -->
101 <class>org.openecomp.policy.common.ia.jpa.IntegrityAuditEntity</class>
102 <exclude-unlisted-classes>true</exclude-unlisted-classes>
103 <shared-cache-mode>NONE</shared-cache-mode>
104 </persistence-unit>
105
106 <persistence-unit name="testPapPU" transaction-type="RESOURCE_LOCAL">
107 <!-- This tests all the classes that will be audited in the XACML-PAP-REST and the XACML-PAP_ADMIN -->
108 <!-- XACML-PAP-REST -->
109 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
110 <class>org.openecomp.policy.rest.jpa.PolicyEntity</class>
111 <class>org.openecomp.policy.rest.jpa.ConfigurationDataEntity</class>
112 <class>org.openecomp.policy.rest.jpa.PolicyDBDaoEntity</class>
113 <class>org.openecomp.policy.rest.jpa.GroupEntity</class>
114 <class>org.openecomp.policy.rest.jpa.PdpEntity</class>
115 <class>org.openecomp.policy.rest.jpa.ActionBodyEntity</class>
116 <class>org.openecomp.policy.rest.jpa.DatabaseLockEntity</class>
117 <class>org.openecomp.policy.rest.jpa.PolicyVersion</class>
118 <class>org.openecomp.policy.rest.jpa.PolicyScore</class>
119 <class>org.openecomp.policy.rest.jpa.FunctionDefinition</class>
120 <class>org.openecomp.policy.rest.jpa.Attribute</class>
121 <class>org.openecomp.policy.rest.jpa.Category</class>
122 <class>org.openecomp.policy.rest.jpa.ConstraintType</class>
123 <class>org.openecomp.policy.rest.jpa.ConstraintValue</class>
124 <class>org.openecomp.policy.rest.jpa.Datatype</class>
125 <class>org.openecomp.policy.rest.jpa.FunctionArgument</class>
126 <class>org.openecomp.policy.rest.jpa.UserInfo</class>
127 <class>org.openecomp.policy.rest.jpa.ActionPolicyDict</class>
128 <class>org.openecomp.policy.rest.jpa.DecisionSettings</class>
129 <class>org.openecomp.policy.rest.jpa.MicroServiceModels</class>
130 <!-- unique to XACML-PAP-ADMIN -->
131 <class>org.openecomp.policy.rest.jpa.ActionList</class>
132 <class>org.openecomp.policy.rest.jpa.AddressGroup</class>
133 <class>org.openecomp.policy.rest.jpa.AttributeAssignment</class>
134 <class>org.openecomp.policy.rest.jpa.BRMSParamTemplate</class>
135 <class>org.openecomp.policy.rest.jpa.ClosedLoopD2Services</class>
136 <class>org.openecomp.policy.rest.jpa.ClosedLoopSite</class>
137 <class>org.openecomp.policy.rest.jpa.DCAEUsers</class>
138 <class>org.openecomp.policy.rest.jpa.DCAEuuid</class>
139 <class>org.openecomp.policy.rest.jpa.DescriptiveScope</class>
140 <class>org.openecomp.policy.rest.jpa.EcompName</class>
141 <class>org.openecomp.policy.rest.jpa.EnforcingType</class>
142 <class>org.openecomp.policy.rest.jpa.GlobalRoleSettings</class>
143 <class>org.openecomp.policy.rest.jpa.GroupPolicyScopeList</class>
144 <class>org.openecomp.policy.rest.jpa.GroupServiceList</class>
145 <class>org.openecomp.policy.rest.jpa.MicroServiceConfigName</class>
146 <class>org.openecomp.policy.rest.jpa.MicroServiceLocation</class>
147 <class>org.openecomp.policy.rest.jpa.Obadvice</class>
148 <class>org.openecomp.policy.rest.jpa.ObadviceExpression</class>
149 <class>org.openecomp.policy.rest.jpa.PEPOptions</class>
150 <class>org.openecomp.policy.rest.jpa.PIPConfigParam</class>
151 <class>org.openecomp.policy.rest.jpa.PIPConfiguration</class>
152 <class>org.openecomp.policy.rest.jpa.PIPResolver</class>
153 <class>org.openecomp.policy.rest.jpa.PIPResolverParam</class>
154 <class>org.openecomp.policy.rest.jpa.PIPType</class>
155 <class>org.openecomp.policy.rest.jpa.PolicyAlgorithms</class>
156 <class>org.openecomp.policy.rest.jpa.PolicyManagement</class>
157 <class>org.openecomp.policy.rest.jpa.PolicyScopeService</class>
158 <class>org.openecomp.policy.rest.jpa.PolicyScopeType</class>
159 <class>org.openecomp.policy.rest.jpa.PolicyScopeResource</class>
160 <class>org.openecomp.policy.rest.jpa.PolicyScopeClosedLoop</class>
161 <class>org.openecomp.policy.rest.jpa.PortList</class>
162 <class>org.openecomp.policy.rest.jpa.PREFIXLIST</class>
163 <class>org.openecomp.policy.rest.jpa.ProtocolList</class>
164 <class>org.openecomp.policy.rest.jpa.RemoteCatalogValues</class>
165 <class>org.openecomp.policy.rest.jpa.PolicyRoles</class>
166 <class>org.openecomp.policy.rest.jpa.RuleAlgorithms</class>
167 <class>org.openecomp.policy.rest.jpa.SecurityZone</class>
168 <class>org.openecomp.policy.rest.jpa.ServiceList</class>
169 <class>org.openecomp.policy.rest.jpa.SystemLogDB</class>
170 <class>org.openecomp.policy.rest.jpa.TermList</class>
171 <class>org.openecomp.policy.rest.jpa.VarbindDictionary</class>
172 <class>org.openecomp.policy.rest.jpa.VMType</class>
173 <class>org.openecomp.policy.rest.jpa.VNFType</class>
174 <class>org.openecomp.policy.rest.jpa.VSCLAction</class>
175 <class>org.openecomp.policy.rest.jpa.Zone</class>
176 <!-- unique to PolicyEngineUtils -->
177 <class>org.openecomp.policy.jpa.BackUpMonitorEntity</class>
178 <!-- unique to integrity-monitor -->
179 <class>org.openecomp.policy.common.im.jpa.StateManagementEntity</class>
180 <class>org.openecomp.policy.common.im.jpa.ForwardProgressEntity</class>
181 <class>org.openecomp.policy.common.im.jpa.ResourceRegistrationEntity</class>
182 <!-- unique to integrity-audit -->
183 <class>org.openecomp.policy.common.ia.jpa.IntegrityAuditEntity</class>
184
185 <exclude-unlisted-classes>false</exclude-unlisted-classes>
186 <shared-cache-mode>NONE</shared-cache-mode>
187 <properties>
188 <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
189 <property name="javax.persistence.jdbc.url" value="jdbc:h2:file:./sql/xacmlTest"/> <!-- ;MODE=MySQL"/> -->
190 <property name="javax.persistence.jdbc.user" value="sa"/>
191 <property name="javax.persistence.jdbc.password" value=""/>
192 <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/>
193 <property name="javax.persistence.schema-generation.scripts.create-target" value="./src/main/resources/META-INF/generatedCreate.ddl"/>
194 <property name="javax.persistence.schema-generation.scripts.drop-target" value="./src/main/resources/META-INF/generatedDrop.ddl"/>
195 <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
196 <property name="javax.persistence.schema-generation.create-source" value="metadata-then-script"/>
197 <property name="javax.persistence.schema-generation.drop-source" value="script"/>
198 <property name="javax.persistence.schema-generation.drop-script-source" value="META-INF/drop.ddl" />
199 </properties>
200 </persistence-unit>
201</persistence>