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;
31 import com.att.dmf.mr.beans.DMaaPContext;
32 import com.att.nsa.configs.ConfigDbException;
34 * @author muzainulhaque.qazi
37 public interface UIService {
39 * Returning template of hello page.
44 void hello(DMaaPContext dmaapContext) throws IOException;
47 * Fetching list of all api keys and returning in a templated form for
51 * @throws ConfigDbException
54 void getApiKeysTable(DMaaPContext dmaapContext) throws ConfigDbException,
58 * Fetching detials of apikey in a templated form for display
64 void getApiKey(DMaaPContext dmaapContext, final String apiKey)
68 * Fetching list of all the topics and returning in a templated form for
72 * @throws ConfigDbException
75 void getTopicsTable(DMaaPContext dmaapContext) throws ConfigDbException,
79 * Fetching detials of topic in a templated form for display
83 * @throws ConfigDbException
85 * @throws TopicExistsException
87 void getTopic(DMaaPContext dmaapContext, final String topic)
88 throws ConfigDbException, IOException, TopicExistsException;