Class JiraRuleLabelStore
java.lang.Object
com.codebarrel.jira.plugin.automation.store.JiraRuleLabelStore
- All Implemented Interfaces:
RuleLabelStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLabel(TenantContext context, RuleLabel newRuleLabel) Creates labelvoiddeleteLabel(TenantContext context, long labelId) Deletes labelgetLabel(TenantContext context, long labelId) Gets a single rule label by idgetLabelByName(TenantContext context, String name) 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 updateRuleLabel) Updates given label
-
Constructor Details
-
JiraRuleLabelStore
-
-
Method Details
-
getLabels
Description copied from interface:RuleLabelStoreRetrieves all the rule labels for a tenant- Specified by:
getLabelsin interfaceRuleLabelStore- Parameters:
context- The database tenant context- Returns:
- the complete list or rule labels for the tenant
-
getLabel
Description copied from interface:RuleLabelStoreGets a single rule label by id- Specified by:
getLabelin interfaceRuleLabelStore- Parameters:
context- The database tenant contextlabelId- The id of the label- Returns:
- an optional of the label
-
getLabelByName
Description copied from interface:RuleLabelStoreGets a label by its name (case insensitive)- Specified by:
getLabelByNamein interfaceRuleLabelStore- Parameters:
context- The database tenant contextname- The label name- Returns:
- an optional of the label
-
updateLabel
Description copied from interface:RuleLabelStoreUpdates given label- Specified by:
updateLabelin interfaceRuleLabelStore- Parameters:
context- The database tenant contextupdateRuleLabel- The label with the updates to apply- Returns:
- The updated label
-
createLabel
Description copied from interface:RuleLabelStoreCreates label- Specified by:
createLabelin interfaceRuleLabelStore- Parameters:
context- The database tenant contextnewRuleLabel- The label to create- Returns:
- The created label
-
deleteLabel
Description copied from interface:RuleLabelStoreDeletes label- Specified by:
deleteLabelin interfaceRuleLabelStore- Parameters:
context- The database tenant contextlabelId- The id of label to delete
-
getLabelToRuleCount
Description copied from interface:RuleLabelStoreGets count of total label to rule associations for the tenant- Specified by:
getLabelToRuleCountin interfaceRuleLabelStore- Parameters:
context- The database tenant context- Returns:
- total count of associations
-
getLabelToRuleCount
Description copied from interface:RuleLabelStoreGets the count of label to rule associations for a specific label.- Specified by:
getLabelToRuleCountin interfaceRuleLabelStore- Parameters:
context- The database tenant contextlabelId- The id of the label- Returns:
- the count of associations for the specified label
-