Package com.xebialabs.xlrelease.api.v1
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
Fields inherited from interface com.xebialabs.xlrelease.api.ApiService
DEFAULT_RESULTS_PER_PAGE, DEFAULT_RESULTS_PER_PAGE_STRING, DEPTH, ORDER_BY, PAGE, PAGE_IS_OFFSET, RESULTS_PER_PAGE, ROLE_IDS_DATA -
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.xlrelease.risk.domain.RiskProfilecopyRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile) Make copy of given risk profile.com.xebialabs.xlrelease.risk.domain.RiskProfilecopyRiskProfile(String riskProfileId) Make copy of risk profile with given id.com.xebialabs.xlrelease.risk.domain.RiskProfilecreateRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile) Create risk profile.voiddeleteRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile) Delete risk profile.voiddeleteRiskProfile(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.RiskgetRisk(com.xebialabs.xlrelease.domain.Release release) Returns the release risk score.com.xebialabs.xlrelease.risk.domain.RiskReturns the release risk score.com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholdsReturns the global risk thresholds configuration.com.xebialabs.xlrelease.risk.domain.RiskProfilegetRiskProfile(String riskProfileId) Returns the risk profile for the given identifier.com.xebialabs.xlrelease.risk.domain.RiskProfilegetRiskProfileByTitle(String title) Returns the risk profile with the given title.List<com.xebialabs.xlrelease.risk.domain.RiskProfile>Returns list of all risk profile configurations.default Stringcom.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholdsupdateRiskGlobalThresholds(com.xebialabs.xlrelease.risk.configuration.RiskGlobalThresholds thresholds) Update the global risk thresholds configuration.com.xebialabs.xlrelease.risk.domain.RiskProfileupdateRiskProfile(com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile) Update the risk profile.com.xebialabs.xlrelease.risk.domain.RiskProfileupdateRiskProfile(String riskProfileId, com.xebialabs.xlrelease.risk.domain.RiskProfile riskProfile) Update the risk profile.
-
Method Details
-
serviceName
- Specified by:
serviceNamein interfaceApiService
-
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
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
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.
-