From e9eeba44f64528e50b86efcc18ab08d086526d07 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Wed, 15 Jul 2026 15:35:15 +0000 Subject: [PATCH] NIFI-16117 Removed unused enums --- .../org/apache/nifi/web/ViewableContent.java | 71 ------------------- .../nifi/remote/RemoteAuthorizationState.java | 27 ------- 2 files changed, 98 deletions(-) delete mode 100644 nifi-framework-api/src/main/java/org/apache/nifi/web/ViewableContent.java delete mode 100644 nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/remote/RemoteAuthorizationState.java diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/web/ViewableContent.java b/nifi-framework-api/src/main/java/org/apache/nifi/web/ViewableContent.java deleted file mode 100644 index 48d7d6bc5c5b..000000000000 --- a/nifi-framework-api/src/main/java/org/apache/nifi/web/ViewableContent.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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. - */ -package org.apache.nifi.web; - -import java.io.IOException; -import java.io.InputStream; - -/** - * Interface for obtaining content from the NiFi content repository. - */ -public interface ViewableContent { - - String CONTENT_REQUEST_ATTRIBUTE = "org.apache.nifi.web.content"; - - enum DisplayMode { - - Original, - Formatted, - Hex - } - - /** - * @return stream to the viewable content. The data stream can only be read once - * so an extension can call this method or getContent - */ - InputStream getContentStream(); - - /** - * @return the content as a string. The data stream can only be read once so an - * extension can call this method or getContentStream - * @throws java.io.IOException if unable to read content - */ - String getContent() throws IOException; - - /** - * @return the desired display mode. If the mode is Hex the framework will - * handle generating the mark up. The only values that an extension will see - * is Original or Formatted - */ - DisplayMode getDisplayMode(); - - /** - * @return contents file name - */ - String getFileName(); - - /** - * @return mime type of the content, value is lowercase and stripped of all parameters if there were any - */ - String getContentType(); - - /** - * @return unchanged mime type of the content - */ - String getRawContentType(); - -} diff --git a/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/remote/RemoteAuthorizationState.java b/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/remote/RemoteAuthorizationState.java deleted file mode 100644 index f4f4a857df9e..000000000000 --- a/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/remote/RemoteAuthorizationState.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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. - */ -package org.apache.nifi.remote; - -/** - * - */ -public enum RemoteAuthorizationState { - - UNKNOWN, - UNAUTHORIZED, - AUTHORIZED -}