Skip to content

Commit

Permalink
NIFI-2237:
Browse files Browse the repository at this point in the history
Extend template handling to read only properties.
* Add read only property handling to type.hbs template.
* Add flag to ProcessorDTO.getRelationships to reflect read only nature of the property.
* Remove explicit "read only" message from ConnectionDTO.getAvailableRelationships to avoid duplicate text.
* This closes apache#806
  • Loading branch information
jskora authored and mcgilman committed Aug 8, 2016
1 parent e2f649c commit d094130
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void setSelectedRelationships(Set<String> relationships) {
* @return relationships that the source of the connection currently supports. This property is read only
*/
@ApiModelProperty(
value = "The relationships that the source of the connection currently supports. This property is read only.",
value = "The relationships that the source of the connection currently supports.",
readOnly = true
)
public Set<String> getAvailableRelationships() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ public void setSupportsBatching(Boolean supportsBatching) {
* @return The available relationships
*/
@ApiModelProperty(
value = "The available relationships that the processor currently supports."
value = "The available relationships that the processor currently supports.",
readOnly = true
)
public List<RelationshipDTO> getRelationships() {
return relationships;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
{{/ifeq}}
</td>
<td>{{#required}}required{{/required}}{{^required}}optional{{/required}}</td>
<td>{{#description}}{{{description}}}{{/description}}{{#if enum}} Allowable values: {{join enum ", "}}{{/if}}</td>
<td>{{#description}}{{{description}}}{{/description}}
{{#if enum}} Allowable values: {{join enum ", "}}{{/if}}
{{#if readOnly}} This property is read only.{{/if}}</td>
</tr>
{{/each}}
</table>
Expand Down

0 comments on commit d094130

Please sign in to comment.