Class PhaseResource


  • @Path("/phases")
    @Consumes("application/json")
    @Produces("application/json")
    @Controller
    public class PhaseResource
    extends java.lang.Object
    A phase in a release.
    • Constructor Summary

      Constructors 
      Constructor Description
      PhaseResource​(com.xebialabs.xlrelease.actors.ReleaseActorService releaseActorService, TaskAccessService taskAccessService, com.xebialabs.xlrelease.security.PermissionChecker permissionChecker, PhaseViewConverter phaseViewConverter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deletePhase​(java.lang.String phaseId)
      Deletes a phase.
      PhaseFullView update​(java.lang.String phaseId, PhaseForm phaseForm)
      Updates a phase.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PhaseResource

        @Autowired
        public PhaseResource​(com.xebialabs.xlrelease.actors.ReleaseActorService releaseActorService,
                             TaskAccessService taskAccessService,
                             com.xebialabs.xlrelease.security.PermissionChecker permissionChecker,
                             PhaseViewConverter phaseViewConverter)
    • Method Detail

      • update

        @PUT
        @Timed
        @Path("{phaseId:.*Phase[^/-]*}")
        public PhaseFullView update​(@PathParam("phaseId")
                                    java.lang.String phaseId,
                                    PhaseForm phaseForm)
        Updates a phase.
        Parameters:
        phaseId - the identifier of the phase
        phaseForm - the changes to apply
        Returns:
        the phase
      • deletePhase

        @DELETE
        @Timed
        @Path("{phaseId:.*Phase[^/-]*}")
        public void deletePhase​(@PathParam("phaseId")
                                java.lang.String phaseId)
        Deletes a phase.
        Parameters:
        phaseId - the identifier of the phase