Interface RuleLabelStore
- All Known Implementing Classes:
JiraRuleLabelStore
public interface RuleLabelStore
-
Method Summary
Modifier and TypeMethodDescriptioncreateLabel(TenantContext context, RuleLabel label) Creates labelvoiddeleteLabel(TenantContext context, long labelId) Deletes labelgetLabel(TenantContext context, long labelId) Gets a single rule label by idgetLabelByName(TenantContext context, String labelName) Gets a label by its name (case insensitive)getLabels(TenantContext context) Retrieves all the rule labels for a tenantlonggetLabelToRuleCount(TenantContext context) Gets count of total label to rule associations for the tenantlonggetLabelToRuleCount(TenantContext context, long labelId) Gets the count of label to rule associations for a specific label.updateLabel(TenantContext context, RuleLabel label) Updates given label
-
Method Details
-
getLabels
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
Gets a single rule label by id- Parameters:
context- The database tenant contextlabelId- The id of the label- Returns:
- an optional of the label
-
getLabelByName
Gets a label by its name (case insensitive)- Parameters:
context- The database tenant contextlabelName- The label name- Returns:
- an optional of the label
-
updateLabel
Updates given label- Parameters:
context- The database tenant contextlabel- The label with the updates to apply- Returns:
- The updated label
-
createLabel
Creates label- Parameters:
context- The database tenant contextlabel- The label to create- Returns:
- The created label
-
deleteLabel
Deletes label- Parameters:
context- The database tenant contextlabelId- The id of label to delete
-
getLabelToRuleCount
Gets count of total label to rule associations for the tenant- Parameters:
context- The database tenant context- Returns:
- total count of associations
-
getLabelToRuleCount
Gets the count of label to rule associations for a specific label.- Parameters:
context- The database tenant contextlabelId- The id of the label- Returns:
- the count of associations for the specified label
-