This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 69a7d8d5dec NIFI-16117 Removed unused State enum and ViewableContent
interface (#11434)
69a7d8d5dec is described below
commit 69a7d8d5decce3f620a6f5f5dcc6c6c2d33da329
Author: dan-s1 <[email protected]>
AuthorDate: Wed Jul 15 12:54:29 2026 -0400
NIFI-16117 Removed unused State enum and ViewableContent interface (#11434)
Signed-off-by: David Handermann <[email protected]>
---
.../java/org/apache/nifi/web/ViewableContent.java | 71 ----------------------
.../nifi/remote/RemoteAuthorizationState.java | 27 --------
2 files changed, 98 deletions(-)
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 48d7d6bc5c5..00000000000
--- 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 f4f4a857df9..00000000000
---
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
-}