Class WorkflowList

    • Constructor Detail

      • WorkflowList

        public WorkflowList()

        Creates a new instance.

      • WorkflowList

        public WorkflowList​(java.util.Collection<Workflow> workflows)
    • Method Detail

      • close

        public void close()
        Description copied from interface: ComponentLifecycle
        Closes the component.

        A closed component should release any connections it uses, etc. and clean up completely. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        close in interface ComponentLifecycle
        See Also:
        ComponentLifecycle.close()
      • getWorkflows

        public java.util.List<Workflow> getWorkflows()

        Returns a List of Workflows.

        Returns:
        a List of Workflows
      • setWorkflows

        public void setWorkflows​(java.util.List<Workflow> l)

        Sets a List of Workflows.

        Parameters:
        l - a List of Workflows
      • addWorkflow

        public void addWorkflow​(Workflow element)
        Add a workflow.
        Parameters:
        element - the workflow to add
        See Also:
        add(Workflow)
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Workflow>
        Specified by:
        size in interface java.util.List<Workflow>
        Specified by:
        size in class java.util.AbstractCollection<Workflow>
      • iterator

        public java.util.Iterator<Workflow> iterator()
        Specified by:
        iterator in interface java.util.Collection<Workflow>
        Specified by:
        iterator in interface java.lang.Iterable<Workflow>
        Specified by:
        iterator in interface java.util.List<Workflow>
        Specified by:
        iterator in class java.util.AbstractCollection<Workflow>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<Workflow>
        Specified by:
        remove in interface java.util.List<Workflow>
        Overrides:
        remove in class java.util.AbstractCollection<Workflow>
      • removeWorkflow

        public boolean removeWorkflow​(Workflow wf)
        Remove a Workflow from this channel list.
        Parameters:
        wf -
        Returns:
        true if the workflow was removed
      • add

        public boolean add​(Workflow element)
        Specified by:
        add in interface java.util.Collection<Workflow>
        Specified by:
        add in interface java.util.List<Workflow>
        Overrides:
        add in class java.util.AbstractCollection<Workflow>
      • add

        public void add​(int index,
                        Workflow element)
        Specified by:
        add in interface java.util.List<Workflow>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends Workflow> c)
        Specified by:
        addAll in interface java.util.List<Workflow>
      • get

        public Workflow get​(int index)
        Specified by:
        get in interface java.util.List<Workflow>
      • getWorkflow

        public Workflow getWorkflow​(java.lang.String uniqueId)
        Get a workflow by its uniqueid.
        Parameters:
        uniqueId - the unique id of the workflow
        Returns:
        the workflow or null if no match is found.
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<Workflow>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<Workflow>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<Workflow>
        Specified by:
        clear in interface java.util.List<Workflow>
        Overrides:
        clear in class java.util.AbstractCollection<Workflow>
      • listIterator

        public java.util.ListIterator<Workflow> listIterator()
        Specified by:
        listIterator in interface java.util.List<Workflow>
      • listIterator

        public java.util.ListIterator<Workflow> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<Workflow>
      • remove

        public Workflow remove​(int index)
        Specified by:
        remove in interface java.util.List<Workflow>
      • subList

        public java.util.List<Workflow> subList​(int fromIndex,
                                                int toIndex)
        Specified by:
        subList in interface java.util.List<Workflow>