Class RuleResource
java.lang.Object
com.codebarrel.jira.plugin.automation.rest.RuleResource
@Component
@Path("project")
@Consumes("application/json")
@Produces("application/json")
public class RuleResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionRuleResource(ManualTriggerService manualTriggerService, AutomationConfigService configService, RuleComponentProvider ruleComponentProvider, OutgoingWebhookValidationService outgoingWebhookValidationService, JiraAuthenticationContext authenticationContext, GlobalPermissionManager globalPermissionManager, com.codebarrel.jira.plugin.automation.rest.CurrentUserPermissionHelper userPermissionHelper, AutomationPermissionService automationPermissionService, FeatureManager featureFlagManager) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddLabelToRule(String projectId, Long ruleId, Long labelId) jakarta.ws.rs.core.ResponsecreateRule(String projectId, com.codebarrel.automation.api.config.RuleConfigBean ruleConfigBean) jakarta.ws.rs.core.ResponsedeleteRule(String projectId, Long ruleId) jakarta.ws.rs.core.ResponseexecuteManualRule(String projectId, Long ruleId, String issueKey) jakarta.ws.rs.core.ResponseexecuteScheduledRule(String projectId, Long ruleId) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegenerateSecureToken(String projectId) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseimportRules(String projectId, ExternalizedRuleConfig importRequest) jakarta.ws.rs.core.ResponseparseImport(String projectId, String contentType, Collection<com.atlassian.plugins.rest.api.multipart.FilePart> fileParts) jakarta.ws.rs.core.ResponseremoveLabelFromRule(String projectId, Long ruleId, Long labelId) jakarta.ws.rs.core.ResponseupdateRule(String projectId, Long ruleId, boolean dryrun, com.codebarrel.automation.api.config.RuleConfigBean ruleConfigBean) jakarta.ws.rs.core.ResponsevalidateOutgoingWebhook(String projectId, OutgoingWebhookValidationRequest validationRequest)
-
Constructor Details
-
RuleResource
@Inject public RuleResource(ManualTriggerService manualTriggerService, AutomationConfigService configService, RuleComponentProvider ruleComponentProvider, OutgoingWebhookValidationService outgoingWebhookValidationService, JiraAuthenticationContext authenticationContext, GlobalPermissionManager globalPermissionManager, com.codebarrel.jira.plugin.automation.rest.CurrentUserPermissionHelper userPermissionHelper, AutomationPermissionService automationPermissionService, FeatureManager featureFlagManager)
-
-
Method Details
-
generateSecureToken
@GET @Path("{projectId}/securetoken") public jakarta.ws.rs.core.Response generateSecureToken(@PathParam("projectId") String projectId) -
getRules
@GET @Path("{projectId}/rule") public jakarta.ws.rs.core.Response getRules(@PathParam("projectId") String projectId) -
export
@GET @Path("{projectId}/rule/export") public jakarta.ws.rs.core.Response export(@PathParam("projectId") String projectId) -
export
-
parseImport
@POST @Consumes("multipart/form-data") @Path("{projectId}/rule/import/parse") public jakarta.ws.rs.core.Response parseImport(@PathParam("projectId") String projectId, @HeaderParam("Content-type") String contentType, Collection<com.atlassian.plugins.rest.api.multipart.FilePart> fileParts) -
importRules
@POST @Path("{projectId}/rule/import") public jakarta.ws.rs.core.Response importRules(@PathParam("projectId") String projectId, ExternalizedRuleConfig importRequest) -
validateOutgoingWebhook
@POST @Path("{projectId}/rule/outgoing-webhook/validate") public jakarta.ws.rs.core.Response validateOutgoingWebhook(@PathParam("projectId") String projectId, OutgoingWebhookValidationRequest validationRequest) -
createRule
@POST @Path("{projectId}/rule") public jakarta.ws.rs.core.Response createRule(@PathParam("projectId") String projectId, com.codebarrel.automation.api.config.RuleConfigBean ruleConfigBean) -
updateRule
-
addLabelToRule
-
removeLabelFromRule
-
executeScheduledRule
-
executeManualRule
-
deleteRule
-