mirror of https://github.com/apache/nifi.git
NIFI-2237:
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 #806
This commit is contained in:
parent
e2f649cfea
commit
d094130a26
|
@ -149,7 +149,7 @@ public class ConnectionDTO extends ComponentDTO {
|
||||||
* @return relationships that the source of the connection currently supports. This property is read only
|
* @return relationships that the source of the connection currently supports. This property is read only
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(
|
@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
|
readOnly = true
|
||||||
)
|
)
|
||||||
public Set<String> getAvailableRelationships() {
|
public Set<String> getAvailableRelationships() {
|
||||||
|
|
|
@ -185,7 +185,8 @@ public class ProcessorDTO extends ComponentDTO {
|
||||||
* @return The available relationships
|
* @return The available relationships
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(
|
@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() {
|
public List<RelationshipDTO> getRelationships() {
|
||||||
return relationships;
|
return relationships;
|
||||||
|
|
|
@ -43,7 +43,9 @@
|
||||||
{{/ifeq}}
|
{{/ifeq}}
|
||||||
</td>
|
</td>
|
||||||
<td>{{#required}}required{{/required}}{{^required}}optional{{/required}}</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>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue