4 /*******************************************************************************
5 * ============LICENSE_START=======================================================
7 * ================================================================================
8 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
9 * ================================================================================
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
22 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
24 *******************************************************************************/
25 package com.att.dmf.mr.service;
27 import java.io.IOException;
29 import org.apache.kafka.common.errors.TopicExistsException;
30 import org.json.JSONException;
32 import com.att.dmf.mr.CambriaApiException;
33 import com.att.dmf.mr.beans.DMaaPContext;
34 import com.att.nsa.configs.ConfigDbException;
36 * @author muzainulhaque.qazi
39 public interface UIService {
41 * Returning template of hello page.
46 void hello(DMaaPContext dmaapContext) throws IOException;
49 * Fetching list of all api keys and returning in a templated form for
53 * @throws ConfigDbException
56 void getApiKeysTable(DMaaPContext dmaapContext) throws ConfigDbException,
60 * Fetching detials of apikey in a templated form for display
66 void getApiKey(DMaaPContext dmaapContext, final String apiKey)
67 throws CambriaApiException, ConfigDbException, JSONException, IOException;
70 * Fetching list of all the topics and returning in a templated form for
74 * @throws ConfigDbException
77 void getTopicsTable(DMaaPContext dmaapContext) throws ConfigDbException,
81 * Fetching detials of topic in a templated form for display
85 * @throws ConfigDbException
87 * @throws TopicExistsException
89 void getTopic(DMaaPContext dmaapContext, final String topic)
90 throws ConfigDbException, IOException, TopicExistsException;