Interface LinkedTemplateManager


  • public interface LinkedTemplateManager
    Manages the links between global templates and spaces workflows which enable global workflows to exist on multiple spaces.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addSpaceLabelLink​(java.lang.String label, java.lang.String templateName)
      Add a link between a label (space category) and the given global workflow template name.
      void addTemplateLink​(java.lang.String spaceKey, java.lang.String templateName)
      Links a global template to a space, the workflow will be applied to all pages in the space.
      java.util.List<java.lang.String> getLinkedLabelTemplateNames​(java.lang.String label)
      Returns the global workflow template names that are linked to a specific space label.
      java.util.List<Workflow> getLinkedLabelTemplates​(java.lang.String label)
      Returns the global workflows that are linked to a specific space label.
      java.util.List<java.lang.String> getLinkedSpaceLabels​(java.lang.String templateName)
      Returns the labels (space categories) that are linked to a given global workflow template name.
      java.util.List<java.lang.String> getLinkedSpaces​(java.lang.String templateName)
      Get the spaces that are linked to a global template
      java.util.List<com.atlassian.confluence.spaces.Space> getLinkedSpacesList​(java.lang.String templateName)
      Get the spaces that are linked to a global template
      java.util.List<java.lang.String> getLinkedTemplateNames​(java.lang.String spaceKey)
      Get the names of the global workflow templates that are linked to a space
      java.util.List<Workflow> getLinkedTemplates​(java.lang.String spaceKey)
      Get the global workflow templates that are linked to a space.
      boolean isLinked​(java.lang.String spaceKey, java.lang.String templateName)
      Returns true if the given space and global workflow template are linked.
      void removeSpaceLabelLink​(java.lang.String label, java.lang.String templateName)
      Remove the link between label (space category) and the given global workflow template name.
      void removeTemplateLink​(java.lang.String spaceKey, java.lang.String templateName)
      Remove a global template link from a space
    • Method Detail

      • addTemplateLink

        void addTemplateLink​(java.lang.String spaceKey,
                             java.lang.String templateName)
        Links a global template to a space, the workflow will be applied to all pages in the space. Note, linking the template will not automatically initialise existing pages for things like initial assignees and due dates.
        Parameters:
        spaceKey - the space to add the global workflow to
        templateName - the global template to add
      • removeTemplateLink

        void removeTemplateLink​(java.lang.String spaceKey,
                                java.lang.String templateName)
        Remove a global template link from a space
        Parameters:
        spaceKey - the space to remove the template link from
        templateName - the global template to remove
      • getLinkedTemplates

        java.util.List<Workflow> getLinkedTemplates​(java.lang.String spaceKey)
        Get the global workflow templates that are linked to a space.
        Parameters:
        spaceKey -
        Returns:
        List of global templates that are linked to the given space
      • getLinkedTemplateNames

        java.util.List<java.lang.String> getLinkedTemplateNames​(java.lang.String spaceKey)
        Get the names of the global workflow templates that are linked to a space
        Parameters:
        spaceKey -
        Returns:
        list of the names of global templates that are linked to the given space.
      • getLinkedSpaces

        java.util.List<java.lang.String> getLinkedSpaces​(java.lang.String templateName)
        Get the spaces that are linked to a global template
        Parameters:
        templateName - the global template to get the linked spaces for
        Returns:
        a list of space keys that are linked to the given template
      • getLinkedSpacesList

        java.util.List<com.atlassian.confluence.spaces.Space> getLinkedSpacesList​(java.lang.String templateName)
        Get the spaces that are linked to a global template
        Parameters:
        templateName -
        Returns:
        a list of spaces that are linked to the given template
      • isLinked

        boolean isLinked​(java.lang.String spaceKey,
                         java.lang.String templateName)
        Returns true if the given space and global workflow template are linked.
        Parameters:
        spaceKey -
        templateName -
        Returns:
        true and the given space and global template are linked, otherwise false
      • addSpaceLabelLink

        void addSpaceLabelLink​(java.lang.String label,
                               java.lang.String templateName)
        Add a link between a label (space category) and the given global workflow template name. Blueprint spaces with the associate label will be linked with the global workflow on space creation.
        Parameters:
        label -
        templateName -
      • removeSpaceLabelLink

        void removeSpaceLabelLink​(java.lang.String label,
                                  java.lang.String templateName)
        Remove the link between label (space category) and the given global workflow template name.
        Parameters:
        label -
        templateName -
      • getLinkedSpaceLabels

        java.util.List<java.lang.String> getLinkedSpaceLabels​(java.lang.String templateName)
        Returns the labels (space categories) that are linked to a given global workflow template name.
        Parameters:
        templateName -
        Returns:
      • getLinkedLabelTemplateNames

        java.util.List<java.lang.String> getLinkedLabelTemplateNames​(java.lang.String label)
        Returns the global workflow template names that are linked to a specific space label.
        Parameters:
        label -
        Returns:
      • getLinkedLabelTemplates

        java.util.List<Workflow> getLinkedLabelTemplates​(java.lang.String label)
        Returns the global workflows that are linked to a specific space label.
        Parameters:
        label -
        Returns: