Class PlanResource


  • @Singleton
    @Component
    public class PlanResource
    extends Object
    Plan service is supposed to be used to retrieve full list of plans and plan details
    • Method Detail

      • getAllPlanList

        public RestPlans getAllPlanList​(@Context
                                        javax.ws.rs.core.UriInfo uriInfo,
                                        @Context
                                        com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getPlan

        public RestPlan getPlan​(String projectKey,
                                String buildKey,
                                @Context
                                javax.ws.rs.core.UriInfo uriInfo,
                                @Context
                                com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getPlanAlias

        public RestPlan getPlanAlias​(String projectKey,
                                     String buildKey,
                                     @Context
                                     javax.ws.rs.core.UriInfo uriInfo,
                                     @Context
                                     com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getPlanBranches

        public RestBranches getPlanBranches​(String projectKey,
                                            String buildKey,
                                            @Context
                                            javax.ws.rs.core.UriInfo uriInfo,
                                            @Context
                                            com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getPlanBranch

        public javax.ws.rs.core.Response getPlanBranch​(String projectKey,
                                                       String buildKey,
                                                       String branchName,
                                                       @Context
                                                       javax.ws.rs.core.UriInfo uriInfo,
                                                       @Context
                                                       com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • getPlanLabels

        public RestPlanLabels getPlanLabels​(String projectKey,
                                            String buildKey,
                                            @Context
                                            javax.ws.rs.core.UriInfo uriInfo)
      • addPlanLabel

        public void addPlanLabel​(String projectKey,
                                 String buildKey,
                                 RestPlanLabel label,
                                 @Context
                                 com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • removePlanLabel

        public javax.ws.rs.core.Response removePlanLabel​(String projectKey,
                                                         String buildKey,
                                                         String labelName,
                                                         @Context
                                                         com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
                                                  throws Exception
        Throws:
        Exception
      • getVcsBranches

        public RestVcsBranches getVcsBranches​(String projectKey,
                                              String buildKey,
                                              @Nullable
                                              @Nullable String searchTerm,
                                              @Context
                                              javax.ws.rs.core.UriInfo uriInfo,
                                              @Context
                                              javax.ws.rs.core.HttpHeaders hh)
      • markPlanFavourite

        public javax.ws.rs.core.Response markPlanFavourite​(String projectKey,
                                                           String buildKey,
                                                           @Context
                                                           com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • unmarkPlanFavourite

        public javax.ws.rs.core.Response unmarkPlanFavourite​(String projectKey,
                                                             String buildKey,
                                                             @Context
                                                             com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • enablePlan

        public javax.ws.rs.core.Response enablePlan​(String projectKey,
                                                    String buildKey)
      • disablePlan

        public javax.ws.rs.core.Response disablePlan​(String projectKey,
                                                     String buildKey)
      • deletePlan

        public javax.ws.rs.core.Response deletePlan​(String projectKey,
                                                    String buildKey)
      • getPlanVariables

        public javax.ws.rs.core.Response getPlanVariables​(String projectKey,
                                                          String buildKey)
      • getPlanVariable

        public javax.ws.rs.core.Response getPlanVariable​(String projectKey,
                                                         String buildKey,
                                                         String variableName)
      • deletePlanVariable

        public javax.ws.rs.core.Response deletePlanVariable​(String projectKey,
                                                            String buildKey,
                                                            String variableName)
      • getPlanArtifactDefinition

        public RestArtifactDefinitions getPlanArtifactDefinition​(String projectKey,
                                                                 String buildKey,
                                                                 @Context
                                                                 javax.ws.rs.core.UriInfo uriInfo,
                                                                 @Context
                                                                 com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
      • quarantineTest

        public javax.ws.rs.core.Response quarantineTest​(String projectKey,
                                                        String buildKey,
                                                        long testId,
                                                        @Context
                                                        com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
                                                 throws WebValidationException
        Throws:
        WebValidationException
      • enableSpecsForBranches

        public javax.ws.rs.core.Response enableSpecsForBranches​(String projectKey,
                                                                String buildKey)