diff options
author | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2019-07-08 07:00:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-08 07:00:44 +0000 |
commit | 5fdd07ac5c8b0a229b437aed258710a29801c31a (patch) | |
tree | b318163babd8cefce34e10694967c8a83f275b78 /vid-app-common/src/main/java/org/onap/vid/reports/ReportGenerator.java | |
parent | fc62274e8d15964d63c62bf0e2f4abc040252ee9 (diff) | |
parent | b5bfe9c92e75f80fcad25ea0ce65ef9e45d13a8c (diff) |
Merge "Add controller which create error reports"
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/reports/ReportGenerator.java')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/reports/ReportGenerator.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/reports/ReportGenerator.java b/vid-app-common/src/main/java/org/onap/vid/reports/ReportGenerator.java new file mode 100644 index 000000000..ccc290115 --- /dev/null +++ b/vid-app-common/src/main/java/org/onap/vid/reports/ReportGenerator.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2019 Nokia Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.onap.vid.reports; + +import org.onap.vid.model.errorReport.ReportCreationParameters; + +import javax.servlet.http.HttpServletRequest; +import java.util.Map; +import java.util.function.BiFunction; + +public interface ReportGenerator extends BiFunction<HttpServletRequest, ReportCreationParameters, Map<String, Object>>{ + + boolean canGenerate(ReportCreationParameters creationParameters); + +} |