2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2019 Nordix Foundation.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.models.provider.impl;
23 import lombok.NonNull;
25 import org.onap.policy.models.base.PfConceptKey;
26 import org.onap.policy.models.base.PfModelException;
27 import org.onap.policy.models.base.PfReferenceKey;
28 import org.onap.policy.models.provider.PolicyModelsProvider;
29 import org.onap.policy.models.tosca.concepts.ToscaServiceTemplate;
32 * This class provides the implementaiton of the defalut Policy Models Provider for the ONAP Policy Framework.
34 * @author Liam Fallon (liam.fallon@est.tech)
36 public class PolicyModelsProviderImpl implements PolicyModelsProvider {
39 public ToscaServiceTemplate getPolicyTypes(@NonNull PfConceptKey policyTypeKey) throws PfModelException {
44 public ToscaServiceTemplate createPolicyTypes(@NonNull ToscaServiceTemplate serviceTemplate)
45 throws PfModelException {
50 public ToscaServiceTemplate deletePolicyTypes(@NonNull PfConceptKey policyTypeKey) throws PfModelException {
55 public ToscaServiceTemplate getPolicies(@NonNull PfReferenceKey policyKey) throws PfModelException {
60 public ToscaServiceTemplate createPolicies(@NonNull ToscaServiceTemplate serviceTemplate) throws PfModelException {
65 public ToscaServiceTemplate updatePolicies(@NonNull ToscaServiceTemplate serviceTemplate) throws PfModelException {
70 public ToscaServiceTemplate deletePolicies(@NonNull PfReferenceKey policyKey) throws PfModelException {
75 public ToscaServiceTemplate updatePolicyTypes(@NonNull ToscaServiceTemplate serviceTemplate)
76 throws PfModelException {
81 public Object getPdpGroups(@NonNull Object somePdpGroupFilter) throws PfModelException {
86 public Object createPdpGroups(@NonNull Object somePdpGroupSpecification) throws PfModelException {
91 public Object updatePdpGroups(@NonNull Object somePdpGroupSpecification) throws PfModelException {
96 public void deletePdpGroups(@NonNull Object somePdpGroupFilter) throws PfModelException {