[
https://issues.apache.org/jira/browse/NIFI-1781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15296649#comment-15296649
]
ASF GitHub Bot commented on NIFI-1781:
--------------------------------------
Github user mcgilman commented on a diff in the pull request:
https://github.com/apache/nifi/pull/461#discussion_r64251051
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/groups/ProcessGroup.java
---
@@ -46,6 +48,26 @@
public interface ProcessGroup extends Authorizable {
/**
+ * Predicate for filtering schedulable Processors.
+ */
+ Predicate<ProcessorNode> SCHEDULABLE_PROCESSORS = node ->
!node.isRunning() && node.getScheduledState() != ScheduledState.DISABLED;
+
+ /**
+ * Predicate for filtering unschedulable Processors.
+ */
+ Predicate<ProcessorNode> UNSCHEDULABLE_PROCESSORS = node ->
node.isRunning();
+
+ /**
+ * Predicate for filtering schedulable Ports
+ */
+ Predicate<Port> SCHEDULABLE_PORTS = port -> port.getScheduledState()
!= ScheduledState.DISABLED;
+
+ /**
+ * Predicate for filtering schedulable Ports
+ */
+ Predicate<Port> UNSCHEDULABLE_PORTS = port -> port.getScheduledState()
== ScheduledState.RUNNING;
--- End diff --
Happy to update the logic to whatever it needs to be. However, this is how
it was previously.
> Update UI to reflect component level authorization
> --------------------------------------------------
>
> Key: NIFI-1781
> URL: https://issues.apache.org/jira/browse/NIFI-1781
> Project: Apache NiFi
> Issue Type: Sub-task
> Components: Core UI
> Reporter: Matt Gilman
> Assignee: Matt Gilman
> Fix For: 1.0.0
>
> Attachments: 0001-NIFI-1781.patch, nifi-component-samples.png,
> nifi-sample-flow.png
>
>
> - Update to UI to visual access level per component
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)