Interface RiskApi

All Superinterfaces:
ApiService

@Path("/api/v1/risks") @Produces("application/json") @Consumes("application/json") public interface RiskApi extends ApiService
Operations on risk.
  • Field Summary

  • Method Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.xlrelease.risk.domain.RiskProfile
    copyRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
    Make copy of given risk profile.
    com.xebialabs.xlrelease.risk.domain.RiskProfile
    copyRiskProfile(String riskProfileId)
    Make copy of risk profile with given id.
    com.xebialabs.xlrelease.risk.domain.RiskProfile
    createRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
    Create risk profile.
    void
    deleteRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
    Delete risk profile.
    void
    deleteRiskProfile(String riskProfileId)
    Delete risk profile.
    List<com.xebialabs.xlrelease.risk.domain.riskassessors.RiskAssessor>
    Returns the list of all risk assessor.
    com.xebialabs.xlrelease.risk.domain.Risk
    getRisk(com.xebialabs.xlrelease.domain.Release release)
    Returns the release risk score.
    com.xebialabs.xlrelease.risk.domain.Risk
    getRisk(String riskId)
    Returns the release risk score.
    com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholds
    Returns the global risk thresholds configuration.
    com.xebialabs.xlrelease.risk.domain.RiskProfile
    getRiskProfile(String riskProfileId)
    Returns the risk profile for the given identifier.
    com.xebialabs.xlrelease.risk.domain.RiskProfile
    Returns the risk profile with the given title.
    List<com.xebialabs.xlrelease.risk.domain.RiskProfile>
    Returns list of all risk profile configurations.
    default String
     
    com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholds
    updateRiskGlobalThresholds(com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholds thresholds)
    Update the global risk thresholds configuration.
    com.xebialabs.xlrelease.risk.domain.RiskProfile
    updateRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
    Update the risk profile.
    com.xebialabs.xlrelease.risk.domain.RiskProfile
    updateRiskProfile(String riskProfileId, com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
    Update the risk profile.
  • Method Details

    • serviceName

      default String serviceName()
      Specified by:
      serviceName in interface ApiService
    • getRisk

      @GET @Path("/{riskId:.*/Risk}") com.xebialabs.xlrelease.risk.domain.Risk getRisk(@PathParam("riskId") String riskId)
      Returns the release risk score.
      Parameters:
      riskId - the full identifier of release risk score.
      Returns:
      risk.
    • getRisk

      com.xebialabs.xlrelease.risk.domain.Risk getRisk(com.xebialabs.xlrelease.domain.Release release)
      Returns the release risk score.
      Parameters:
      release - the release from which you want risk score.
      Returns:
      risk.
    • getRiskGlobalThresholds

      @GET @Path("/config") com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholds getRiskGlobalThresholds()
      Returns the global risk thresholds configuration.
      Returns:
      global risk thresholds.
    • updateRiskGlobalThresholds

      @PUT @Path("/config") com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholds updateRiskGlobalThresholds(com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholds thresholds)
      Update the global risk thresholds configuration.
      Parameters:
      thresholds - the updated global risk thresholds.
      Returns:
      global risk thresholds.
    • getRiskProfiles

      @GET @Path("/profiles") List<com.xebialabs.xlrelease.risk.domain.RiskProfile> getRiskProfiles()
      Returns list of all risk profile configurations.
      Returns:
      risk profiles list
    • getRiskProfile

      @GET @Path("/profiles/{riskProfileId:.*/RiskProfile[^/]*|new}") com.xebialabs.xlrelease.risk.domain.RiskProfile getRiskProfile(@PathParam("riskProfileId") String riskProfileId)
      Returns the risk profile for the given identifier.
      Parameters:
      riskProfileId - the full identifier of risk profile.
      Returns:
      risk profile.
    • getRiskProfileByTitle

      com.xebialabs.xlrelease.risk.domain.RiskProfile getRiskProfileByTitle(String title)
      Returns the risk profile with the given title.
      Parameters:
      title - title of the risk profile.
      Returns:
      risk profile.
    • updateRiskProfile

      @PUT @Path("/profiles/{riskProfileId:.*/RiskProfile[^/]*}") com.xebialabs.xlrelease.risk.domain.RiskProfile updateRiskProfile(@PathParam("riskProfileId") String riskProfileId, com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
      Update the risk profile.
      Parameters:
      riskProfileId - the full identifier of risk profile.
      riskProfile - the updated risk profile.
      Returns:
      the updated risk profile.
    • updateRiskProfile

      com.xebialabs.xlrelease.risk.domain.RiskProfile updateRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
      Update the risk profile.
      Parameters:
      riskProfile - the updated risk profile.
      Returns:
      the updated risk profile.
    • createRiskProfile

      @POST @Path("/profiles") com.xebialabs.xlrelease.risk.domain.RiskProfile createRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
      Create risk profile.
      Parameters:
      riskProfile - the new risk profile.
      Returns:
      risk profile.
    • deleteRiskProfile

      @DELETE @Path("/profiles/{riskProfileId:.*/RiskProfile[^/]*}") void deleteRiskProfile(@PathParam("riskProfileId") String riskProfileId)
      Delete risk profile.
      Parameters:
      riskProfileId - the full identifier of risk profile.
    • deleteRiskProfile

      void deleteRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
      Delete risk profile.
      Parameters:
      riskProfile - the risk profile you would like to delete.
    • copyRiskProfile

      @POST @Path("/profiles/{riskProfileId:.*/RiskProfile[^/]*}/copy") com.xebialabs.xlrelease.risk.domain.RiskProfile copyRiskProfile(@PathParam("riskProfileId") String riskProfileId)
      Make copy of risk profile with given id.
      Parameters:
      riskProfileId - the full identifier of risk profile.
      Returns:
      risk profile.
    • copyRiskProfile

      com.xebialabs.xlrelease.risk.domain.RiskProfile copyRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile)
      Make copy of given risk profile.
      Parameters:
      riskProfile - the risk profile from which a copy will be created.
      Returns:
      risk profile.
    • getAllRiskAssessors

      @GET @Path("/assessors") List<com.xebialabs.xlrelease.risk.domain.riskassessors.RiskAssessor> getAllRiskAssessors()
      Returns the list of all risk assessor.
      Returns:
      list of all risk assessor.