Interface RuleLabelStore

All Known Implementing Classes:
JiraRuleLabelStore

public interface RuleLabelStore
  • Method Details

    • getLabels

      List<RuleLabel> getLabels(TenantContext context)
      Retrieves all the rule labels for a tenant
      Parameters:
      context - The database tenant context
      Returns:
      the complete list or rule labels for the tenant
    • getLabel

      Optional<RuleLabel> getLabel(TenantContext context, long labelId)
      Gets a single rule label by id
      Parameters:
      context - The database tenant context
      labelId - The id of the label
      Returns:
      an optional of the label
    • getLabelByName

      Optional<RuleLabel> getLabelByName(TenantContext context, String labelName)
      Gets a label by its name (case insensitive)
      Parameters:
      context - The database tenant context
      labelName - The label name
      Returns:
      an optional of the label
    • updateLabel

      RuleLabel updateLabel(TenantContext context, RuleLabel label)
      Updates given label
      Parameters:
      context - The database tenant context
      label - The label with the updates to apply
      Returns:
      The updated label
    • createLabel

      RuleLabel createLabel(TenantContext context, RuleLabel label)
      Creates label
      Parameters:
      context - The database tenant context
      label - The label to create
      Returns:
      The created label
    • deleteLabel

      void deleteLabel(TenantContext context, long labelId)
      Deletes label
      Parameters:
      context - The database tenant context
      labelId - The id of label to delete
    • getLabelToRuleCount

      long getLabelToRuleCount(TenantContext context)
      Gets count of total label to rule associations for the tenant
      Parameters:
      context - The database tenant context
      Returns:
      total count of associations
    • getLabelToRuleCount

      long getLabelToRuleCount(TenantContext context, long labelId)
      Gets the count of label to rule associations for a specific label.
      Parameters:
      context - The database tenant context
      labelId - The id of the label
      Returns:
      the count of associations for the specified label