From 91d04c64771832a0b8815ffbe1f0f9920320d94d Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 14 Feb 2017 19:41:00 -0500 Subject: Initial OpenECOMP policy/engine commit Change-Id: I7dbff37733b661643dd4d1caefa3d7dccc361b6e Signed-off-by: Pamela Dragosh --- .../openecomp/policy/rest/dao/ActionListDao.java | 33 +++++++++++++++++++ .../policy/rest/dao/ActionPolicyDictDao.java | 34 ++++++++++++++++++++ .../openecomp/policy/rest/dao/AddressGroupDao.java | 33 +++++++++++++++++++ .../openecomp/policy/rest/dao/AttributeDao.java | 35 ++++++++++++++++++++ .../policy/rest/dao/BRMSParamTemplateDao.java | 33 +++++++++++++++++++ .../org/openecomp/policy/rest/dao/CategoryDao.java | 29 +++++++++++++++++ .../org/openecomp/policy/rest/dao/DCAEUUIDDao.java | 33 +++++++++++++++++++ .../policy/rest/dao/DecisionPolicyDao.java | 33 +++++++++++++++++++ .../policy/rest/dao/DescriptiveScopeDao.java | 35 ++++++++++++++++++++ .../openecomp/policy/rest/dao/EcompNameDao.java | 34 ++++++++++++++++++++ .../policy/rest/dao/EnforcerPolicyDao.java | 32 +++++++++++++++++++ .../policy/rest/dao/FirewallDictionaryListDao.java | 37 ++++++++++++++++++++++ .../policy/rest/dao/GroupPolicyScopeListDao.java | 34 ++++++++++++++++++++ .../policy/rest/dao/MicroServiceConfigNameDao.java | 33 +++++++++++++++++++ .../policy/rest/dao/MicroServiceLocationDao.java | 33 +++++++++++++++++++ .../policy/rest/dao/MicroServiceModelsDao.java | 33 +++++++++++++++++++ .../openecomp/policy/rest/dao/PEPOptionsDao.java | 35 ++++++++++++++++++++ .../policy/rest/dao/PolicyScopeClosedLoopDao.java | 34 ++++++++++++++++++++ .../policy/rest/dao/PolicyScopeResourceDao.java | 34 ++++++++++++++++++++ .../policy/rest/dao/PolicyScopeServiceDao.java | 34 ++++++++++++++++++++ .../policy/rest/dao/PolicyScopeTypeDao.java | 34 ++++++++++++++++++++ .../org/openecomp/policy/rest/dao/PortListDao.java | 33 +++++++++++++++++++ .../openecomp/policy/rest/dao/PrefixListDao.java | 33 +++++++++++++++++++ .../openecomp/policy/rest/dao/ProtocolListDao.java | 33 +++++++++++++++++++ .../org/openecomp/policy/rest/dao/RiskTypeDao.java | 34 ++++++++++++++++++++ .../policy/rest/dao/SafePolicyWarningDao.java | 34 ++++++++++++++++++++ .../openecomp/policy/rest/dao/SecurityZoneDao.java | 33 +++++++++++++++++++ .../policy/rest/dao/ServiceDictionaryDao.java | 33 +++++++++++++++++++ .../openecomp/policy/rest/dao/ServiceGroupDao.java | 33 +++++++++++++++++++ .../openecomp/policy/rest/dao/ServiceListDao.java | 34 ++++++++++++++++++++ .../policy/rest/dao/SiteDictionaryDao.java | 33 +++++++++++++++++++ .../org/openecomp/policy/rest/dao/TermListDao.java | 34 ++++++++++++++++++++ .../org/openecomp/policy/rest/dao/UserInfoDao.java | 32 +++++++++++++++++++ .../org/openecomp/policy/rest/dao/VNFTypeDao.java | 34 ++++++++++++++++++++ .../openecomp/policy/rest/dao/VSCLActionDao.java | 35 ++++++++++++++++++++ .../policy/rest/dao/VarbindDictionaryDao.java | 34 ++++++++++++++++++++ .../org/openecomp/policy/rest/dao/ZoneDao.java | 33 +++++++++++++++++++ .../openecomp/policy/rest/dao/package-info.java | 27 ++++++++++++++++ 38 files changed, 1267 insertions(+) create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionPolicyDictDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AddressGroupDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AttributeDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/BRMSParamTemplateDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/CategoryDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DCAEUUIDDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DecisionPolicyDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DescriptiveScopeDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EcompNameDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EnforcerPolicyDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/FirewallDictionaryListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/GroupPolicyScopeListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceConfigNameDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceLocationDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceModelsDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PEPOptionsDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeClosedLoopDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeResourceDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeServiceDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeTypeDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PortListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PrefixListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ProtocolListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/RiskTypeDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SafePolicyWarningDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SecurityZoneDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceDictionaryDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceGroupDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SiteDictionaryDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/TermListDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/UserInfoDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VNFTypeDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VSCLActionDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VarbindDictionaryDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ZoneDao.java create mode 100644 ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/package-info.java (limited to 'ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao') diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionListDao.java new file mode 100644 index 000000000..b8aa2948a --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionListDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.ActionList; + +public interface ActionListDao { + List getActionListData(); + List getActionListDataByName(); + void Save(ActionList actionList); + void delete(ActionList actionList); + void update(ActionList actionList); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionPolicyDictDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionPolicyDictDao.java new file mode 100644 index 000000000..c4914eb47 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ActionPolicyDictDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.ActionPolicyDict; + +public interface ActionPolicyDictDao { + List getActionDictData(); + List getActionDictDataByName(); + ActionPolicyDict getActionEntityDatabyId(String action); + void Save(ActionPolicyDict action); + void delete(ActionPolicyDict action); + void update(ActionPolicyDict action); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AddressGroupDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AddressGroupDao.java new file mode 100644 index 000000000..c4c7002b3 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AddressGroupDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.AddressGroup; + +public interface AddressGroupDao { + List getAddressGroupData(); + List getAddressGroupDataByName(); + void Save(AddressGroup addressGroup); + void delete(AddressGroup addressGroup); + void update(AddressGroup addressGroup); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AttributeDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AttributeDao.java new file mode 100644 index 000000000..796157f62 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/AttributeDao.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.Attribute; + +public interface AttributeDao { + + List getData(); + List getAttributeData(); + void Save(Attribute attribute); + void delete(Attribute attribute); + void update(Attribute attribute); + +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/BRMSParamTemplateDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/BRMSParamTemplateDao.java new file mode 100644 index 000000000..2c03192c0 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/BRMSParamTemplateDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.BRMSParamTemplate; + +public interface BRMSParamTemplateDao { + List getBRMSParamTemplateData(); + List getBRMSParamDataByName(); + void Save(BRMSParamTemplate brmsParam); + void delete(BRMSParamTemplate brmsParam); + void update(BRMSParamTemplate brmsParam); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/CategoryDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/CategoryDao.java new file mode 100644 index 000000000..e90aa1d8b --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/CategoryDao.java @@ -0,0 +1,29 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.Category; + +public interface CategoryDao { + List getCategoryListData(); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DCAEUUIDDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DCAEUUIDDao.java new file mode 100644 index 000000000..418d77629 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DCAEUUIDDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.DCAEuuid; + +public interface DCAEUUIDDao { + List getDCAEuuidData(); + List getDCAEuuidDataByName(); + void Save(DCAEuuid dcaeUUID); + void delete(DCAEuuid dcaeUUID); + void update(DCAEuuid dcaeUUID); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DecisionPolicyDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DecisionPolicyDao.java new file mode 100644 index 000000000..372a1fb7c --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DecisionPolicyDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.DecisionSettings; + +public interface DecisionPolicyDao { + List getDecisionSettingsData(); + List getDecisionDataByName(); + void Save(DecisionSettings decisionSettings); + void delete(DecisionSettings decisionSettings); + void update(DecisionSettings decisionSettings); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DescriptiveScopeDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DescriptiveScopeDao.java new file mode 100644 index 000000000..b0001390e --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/DescriptiveScopeDao.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.DescriptiveScope; + +public interface DescriptiveScopeDao { + + List getDescriptiveScope(); + List getDescriptiveScopeDataByName(); + void Save(DescriptiveScope descriptiveScope); + void delete(DescriptiveScope descriptiveScope); + void update(DescriptiveScope descriptiveScope); + DescriptiveScope getDescriptiveScopeById(String name); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EcompNameDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EcompNameDao.java new file mode 100644 index 000000000..420121883 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EcompNameDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.EcompName; + +public interface EcompNameDao { + List getEcompName(); + List getEcompNameDataByName(); + void Save(EcompName ecompName); + void delete(EcompName ecompName); + void update(EcompName ecompName); + +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EnforcerPolicyDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EnforcerPolicyDao.java new file mode 100644 index 000000000..55f4bf599 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/EnforcerPolicyDao.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.EnforcingType; + +public interface EnforcerPolicyDao { + List getEnforcingTypeData(); + void Save(EnforcingType enforcingType); + void delete(EnforcingType enforcingType); + void update(EnforcingType enforcingType); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/FirewallDictionaryListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/FirewallDictionaryListDao.java new file mode 100644 index 000000000..76cb1bc1f --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/FirewallDictionaryListDao.java @@ -0,0 +1,37 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.FirewallDictionaryList; + + +public interface FirewallDictionaryListDao { + List getFWDictionaryListData(); + List getFWDictionaryListDataByName(); + void Save(FirewallDictionaryList firewallDictionaryList); + void delete(FirewallDictionaryList firewallDictionaryList); + void update(FirewallDictionaryList firewallDictionaryList); + void updateQuery(String query); + FirewallDictionaryList getFWDictionaryDataById(String value); +} + diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/GroupPolicyScopeListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/GroupPolicyScopeListDao.java new file mode 100644 index 000000000..fdab28a0f --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/GroupPolicyScopeListDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.GroupPolicyScopeList; + +public interface GroupPolicyScopeListDao{ + List getGroupPolicyScopeListData(); + List getGroupPolicyScopeListDataByName(); + void Save(GroupPolicyScopeList attribute); + void delete(GroupPolicyScopeList attribute); + void update(GroupPolicyScopeList attribute); + List CheckDuplicateEntry(String value); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceConfigNameDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceConfigNameDao.java new file mode 100644 index 000000000..f0321031c --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceConfigNameDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.MicroServiceConfigName; + +public interface MicroServiceConfigNameDao { + List getMicroServiceConfigNameData(); + List getMSConfigDataByName(); + void Save(MicroServiceConfigName microServiceConfigName); + void delete(MicroServiceConfigName microServiceConfigName); + void update(MicroServiceConfigName microServiceConfigName); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceLocationDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceLocationDao.java new file mode 100644 index 000000000..fdb9c559e --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceLocationDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.MicroServiceLocation; + +public interface MicroServiceLocationDao { + List getMicroServiceLocationData(); + List getMSLocationDataByName(); + void Save(MicroServiceLocation microServiceLocation); + void delete(MicroServiceLocation microServiceLocation); + void update(MicroServiceLocation microServiceLocation); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceModelsDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceModelsDao.java new file mode 100644 index 000000000..0a56edd2c --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/MicroServiceModelsDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.MicroServiceModels; + +public interface MicroServiceModelsDao { + List getMicroServiceModelsData(); + List getMSModelsDataByName(); + void Save(MicroServiceModels microServiceModels); + void delete(MicroServiceModels microServiceModels); + void update(MicroServiceModels microServiceModels); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PEPOptionsDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PEPOptionsDao.java new file mode 100644 index 000000000..d1bbf2a1a --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PEPOptionsDao.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.PEPOptions; + + + +public interface PEPOptionsDao { + List getPEPOptionsData(); + List getPEPOptionsDataByName(); + void Save(PEPOptions pepOptions); + void delete(PEPOptions pepOptions); + void update(PEPOptions pepOptions); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeClosedLoopDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeClosedLoopDao.java new file mode 100644 index 000000000..7730adacb --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeClosedLoopDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.PolicyScopeClosedLoop; + +public interface PolicyScopeClosedLoopDao { + List getPolicyScopeClosedLoopData(); + List getPolicyScopeClosedLoopDataByName(); + void Save(PolicyScopeClosedLoop attribute); + void delete(PolicyScopeClosedLoop attribute); + void update(PolicyScopeClosedLoop attribute); + List CheckDuplicateEntry(String value); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeResourceDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeResourceDao.java new file mode 100644 index 000000000..4ff88fed8 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeResourceDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.PolicyScopeResource; + +public interface PolicyScopeResourceDao { + List getPolicyScopeResourceData(); + List getPolicyScopeResourceDataByName(); + void Save(PolicyScopeResource attribute); + void delete(PolicyScopeResource attribute); + void update(PolicyScopeResource attribute); + List CheckDuplicateEntry(String value); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeServiceDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeServiceDao.java new file mode 100644 index 000000000..2a5c8c565 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeServiceDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.PolicyScopeService; + +public interface PolicyScopeServiceDao { + List getPolicyScopeServiceData(); + List getPolicyScopeServiceDataByName(); + void Save(PolicyScopeService attribute); + void delete(PolicyScopeService attribute); + void update(PolicyScopeService attribute); + List CheckDuplicateEntry(String value); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeTypeDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeTypeDao.java new file mode 100644 index 000000000..e49f84cec --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PolicyScopeTypeDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.PolicyScopeType; + +public interface PolicyScopeTypeDao { + List getPolicyScopeTypeData(); + List getPolicyScopeTypeDataByName(); + void Save(PolicyScopeType attribute); + void delete(PolicyScopeType attribute); + void update(PolicyScopeType attribute); + List CheckDuplicateEntry(String value); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PortListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PortListDao.java new file mode 100644 index 000000000..461387f4a --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PortListDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.PortList; + +public interface PortListDao { + List getPortListData(); + List getPortListDataByName(); + void Save(PortList portList); + void delete(PortList portList); + void update(PortList portList); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PrefixListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PrefixListDao.java new file mode 100644 index 000000000..29571dddb --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/PrefixListDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.PREFIXLIST; + +public interface PrefixListDao { + List getPREFIXLISTData(); + List getPrefixListDataByName(); + void Save(PREFIXLIST prefixList); + void delete(PREFIXLIST prefixList); + void update(PREFIXLIST prefixList); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ProtocolListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ProtocolListDao.java new file mode 100644 index 000000000..11956ee94 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ProtocolListDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.ProtocolList; + +public interface ProtocolListDao { + List getProtocolListData(); + List getProtocolListDataByName(); + void Save(ProtocolList protocolList); + void delete(ProtocolList protocolList); + void update(ProtocolList protocolList); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/RiskTypeDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/RiskTypeDao.java new file mode 100644 index 000000000..6c14928d8 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/RiskTypeDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.RiskType; + +public interface RiskTypeDao { + List getRiskName(); + List getRiskTypeDataByName(); + void Save(RiskType riskName); + void delete(RiskType riskName); + void update(RiskType riskName); + +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SafePolicyWarningDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SafePolicyWarningDao.java new file mode 100644 index 000000000..3812f9470 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SafePolicyWarningDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.SafePolicyWarning; + +public interface SafePolicyWarningDao{ + List getSafePolicyWarningData(); + List getSafePolicyWarningDataByName(); + void Save(SafePolicyWarning attribute); + void delete(SafePolicyWarning attribute); + void update(SafePolicyWarning attribute); + SafePolicyWarning getSafePolicyWarningDataById(String riskType); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SecurityZoneDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SecurityZoneDao.java new file mode 100644 index 000000000..4367023b5 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SecurityZoneDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.SecurityZone; + +public interface SecurityZoneDao { + List getSecurityZoneData(); + List getSecurityZoneDataByName(); + void Save(SecurityZone securityZone); + void delete(SecurityZone securityZone); + void update(SecurityZone securityZone); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceDictionaryDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceDictionaryDao.java new file mode 100644 index 000000000..a756f3234 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceDictionaryDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.ClosedLoopD2Services; + +public interface ServiceDictionaryDao { + List getClosedLoopD2ServicesData(); + List getCLServiceDictDataByName(); + void Save(ClosedLoopD2Services closedLoopD2Services); + void delete(ClosedLoopD2Services closedLoopD2Services); + void update(ClosedLoopD2Services closedLoopD2Services); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceGroupDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceGroupDao.java new file mode 100644 index 000000000..678c6426a --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceGroupDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.GroupServiceList; + +public interface ServiceGroupDao { + List getGroupServiceListData(); + List getGroupServiceDataByName(); + void Save(GroupServiceList groupServiceList); + void delete(GroupServiceList groupServiceList); + void update(GroupServiceList groupServiceList); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceListDao.java new file mode 100644 index 000000000..116f9cb17 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ServiceListDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.ServiceList; + + +public interface ServiceListDao { + List getServiceListData(); + List getServiceListDataByName(); + void Save(ServiceList serviceList); + void delete(ServiceList serviceList); + void update(ServiceList serviceList); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SiteDictionaryDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SiteDictionaryDao.java new file mode 100644 index 000000000..21cae69b9 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/SiteDictionaryDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.ClosedLoopSite; + +public interface SiteDictionaryDao { + List getClosedLoopSiteData(); + List getCLSiteDataByName(); + void Save(ClosedLoopSite closedLoopSite); + void delete(ClosedLoopSite closedLoopSite); + void update(ClosedLoopSite closedLoopSite); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/TermListDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/TermListDao.java new file mode 100644 index 000000000..c2c81cfd8 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/TermListDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.TermList; + +public interface TermListDao { + List getTermListData(); + List getTermListDataByName(); + void Save(TermList termList); + void delete(TermList termList); + void update(TermList termList); + TermList getTermListValueByName(String name); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/UserInfoDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/UserInfoDao.java new file mode 100644 index 000000000..a144a463f --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/UserInfoDao.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.UserInfo; + +public interface UserInfoDao { + void save(UserInfo userInfo); + List getUserInfo(); + UserInfo getUserInfoByLoginId(String loginid); + String getUserName(String loginid); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VNFTypeDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VNFTypeDao.java new file mode 100644 index 000000000..ff68a4065 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VNFTypeDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.VNFType; + +public interface VNFTypeDao { + List getVNFTypeData(); + List getVNFTypeDataByName(); + void Save(VNFType vnfType); + void delete(VNFType vnfType); + void update(VNFType vnfType); + +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VSCLActionDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VSCLActionDao.java new file mode 100644 index 000000000..3d0245555 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VSCLActionDao.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.VSCLAction; + + + +public interface VSCLActionDao { + List getVSCLActionData(); + List getVsclActionDataByName(); + void Save(VSCLAction vSCLAction); + void delete(VSCLAction vSCLAction); + void update(VSCLAction vSCLAction); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VarbindDictionaryDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VarbindDictionaryDao.java new file mode 100644 index 000000000..f3153f6df --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/VarbindDictionaryDao.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.VarbindDictionary; + +public interface VarbindDictionaryDao { + List getVarbindDictionaryData(); + List getVarbindEntityByName(String value); + List getVarbindDataByName(); + void Save(VarbindDictionary varbindDictionary); + void delete(VarbindDictionary varbindDictionary); + void update(VarbindDictionary varbindDictionary); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ZoneDao.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ZoneDao.java new file mode 100644 index 000000000..df318e167 --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/ZoneDao.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.policy.rest.dao; + +import java.util.List; + +import org.openecomp.policy.rest.jpa.Zone; + +public interface ZoneDao { + List getZoneData(); + List getZoneDataByName(); + void Save(Zone zone); + void delete(Zone zone); + void update(Zone zone); +} diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/package-info.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/package-info.java new file mode 100644 index 000000000..c9f449f4f --- /dev/null +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/dao/package-info.java @@ -0,0 +1,27 @@ +/*- + * ============LICENSE_START======================================================= + * ECOMP-REST + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed 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. + * ============LICENSE_END========================================================= + */ + +/** + * + */ +/** + * + */ +package org.openecomp.policy.rest.dao; -- cgit 1.2.3-korg