diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AboutDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AboutDTO.java index d9bf5226da..2e4f00758e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AboutDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AboutDTO.java @@ -109,7 +109,7 @@ public class AboutDTO { @XmlJavaTypeAdapter(TimezoneAdapter.class) @ApiModelProperty( value = "The timezone of the NiFi instance.", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, dataType = "string" ) public Date getTimezone() { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessConfigurationDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessConfigurationDTO.java index 1f72764fb3..7e5025832e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessConfigurationDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessConfigurationDTO.java @@ -33,7 +33,7 @@ public class AccessConfigurationDTO { */ @ApiModelProperty( value = "Indicates whether or not this NiFi supports user login.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Boolean getSupportsLogin() { return supportsLogin; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessStatusDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessStatusDTO.java index 137f95b873..d502e0c1ca 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessStatusDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AccessStatusDTO.java @@ -42,7 +42,7 @@ public class AccessStatusDTO { */ @ApiModelProperty( value = "The user identity.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public String getIdentity() { return identity; @@ -57,7 +57,7 @@ public class AccessStatusDTO { */ @ApiModelProperty( value = "The user access status.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public String getStatus() { return status; @@ -72,7 +72,7 @@ public class AccessStatusDTO { */ @ApiModelProperty( value = "Additional details about the user access status.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public String getMessage() { return message; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AsynchronousRequestDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AsynchronousRequestDTO.java index 318d6e9cde..20c63952a5 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AsynchronousRequestDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/AsynchronousRequestDTO.java @@ -35,7 +35,7 @@ public abstract class AsynchronousRequestDTO { private List updateSteps; - @ApiModelProperty(value = "The ID of the request", readOnly = true) + @ApiModelProperty(value = "The ID of the request", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getRequestId() { return requestId; } @@ -44,7 +44,7 @@ public abstract class AsynchronousRequestDTO { this.requestId = requestId; } - @ApiModelProperty(value = "The URI for the request", readOnly = true) + @ApiModelProperty(value = "The URI for the request", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getUri() { return uri; } @@ -54,7 +54,7 @@ public abstract class AsynchronousRequestDTO { } @XmlJavaTypeAdapter(TimestampAdapter.class) - @ApiModelProperty(value = "The timestamp of when the request was submitted", readOnly = true) + @ApiModelProperty(value = "The timestamp of when the request was submitted", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Date getSubmissionTime() { return submissionTime; } @@ -64,7 +64,7 @@ public abstract class AsynchronousRequestDTO { } @XmlJavaTypeAdapter(TimestampAdapter.class) - @ApiModelProperty(value = "The timestamp of when the request was last updated", readOnly = true) + @ApiModelProperty(value = "The timestamp of when the request was last updated", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Date getLastUpdated() { return lastUpdated; } @@ -73,7 +73,7 @@ public abstract class AsynchronousRequestDTO { this.lastUpdated = lastUpdated; } - @ApiModelProperty(value = "Whether or not the request is completed", readOnly = true) + @ApiModelProperty(value = "Whether or not the request is completed", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public boolean isComplete() { return complete; } @@ -82,7 +82,7 @@ public abstract class AsynchronousRequestDTO { this.complete = complete; } - @ApiModelProperty(value = "The reason for the request failing, or null if the request has not failed", readOnly = true) + @ApiModelProperty(value = "The reason for the request failing, or null if the request has not failed", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getFailureReason() { return failureReason; } @@ -91,7 +91,7 @@ public abstract class AsynchronousRequestDTO { this.failureReason = failureReason; } - @ApiModelProperty(value = "A value between 0 and 100 (inclusive) indicating how close the request is to completion", readOnly = true) + @ApiModelProperty(value = "A value between 0 and 100 (inclusive) indicating how close the request is to completion", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public int getPercentCompleted() { return percentCompleted; } @@ -100,7 +100,7 @@ public abstract class AsynchronousRequestDTO { this.percentCompleted = percentCompleted; } - @ApiModelProperty(value = "A description of the current state of the request", readOnly = true) + @ApiModelProperty(value = "A description of the current state of the request", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getState() { return state; } @@ -109,7 +109,7 @@ public abstract class AsynchronousRequestDTO { this.state = state; } - @ApiModelProperty(value = "The steps that are required in order to complete the request, along with the status of each", readOnly = true) + @ApiModelProperty(value = "The steps that are required in order to complete the request, along with the status of each", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public List getUpdateSteps() { return updateSteps; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ConnectionDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ConnectionDTO.java index f62feac780..d1642514e6 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ConnectionDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ConnectionDTO.java @@ -159,7 +159,7 @@ public class ConnectionDTO extends ComponentDTO { */ @ApiModelProperty( value = "The relationships that the source of the connection currently supports.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Set getAvailableRelationships() { return availableRelationships; @@ -271,7 +271,7 @@ public class ConnectionDTO extends ComponentDTO { @ApiModelProperty(value = "The current status of the Connection's Load Balancing Activities. Status can indicate that Load Balancing is not configured for the connection, that Load Balancing " + "is configured but inactive (not currently transferring data to another node), or that Load Balancing is configured and actively transferring data to another node.", allowableValues = LOAD_BALANCE_NOT_CONFIGURED + ", " + LOAD_BALANCE_INACTIVE + ", " + LOAD_BALANCE_ACTIVE, - readOnly = true) + accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getLoadBalanceStatus() { return loadBalanceStatus; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ControllerServiceDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ControllerServiceDTO.java index 8a359b6416..cb3824f29a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ControllerServiceDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ControllerServiceDTO.java @@ -303,7 +303,7 @@ public class ControllerServiceDTO extends ComponentDTO { } @ApiModelProperty(value = "Indicates whether the ControllerService is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the ControllerService is valid)", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = VALID + ", " + INVALID + ", " + VALIDATING) public String getValidationStatus() { return validationStatus; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowConfigurationDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowConfigurationDTO.java index 2be6301501..fccf9b8d0d 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowConfigurationDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowConfigurationDTO.java @@ -45,7 +45,7 @@ public class FlowConfigurationDTO { */ @ApiModelProperty( value = "The interval in seconds between the automatic NiFi refresh requests.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Long getAutoRefreshIntervalSeconds() { return autoRefreshIntervalSeconds; @@ -61,7 +61,7 @@ public class FlowConfigurationDTO { */ @ApiModelProperty( value = "Whether this NiFi supports a managed authorizer. Managed authorizers can visualize users, groups, and policies in the UI.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Boolean getSupportsManagedAuthorizer() { return supportsManagedAuthorizer; @@ -76,7 +76,7 @@ public class FlowConfigurationDTO { */ @ApiModelProperty( value = "Whether this NiFi supports configurable users and groups.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Boolean getSupportsConfigurableUsersAndGroups() { return supportsConfigurableUsersAndGroups; @@ -91,7 +91,7 @@ public class FlowConfigurationDTO { */ @ApiModelProperty( value = "Whether this NiFi supports a configurable authorizer.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Boolean getSupportsConfigurableAuthorizer() { return supportsConfigurableAuthorizer; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowUpdateRequestDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowUpdateRequestDTO.java index 62598fdf37..a12d8e4739 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowUpdateRequestDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/FlowUpdateRequestDTO.java @@ -42,7 +42,7 @@ public abstract class FlowUpdateRequestDTO { this.processGroupId = processGroupId; } - @ApiModelProperty(value = "The unique ID of this request.", readOnly = true) + @ApiModelProperty(value = "The unique ID of this request.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getRequestId() { return requestId; } @@ -51,7 +51,7 @@ public abstract class FlowUpdateRequestDTO { this.requestId = requestId; } - @ApiModelProperty(value = "The URI for future requests to this drop request.", readOnly = true) + @ApiModelProperty(value = "The URI for future requests to this drop request.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getUri() { return uri; } @@ -61,7 +61,7 @@ public abstract class FlowUpdateRequestDTO { } @XmlJavaTypeAdapter(TimestampAdapter.class) - @ApiModelProperty(value = "The last time this request was updated.", dataType = "string", readOnly = true) + @ApiModelProperty(value = "The last time this request was updated.", dataType = "string", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Date getLastUpdated() { return lastUpdated; } @@ -70,7 +70,7 @@ public abstract class FlowUpdateRequestDTO { this.lastUpdated = lastUpdated; } - @ApiModelProperty(value = "Whether or not this request has completed", readOnly = true) + @ApiModelProperty(value = "Whether or not this request has completed", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public boolean isComplete() { return complete; } @@ -79,7 +79,7 @@ public abstract class FlowUpdateRequestDTO { this.complete = complete; } - @ApiModelProperty(value = "An explanation of why this request failed, or null if this request has not failed", readOnly = true) + @ApiModelProperty(value = "An explanation of why this request failed, or null if this request has not failed", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getFailureReason() { return failureReason; } @@ -88,7 +88,7 @@ public abstract class FlowUpdateRequestDTO { this.failureReason = reason; } - @ApiModelProperty(value = "The state of the request", readOnly = true) + @ApiModelProperty(value = "The state of the request", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getState() { return state; } @@ -97,7 +97,7 @@ public abstract class FlowUpdateRequestDTO { this.state = state; } - @ApiModelProperty(value = "The percentage complete for the request, between 0 and 100", readOnly = true) + @ApiModelProperty(value = "The percentage complete for the request, between 0 and 100", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public int getPercentCompleted() { return percentCompleted; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/NodeDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/NodeDTO.java index 8528fe9d2d..e6698397cf 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/NodeDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/NodeDTO.java @@ -49,7 +49,7 @@ public class NodeDTO { @XmlJavaTypeAdapter(DateTimeAdapter.class) @ApiModelProperty( value = "the time of the nodes's last heartbeat.", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, dataType = "string" ) public Date getHeartbeat() { @@ -66,7 +66,7 @@ public class NodeDTO { @XmlJavaTypeAdapter(DateTimeAdapter.class) @ApiModelProperty( value = "The time of the node's last connection request.", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, dataType = "string" ) public Date getConnectionRequested() { @@ -84,7 +84,7 @@ public class NodeDTO { */ @ApiModelProperty( value = "The active threads for the NiFi on the node.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Integer getActiveThreadCount() { return activeThreadCount; @@ -99,7 +99,7 @@ public class NodeDTO { */ @ApiModelProperty( value = "The queue the NiFi on the node.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public String getQueued() { return queued; @@ -114,7 +114,7 @@ public class NodeDTO { */ @ApiModelProperty( value = "The node's host/ip address.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public String getAddress() { return address; @@ -129,7 +129,7 @@ public class NodeDTO { */ @ApiModelProperty( value = "The id of the node.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public String getNodeId() { return nodeId; @@ -144,7 +144,7 @@ public class NodeDTO { */ @ApiModelProperty( value = "The port the node is listening for API requests.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Integer getApiPort() { return apiPort; @@ -173,7 +173,7 @@ public class NodeDTO { */ @ApiModelProperty( value = "The node's events.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public List getEvents() { return events; @@ -188,7 +188,7 @@ public class NodeDTO { */ @ApiModelProperty( value = "The roles of this node.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Set getRoles() { return roles; @@ -204,7 +204,7 @@ public class NodeDTO { @XmlJavaTypeAdapter(DateTimeAdapter.class) @ApiModelProperty( value = "The time at which this Node was last refreshed.", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, dataType = "string" ) public Date getNodeStartTime() { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextDTO.java index d40fa31b6c..e177f10164 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextDTO.java @@ -35,7 +35,7 @@ public class ParameterContextDTO { this.identifier = id; } - @ApiModelProperty(value = "The ID the Parameter Context.", readOnly = true) + @ApiModelProperty(value = "The ID the Parameter Context.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getId() { return identifier; } @@ -71,7 +71,7 @@ public class ParameterContextDTO { this.boundProcessGroups = boundProcessGroups; } - @ApiModelProperty(value = "The Process Groups that are bound to this Parameter Context", readOnly = true) + @ApiModelProperty(value = "The Process Groups that are bound to this Parameter Context", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Set getBoundProcessGroups() { return boundProcessGroups; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextUpdateRequestDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextUpdateRequestDTO.java index 94ab468be4..ca79c4c669 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextUpdateRequestDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextUpdateRequestDTO.java @@ -27,7 +27,8 @@ public class ParameterContextUpdateRequestDTO extends AsynchronousRequestDTO referencingComponents; - @ApiModelProperty(value = "The Parameter Context that is being operated on. This may not be populated until the request has successfully completed.", readOnly = true) + @ApiModelProperty(value = "The Parameter Context that is being operated on. This may not be populated until the request has successfully completed.", + accessMode = ApiModelProperty.AccessMode.READ_ONLY) public ParameterContextDTO getParameterContext() { return parameterContext; } @@ -36,7 +37,7 @@ public class ParameterContextUpdateRequestDTO extends AsynchronousRequestDTO getReferencingComponents() { return referencingComponents; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextValidationRequestDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextValidationRequestDTO.java index c475286bf6..bd6ec75974 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextValidationRequestDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ParameterContextValidationRequestDTO.java @@ -26,7 +26,8 @@ public class ParameterContextValidationRequestDTO extends AsynchronousRequestDTO private ParameterContextDTO parameterContext; private ComponentValidationResultsEntity componentValidationResults; - @ApiModelProperty(value = "The Validation Results that were calculated for each component. This value may not be set until the request completes.", readOnly = true) + @ApiModelProperty(value = "The Validation Results that were calculated for each component. This value may not be set until the request completes.", + accessMode = ApiModelProperty.AccessMode.READ_ONLY) public ComponentValidationResultsEntity getComponentValidationResults() { return componentValidationResults; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/PermissionsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/PermissionsDTO.java index 10bc81185f..4789d6867b 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/PermissionsDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/PermissionsDTO.java @@ -34,7 +34,7 @@ public class PermissionsDTO implements ReadablePermission, WritablePermission { */ @ApiModelProperty( value = "Indicates whether the user can read a given resource.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) @Override public Boolean getCanRead() { @@ -51,7 +51,7 @@ public class PermissionsDTO implements ReadablePermission, WritablePermission { */ @ApiModelProperty( value = "Indicates whether the user can write a given resource.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) @Override public Boolean getCanWrite() { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessGroupDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessGroupDTO.java index 1b3bfe20cf..bece7ba207 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessGroupDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessGroupDTO.java @@ -111,7 +111,7 @@ public class ProcessGroupDTO extends ComponentDTO { */ @ApiModelProperty( value = "The number of input ports in the process group.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Integer getInputPortCount() { return NumberUtil.sumNullableIntegers(localInputPortCount, publicInputPortCount); @@ -171,7 +171,7 @@ public class ProcessGroupDTO extends ComponentDTO { */ @ApiModelProperty( value = "The number of output ports in the process group.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Integer getOutputPortCount() { return NumberUtil.sumNullableIntegers(localOutputPortCount, publicOutputPortCount); @@ -327,7 +327,7 @@ public class ProcessGroupDTO extends ComponentDTO { @ApiModelProperty(value = "The variables that are configured for the Process Group. Note that this map contains only " + "those variables that are defined on this Process Group and not any variables that are defined in the parent " + "Process Group, etc. I.e., this Map will not contain all variables that are accessible by components in this " - + "Process Group by rather only the variables that are defined for this Process Group itself.", readOnly = true) + + "Process Group by rather only the variables that are defined for this Process Group itself.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Map getVariables() { return variables; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessorDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessorDTO.java index cd1fe41967..04bae8c64a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessorDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ProcessorDTO.java @@ -269,7 +269,7 @@ public class ProcessorDTO extends ComponentDTO { */ @ApiModelProperty( value = "The available relationships that the processor currently supports.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public List getRelationships() { return relationships; @@ -312,7 +312,7 @@ public class ProcessorDTO extends ComponentDTO { } @ApiModelProperty(value = "Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid)", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = VALID + ", " + INVALID + ", " + VALIDATING) public String getValidationStatus() { return validationStatus; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReadablePermission.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReadablePermission.java index e9f2bd7918..f06e927376 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReadablePermission.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReadablePermission.java @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModelProperty; public interface ReadablePermission { @ApiModelProperty( value = "Indicates whether the user can read a given resource.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) Boolean getCanRead(); diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReportingTaskDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReportingTaskDTO.java index 38f3ec86cc..cccb50dce5 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReportingTaskDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ReportingTaskDTO.java @@ -303,7 +303,7 @@ public class ReportingTaskDTO extends ComponentDTO { } @ApiModelProperty(value = "Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid)", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = VALID + ", " + INVALID + ", " + VALIDATING) public String getValidationStatus() { return validationStatus; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/RevisionDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/RevisionDTO.java index d6871a298f..0968d6809a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/RevisionDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/RevisionDTO.java @@ -71,7 +71,7 @@ public class RevisionDTO { */ @ApiModelProperty( value = "The user that last modified the flow.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public String getLastModifier() { return lastModifier; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UpdateStepDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UpdateStepDTO.java index 25e3f1ff8a..ce3816b5e9 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UpdateStepDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UpdateStepDTO.java @@ -23,7 +23,7 @@ public abstract class UpdateStepDTO { private boolean complete; private String failureReason; - @ApiModelProperty(value = "Explanation of what happens in this step", readOnly = true) + @ApiModelProperty(value = "Explanation of what happens in this step", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getDescription() { return description; } @@ -32,7 +32,7 @@ public abstract class UpdateStepDTO { this.description = description; } - @ApiModelProperty(value = "Whether or not this step has completed", readOnly = true) + @ApiModelProperty(value = "Whether or not this step has completed", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public boolean isComplete() { return complete; } @@ -41,7 +41,7 @@ public abstract class UpdateStepDTO { this.complete = complete; } - @ApiModelProperty(value = "An explanation of why this step failed, or null if this step did not fail", readOnly = true) + @ApiModelProperty(value = "An explanation of why this step failed, or null if this step did not fail", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getFailureReason() { return failureReason; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserDTO.java index 3a2113eb1b..4fa28360b9 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserDTO.java @@ -37,7 +37,7 @@ public class UserDTO extends TenantDTO { */ @ApiModelProperty( value = "The groups to which the user belongs. This field is read only and it provided for convenience.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Set getUserGroups() { return userGroups; @@ -52,7 +52,7 @@ public class UserDTO extends TenantDTO { */ @ApiModelProperty( value = "The access policies this user belongs to.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Set getAccessPolicies() { return accessPolicies; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserGroupDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserGroupDTO.java index 797844592d..407f5adc6c 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserGroupDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/UserGroupDTO.java @@ -51,7 +51,7 @@ public class UserGroupDTO extends TenantDTO { value = "The access policies this user group belongs to. This field was incorrectly defined as an AccessPolicyEntity. For " + "compatibility reasons the field will remain of this type, however only the fields that are present in the " + "AccessPolicySummaryEntity will be populated here.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Set getAccessPolicies() { return accessPolicies; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableDTO.java index f119e10763..f9c28d55e0 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableDTO.java @@ -48,7 +48,7 @@ public class VariableDTO { this.value = value; } - @ApiModelProperty(value = "The ID of the Process Group where this Variable is defined", readOnly = true) + @ApiModelProperty(value = "The ID of the Process Group where this Variable is defined", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getProcessGroupId() { return processGroupId; } @@ -57,7 +57,7 @@ public class VariableDTO { this.processGroupId = groupId; } - @ApiModelProperty(value = "A set of all components that will be affected if the value of this variable is changed", readOnly = true) + @ApiModelProperty(value = "A set of all components that will be affected if the value of this variable is changed", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Set getAffectedComponents() { return affectedComponents; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableRegistryUpdateRequestDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableRegistryUpdateRequestDTO.java index 9e4bb61b1e..166bcf3b15 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableRegistryUpdateRequestDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VariableRegistryUpdateRequestDTO.java @@ -37,7 +37,8 @@ public class VariableRegistryUpdateRequestDTO extends AsynchronousRequestDTO getAffectedComponents() { return affectedComponents; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionControlInformationDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionControlInformationDTO.java index dae00bc3e9..cea8fcf24a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionControlInformationDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionControlInformationDTO.java @@ -53,7 +53,7 @@ public class VersionControlInformationDTO { this.registryId = registryId; } - @ApiModelProperty(value = "The name of the registry that the flow is stored in", readOnly = true) + @ApiModelProperty(value = "The name of the registry that the flow is stored in", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getRegistryName() { return registryName; } @@ -71,7 +71,7 @@ public class VersionControlInformationDTO { this.bucketId = bucketId; } - @ApiModelProperty(value = "The name of the bucket that the flow is stored in", readOnly = true) + @ApiModelProperty(value = "The name of the bucket that the flow is stored in", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public String getBucketName() { return bucketName; } @@ -116,7 +116,7 @@ public class VersionControlInformationDTO { this.version = version; } - @ApiModelProperty(readOnly = true, + @ApiModelProperty(accessMode = ApiModelProperty.AccessMode.READ_ONLY, value = "The current state of the Process Group, as it relates to the Versioned Flow", allowableValues = "LOCALLY_MODIFIED, STALE, LOCALLY_MODIFIED_AND_STALE, UP_TO_DATE, SYNC_FAILURE") public String getState() { @@ -127,7 +127,7 @@ public class VersionControlInformationDTO { this.state = state; } - @ApiModelProperty(readOnly = true, value = "Explanation of why the group is in the specified state") + @ApiModelProperty(accessMode = ApiModelProperty.AccessMode.READ_ONLY, value = "Explanation of why the group is in the specified state") public String getStateExplanation() { return stateExplanation; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionedFlowUpdateRequestDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionedFlowUpdateRequestDTO.java index 924a1a5d59..81474070b4 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionedFlowUpdateRequestDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/VersionedFlowUpdateRequestDTO.java @@ -25,7 +25,8 @@ import javax.xml.bind.annotation.XmlType; public class VersionedFlowUpdateRequestDTO extends FlowUpdateRequestDTO { private VersionControlInformationDTO versionControlInformation; - @ApiModelProperty(value = "The VersionControlInformation that describes where the Versioned Flow is located; this may not be populated until the request is completed.", readOnly = true) + @ApiModelProperty(value = "The VersionControlInformation that describes where the Versioned Flow is located; this may not be populated until the request is completed.", + accessMode = ApiModelProperty.AccessMode.READ_ONLY) public VersionControlInformationDTO getVersionControlInformation() { return versionControlInformation; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/WritablePermission.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/WritablePermission.java index 26191c22c4..17e3f7b65b 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/WritablePermission.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/WritablePermission.java @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModelProperty; public interface WritablePermission { @ApiModelProperty( value = "Indicates whether the user can write a given resource.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) Boolean getCanWrite(); diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java index 05e9aff8da..3f7e8b200d 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java @@ -28,7 +28,7 @@ public class ConnectionDiagnosticsDTO { private ConnectionDiagnosticsSnapshotDTO aggregateSnapshot; private List nodeSnapshots; - @ApiModelProperty(value = "Details about the connection", readOnly = true) + @ApiModelProperty(value = "Details about the connection", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public ConnectionDTO getConnection() { return connection; } @@ -37,7 +37,8 @@ public class ConnectionDiagnosticsDTO { this.connection = connection; } - @ApiModelProperty(value = "Aggregate values for all nodes in the cluster, or for this instance if not clustered", readOnly = true) + @ApiModelProperty(value = "Aggregate values for all nodes in the cluster, or for this instance if not clustered", + accessMode = ApiModelProperty.AccessMode.READ_ONLY) public ConnectionDiagnosticsSnapshotDTO getAggregateSnapshot() { return aggregateSnapshot; } @@ -46,7 +47,7 @@ public class ConnectionDiagnosticsDTO { this.aggregateSnapshot = aggregateSnapshot; } - @ApiModelProperty(value = "A list of values for each node in the cluster, if clustered.", readOnly = true) + @ApiModelProperty(value = "A list of values for each node in the cluster, if clustered.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public List getNodeSnapshots() { return nodeSnapshots; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ComponentStatusDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ComponentStatusDTO.java index f33338cbca..93e498a79b 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ComponentStatusDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ComponentStatusDTO.java @@ -43,7 +43,7 @@ public class ComponentStatusDTO{ * @return the run status of the component */ @ApiModelProperty(value = "The run status of this component", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = "ENABLED, ENABLING, DISABLED, DISABLING") public String getRunStatus() { return runStatus; @@ -55,7 +55,7 @@ public class ComponentStatusDTO{ @ApiModelProperty(value = "Indicates whether the component is valid, invalid, or still in the process of validating" + " (i.e., it is unknown whether or not the component is valid)", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = VALID + ", " + INVALID + ", " + VALIDATING) public String getValidationStatus() { return validationStatus; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ControllerServiceStatusDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ControllerServiceStatusDTO.java index 891da9f44b..081984339a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ControllerServiceStatusDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ControllerServiceStatusDTO.java @@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType; public class ControllerServiceStatusDTO extends ComponentStatusDTO { @ApiModelProperty(value = "The run status of this ControllerService", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = "ENABLED, ENABLING, DISABLED, DISABLING") @Override public String getRunStatus() { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessGroupStatusSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessGroupStatusSnapshotDTO.java index f1b324e425..5296376423 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessGroupStatusSnapshotDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessGroupStatusSnapshotDTO.java @@ -105,7 +105,7 @@ public class ProcessGroupStatusSnapshotDTO implements Cloneable { this.name = name; } - @ApiModelProperty(readOnly = true, + @ApiModelProperty(accessMode = ApiModelProperty.AccessMode.READ_ONLY, value = "The current state of the Process Group, as it relates to the Versioned Flow", allowableValues = "LOCALLY_MODIFIED, STALE, LOCALLY_MODIFIED_AND_STALE, UP_TO_DATE, SYNC_FAILURE") public String getVersionedFlowState() { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/RemoteProcessGroupStatusDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/RemoteProcessGroupStatusDTO.java index 33db24bf0f..297df37e9f 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/RemoteProcessGroupStatusDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/RemoteProcessGroupStatusDTO.java @@ -123,7 +123,7 @@ public class RemoteProcessGroupStatusDTO { @ApiModelProperty(value = "Indicates whether the component is valid, invalid, or still in the process of validating" + " (i.e., it is unknown whether or not the component is valid)", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = "VALID, INVALID, VALIDATING") public String getValidationStatus() { return validationStatus; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ReportingTaskStatusDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ReportingTaskStatusDTO.java index 02bed5d754..7426557ee4 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ReportingTaskStatusDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ReportingTaskStatusDTO.java @@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlType; public class ReportingTaskStatusDTO extends ComponentStatusDTO { @ApiModelProperty(value = "The run status of this ReportingTask", - readOnly = true, + accessMode = ApiModelProperty.AccessMode.READ_ONLY, allowableValues = "RUNNING, STOPPED, DISABLED") @Override public String getRunStatus() { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ControllerServiceEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ControllerServiceEntity.java index 1c2f4c0a9a..1d054c37de 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ControllerServiceEntity.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ControllerServiceEntity.java @@ -80,7 +80,7 @@ public class ControllerServiceEntity extends ComponentEntity implements Permissi */ @ApiModelProperty( value = "The status for this ControllerService.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public ControllerServiceStatusDTO getStatus() { return status; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/FlowBreadcrumbEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/FlowBreadcrumbEntity.java index 99a60270be..f307ed60bc 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/FlowBreadcrumbEntity.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/FlowBreadcrumbEntity.java @@ -98,7 +98,7 @@ public class FlowBreadcrumbEntity extends Entity { this.parentBreadcrumb = parentBreadcrumb; } - @ApiModelProperty(readOnly = true, + @ApiModelProperty(accessMode = ApiModelProperty.AccessMode.READ_ONLY, value = "The current state of the Process Group, as it relates to the Versioned Flow", allowableValues = "LOCALLY_MODIFIED, STALE, LOCALLY_MODIFIED_AND_STALE, UP_TO_DATE, SYNC_FAILURE") public String getVersionedFlowState() { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterContextsEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterContextsEntity.java index 3f581af476..7903b58666 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterContextsEntity.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterContextsEntity.java @@ -42,7 +42,7 @@ public class ParameterContextsEntity extends Entity { @ApiModelProperty( value = "The current time on the system.", dataType = "string", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public Date getCurrentTime() { return currentTime; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterEntity.java index e77c0ae759..4d7a387c6e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterEntity.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ParameterEntity.java @@ -37,7 +37,7 @@ public class ParameterEntity extends Entity implements WritablePermission { } @Override - @ApiModelProperty(value = "Indicates whether the user can write a given resource.", readOnly = true) + @ApiModelProperty(value = "Indicates whether the user can write a given resource.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Boolean getCanWrite() { return canWrite; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessGroupEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessGroupEntity.java index 11cdc5187d..4135cd3a63 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessGroupEntity.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessGroupEntity.java @@ -90,7 +90,7 @@ public class ProcessGroupEntity extends ComponentEntity implements Permissible

{ private VersionedFlowSnapshot versionedFlowSnapshot; - @ApiModelProperty(value = "Returns the Versioned Flow to replace with", readOnly = true) + @ApiModelProperty(value = "Returns the Versioned Flow to replace with", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public VersionedFlowSnapshot getVersionedFlowSnapshot() { return versionedFlowSnapshot; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ReportingTaskEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ReportingTaskEntity.java index 587cd3857b..241a9953df 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ReportingTaskEntity.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ReportingTaskEntity.java @@ -68,7 +68,7 @@ public class ReportingTaskEntity extends ComponentEntity implements Permissible< */ @ApiModelProperty( value = "The status for this ReportingTask.", - readOnly = true + accessMode = ApiModelProperty.AccessMode.READ_ONLY ) public ReportingTaskStatusDTO getStatus() { return status; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/VariableEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/VariableEntity.java index ce56367e8c..72898fc634 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/VariableEntity.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/VariableEntity.java @@ -28,7 +28,7 @@ public class VariableEntity extends Entity implements WritablePermission { private Boolean canWrite; @Override - @ApiModelProperty(value = "Indicates whether the user can write a given resource.", readOnly = true) + @ApiModelProperty(value = "Indicates whether the user can write a given resource.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) public Boolean getCanWrite() { return canWrite; }