Class ReleaseController
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.controllers.ReleaseController
-
public class ReleaseController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FodApiConnection
apiConnection
protected String
correlationId
protected PrintStream
logger
-
Constructor Summary
Constructors Constructor Description ReleaseController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditPreferenceOptionsModel
getAuditPreferences(Integer releaseId, Integer assessmentType, Integer frequencyType)
protected String
getCorrelationId()
ScanSummaryDTO
getRelease(int releaseId, int scanId)
Get an individual releaseReleaseDTO
getRelease(int releaseId, String fields)
Get an individual release with given fieldsPollingSummaryDTO
getReleaseByScanId(int releaseId, int scanId)
Get an individual releaseInteger
getReleaseIdByName(String appName, String relName, Boolean isMicroservice, String microserviceName)
protected void
println(String log)
protected void
printStackTrace(Exception e)
-
-
-
Field Detail
-
apiConnection
protected FodApiConnection apiConnection
-
correlationId
protected String correlationId
-
logger
protected PrintStream logger
-
-
Constructor Detail
-
ReleaseController
public ReleaseController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Constructor- Parameters:
apiConnection
- apiConnection object with client infologger
- logger objectcorrelationId
- correlation id
-
-
Method Detail
-
getRelease
public ReleaseDTO getRelease(int releaseId, String fields) throws IOException
Get an individual release with given fields- Parameters:
releaseId
- release to getfields
- fields to return at_return ReleaseDTO object with given fields- Throws:
IOException
- in some circumstances
-
getRelease
public ScanSummaryDTO getRelease(int releaseId, int scanId) throws IOException
Get an individual release- Parameters:
releaseId
- release to getscanId
- scanId to find specific scan result at_return ScanSummaryDTO object- Throws:
IOException
- in some circumstances
-
getReleaseByScanId
public PollingSummaryDTO getReleaseByScanId(int releaseId, int scanId) throws IOException
Get an individual release- Parameters:
releaseId
- release to getscanId
- scanId to find specific scan result at_return ScanSummaryDTO object- Throws:
IOException
- in some circumstances
-
getReleaseIdByName
public Integer getReleaseIdByName(String appName, String relName, Boolean isMicroservice, String microserviceName) throws IOException
- Throws:
IOException
-
getAuditPreferences
public AuditPreferenceOptionsModel getAuditPreferences(Integer releaseId, Integer assessmentType, Integer frequencyType) throws IOException
- Throws:
IOException
-
getCorrelationId
protected String getCorrelationId()
-
println
protected void println(String log)
-
printStackTrace
protected void printStackTrace(Exception e)
-
-