Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
* privileged, and admins should be aware of these capabilities and explicitly enable
* them for a subset of trusted users.
* </p>
*
* @deprecated Planned for removal without replacement according to NIP-24
*/
@Deprecated(since = "2.8.0", forRemoval = true)
@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
Expand All @@ -58,6 +61,7 @@
*
* @return Array of restrictions
*/
@SuppressWarnings("removal")
Restriction[] restrictions() default {};

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

/**
* Specific restriction for a component. Indicates what the required permission is and why the restriction exists.
*
* @deprecated Planned for removal without replacement according to NIP-24
*/
@Deprecated(since = "2.8.0", forRemoval = true)
@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
Expand All @@ -39,6 +42,7 @@
*
* @return Permission required for this restriction
*/
@SuppressWarnings("removal")
RequiredPermission requiredPermission();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

/**
* Enumeration of permission required for annotated components
*
* @deprecated Planned for removal without replacement according to NIP-24
*/
@Deprecated(since = "2.8.0", forRemoval = true)
public enum RequiredPermission {
READ_FILESYSTEM("read-filesystem", "read filesystem"),
WRITE_FILESYSTEM("write-filesystem", "write filesystem"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public final void write(final ConfigurableComponent component, final Collection<
writeFooter(component);
}

@SuppressWarnings("removal")
protected void writeBody(final ConfigurableComponent component, Map<String, ServiceAPI> propertyServices) throws IOException {
writeExtensionName(component.getClass().getName());
writeExtensionType(getExtensionType(component));
Expand Down Expand Up @@ -329,6 +330,7 @@ protected ExtensionType getExtensionType(final ConfigurableComponent component)

protected abstract void writeStatefulInfo(Stateful stateful) throws IOException;

@SuppressWarnings("removal")
protected abstract void writeRestrictedInfo(Restricted restricted) throws IOException;

protected abstract void writeInputRequirementInfo(InputRequirement.Requirement requirement) throws IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ protected void writeStatefulInfo(final Stateful stateful) throws IOException {
writeEndElement();
}

@SuppressWarnings("removal")
@Override
protected void writeRestrictedInfo(final Restricted restricted) throws IOException {
if (restricted == null) {
Expand All @@ -337,6 +338,7 @@ protected void writeRestrictedInfo(final Restricted restricted) throws IOExcepti
writeEndElement();
}

@SuppressWarnings("removal")
private void writeRestriction(final Restriction restriction) throws IOException {
writeStartElement("restriction");

Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/apache/nifi/parameter/TestParameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ public String getIdentifier() {
return identifier;
}

@SuppressWarnings("deprecation")
@Override
public String getParameterContextIdentifier() {
return parameterContextIdentifier;
Expand Down
Loading