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.pdp.persistence.provider;
23 import lombok.NonNull;
25 import org.onap.policy.models.base.PfModelException;
26 import org.onap.policy.models.dao.PfDao;
27 import org.onap.policy.models.pdp.concepts.PdpGroups;
30 * This class provides the provision of information on PAP concepts in the database to callers.
32 * @author Liam Fallon (liam.fallon@est.tech)
34 public class PdpProvider {
38 * @param dao the DAO to use to access the database
39 * @param pdpGroupFilter a filter for the get
40 * @return the PDP groups found
41 * @throws PfModelException on errors getting PDP groups
43 public PdpGroups getPdpGroups(@NonNull final PfDao dao, @NonNull final String pdpGroupFilter)
44 throws PfModelException {
45 return new PdpGroups();
51 * @param dao the DAO to use to access the database
52 * @param pdpGroups a specification of the PDP groups to create
53 * @return the PDP groups created
54 * @throws PfModelException on errors creating PDP groups
56 public PdpGroups createPdpGroups(@NonNull final PfDao dao, @NonNull final PdpGroups pdpGroups)
57 throws PfModelException {
58 return new PdpGroups();
64 * @param dao the DAO to use to access the database
65 * @param pdpGroups a specification of the PDP groups to update
66 * @return the PDP groups updated
67 * @throws PfModelException on errors updating PDP groups
69 public PdpGroups updatePdpGroups(@NonNull final PfDao dao, @NonNull final PdpGroups pdpGroups)
70 throws PfModelException {
71 return new PdpGroups();
77 * @param dao the DAO to use to access the database
78 * @param pdpGroupFilter a filter for the get
79 * @return the PDP groups deleted
80 * @throws PfModelException on errors deleting PDP groups
82 public PdpGroups deletePdpGroups(@NonNull final PfDao dao, @NonNull final String pdpGroupFilter)
83 throws PfModelException {
84 return new PdpGroups();