Class AnalysisService
- java.lang.Object
-
- org.jenkinsci.plugins.codesonar.services.AbstractService
-
- org.jenkinsci.plugins.codesonar.services.AnalysisService
-
- All Implemented Interfaces:
IAnalysisService
public class AnalysisService extends AbstractService implements IAnalysisService
- Author:
- Andrius
-
-
Field Summary
-
Fields inherited from interface org.jenkinsci.plugins.codesonar.services.IAnalysisService
VISIBILITY_FILTER_ALL_WARNINGS_DEFAULT, VISIBILITY_FILTER_NEW_WARNINGS_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description AnalysisService(HttpService httpService, XmlSerializationService xmlSerializationService, String visibilityFilter, String newWarningsFilter, boolean strictQueryParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Analysis
getAnalysisFromUrl(String analysisUrl)
Analysis
getAnalysisFromUrlWarningsByFilter(URI baseHubUri, long analysisId)
Retrieves analysis data for "all" warnings, in particular it returns the whole list of warnings.Analysis
getAnalysisFromUrlWithNewWarnings(URI baseHubUri, long analysisId)
Retrieves analysis data for "new" warnings, in particular it returns the whole list of warnings.String
getAnalysisUrlFromLogFile(List<String> logFile)
String
getLatestAnalysisUrlForAProject(URI baseHubUri, String projectName)
String
getNewWarningsFilter()
String
getNewWarningsFilterOrDefault()
CodeSonarWarningCountChartRow
getNumberOfWarnings(URI baseHubUri, long analysisId, String filter)
String
getVisibilityFilter()
String
getVisibilityFilterOrDefault()
void
setNewWarningsFilter(String visibilityFilter)
void
setVisibilityFilter(String visibilityFilter)
-
Methods inherited from class org.jenkinsci.plugins.codesonar.services.AbstractService
readResponseContent, readResponseContent
-
-
-
-
Constructor Detail
-
AnalysisService
public AnalysisService(HttpService httpService, XmlSerializationService xmlSerializationService, String visibilityFilter, String newWarningsFilter, boolean strictQueryParameters)
-
-
Method Detail
-
getAnalysisUrlFromLogFile
public String getAnalysisUrlFromLogFile(List<String> logFile)
- Specified by:
getAnalysisUrlFromLogFile
in interfaceIAnalysisService
-
getLatestAnalysisUrlForAProject
public String getLatestAnalysisUrlForAProject(URI baseHubUri, String projectName) throws CodeSonarPluginException
- Specified by:
getLatestAnalysisUrlForAProject
in interfaceIAnalysisService
- Throws:
CodeSonarPluginException
-
getAnalysisFromUrl
public Analysis getAnalysisFromUrl(String analysisUrl) throws CodeSonarPluginException
- Specified by:
getAnalysisFromUrl
in interfaceIAnalysisService
- Throws:
CodeSonarPluginException
-
getAnalysisFromUrlWithNewWarnings
public Analysis getAnalysisFromUrlWithNewWarnings(URI baseHubUri, long analysisId) throws CodeSonarPluginException
Retrieves analysis data for "new" warnings, in particular it returns the whole list of warnings.- Specified by:
getAnalysisFromUrlWithNewWarnings
in interfaceIAnalysisService
- Throws:
CodeSonarPluginException
-
getAnalysisFromUrlWarningsByFilter
public Analysis getAnalysisFromUrlWarningsByFilter(URI baseHubUri, long analysisId) throws CodeSonarPluginException
Retrieves analysis data for "all" warnings, in particular it returns the whole list of warnings.- Specified by:
getAnalysisFromUrlWarningsByFilter
in interfaceIAnalysisService
- Throws:
CodeSonarPluginException
-
getNumberOfWarnings
public CodeSonarWarningCountChartRow getNumberOfWarnings(URI baseHubUri, long analysisId, String filter) throws CodeSonarPluginException
- Specified by:
getNumberOfWarnings
in interfaceIAnalysisService
- Throws:
CodeSonarPluginException
-
setVisibilityFilter
public void setVisibilityFilter(String visibilityFilter)
- Specified by:
setVisibilityFilter
in interfaceIAnalysisService
-
getVisibilityFilter
public String getVisibilityFilter()
- Specified by:
getVisibilityFilter
in interfaceIAnalysisService
-
getVisibilityFilterOrDefault
public String getVisibilityFilterOrDefault()
-
setNewWarningsFilter
public void setNewWarningsFilter(String visibilityFilter)
- Specified by:
setNewWarningsFilter
in interfaceIAnalysisService
-
getNewWarningsFilter
public String getNewWarningsFilter()
- Specified by:
getNewWarningsFilter
in interfaceIAnalysisService
-
getNewWarningsFilterOrDefault
public String getNewWarningsFilterOrDefault()
-
-