1 /*******************************************************************************
\r
2 * ============LICENSE_START==================================================
\r
4 * * ===========================================================================
\r
5 * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * * ===========================================================================
\r
7 * * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * * you may not use this file except in compliance with the License.
\r
9 * * You may obtain a copy of the License at
\r
11 * * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * * Unless required by applicable law or agreed to in writing, software
\r
14 * * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * * See the License for the specific language governing permissions and
\r
17 * * limitations under the License.
\r
18 * * ============LICENSE_END====================================================
\r
20 * * ECOMP is a trademark and service mark of AT&T Intellectual Property.
\r
22 ******************************************************************************/
\r
23 package org.onap.dmaap.datarouter.authz.impl;
\r
25 /** Interface to access data about subscriptions and feeds. A software component that
\r
26 * uses the <code>ProvAuthorizer</code> needs to supply an implementation of this interface.
\r
27 * @author J. F. Lucas
\r
30 public interface ProvDataProvider {
\r
32 /** Get the identity of the owner of a feed.
\r
34 * @param feedId the feed ID of the feed whose owner is being looked up.
\r
35 * @return the feed owner's identity
\r
37 public String getFeedOwner(String feedId);
\r
39 /** Get the security classification of a feed.
\r
41 * @param feedId the ID of the feed whose classification is being looked up.
\r
42 * @return the classification of the feed.
\r
44 public String getFeedClassification(String feedId);
\r
46 /** Get the identity of the owner of a feed
\r
48 * @param subId the ID of the subscripition whose owner is being looked up.
\r
49 * @return the subscription owner's identity.
\r
51 public String getSubscriptionOwner(String subId);
\r
53 /** Get the identity of the owner of a feed by group id - Rally : US708115
\r
55 * @param feedId, user the ID of the feed whose owner is being looked up.
\r
56 * @return the feed owner's identity by group.
\r
58 public String getGroupByFeedGroupId(String owner, String feedId);
\r
60 /** Get the identity of the owner of a sub by group id Rally : US708115
\r
62 * @param subId, user the ID of the feed whose owner is being looked up.
\r
63 * @return the feed owner's identity by group.
\r
65 public String getGroupBySubGroupId(String owner, String subId);
\r