public class ApiClientWrapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApiClientWrapper.AppTypeEnum |
Constructor and Description |
---|
ApiClientWrapper(String uri,
String token,
Integer connectTimeoutSeconds,
Integer readTimeoutSeconds,
Integer writeTimeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
Long |
createAppOrVersion(Long appId,
String issueTemplateId,
String appName,
String appVersionName,
String masterAttrGuid,
ApiClientWrapper.AppTypeEnum type)
Create a new Application Version or both a new Application and a new
Application Version
|
List<com.fortify.ssc.restclient.model.ProjectVersion> |
getAllApplicationVersions(String query,
int limit)
Returns list of Application Versions in SSC.
|
Long |
getApplicationId(String appName) |
List<com.fortify.ssc.restclient.model.Project> |
getApplications(String query,
int limit)
Returns list of Applications in SSC.
|
List<com.fortify.ssc.restclient.model.ProjectVersion> |
getApplicationVersionsFor(long applicationId,
String query,
int limit)
Returns list of Application Versions for a particular Application in SSC.
|
com.fortify.ssc.restclient.model.Artifact |
getArtifactInfo(Long artifactId) |
List<com.fortify.ssc.restclient.model.AttributeDefinition> |
getAttributeDefinitions()
Returns list of Attribute Definitions in SSC.
|
List<com.fortify.ssc.restclient.model.CloudPool> |
getCloudScanPools()
Returns a list of CloudScan Pools in SSC.
|
com.fortify.ssc.restclient.model.FilterSet |
getDefaultFilterSetForAppVersion(Long appVersionId) |
List<com.fortify.ssc.restclient.model.FilterSet> |
getFilterSetsForAppVersion(Long appVersionId) |
List<com.fortify.ssc.restclient.model.Folder> |
getFoldersForAppVersion(Long appVersionId) |
List<com.fortify.ssc.restclient.model.IssueSelector> |
getGroupBySetForAppVersion(Long appVersionId) |
List<com.fortify.ssc.restclient.model.ProjectVersionIssueGroup> |
getIssueGroupFolders(Long avId,
String filterSet) |
List<com.fortify.ssc.restclient.model.ProjectVersionIssueGroup> |
getIssueGroupsForAvs(Long avId,
String searchCondition,
String folderId,
String filterSet,
String groupingType) |
List<com.fortify.ssc.restclient.model.ProjectVersionIssue> |
getIssuesForAppVersion(Long appVersionId,
int startPage,
int pageSize,
String filter,
String groupId,
String groupingType) |
com.fortify.ssc.restclient.model.IssueTemplate |
getIssueTemplate(com.fortify.ssc.restclient.model.Project application)
If the Application exists, use the same Issue Template.
|
List<com.fortify.ssc.restclient.model.IssueTemplate> |
getIssueTemplates()
Returns list of Issue Templates in SSC.
|
com.fortify.ssc.restclient.model.ProjectVersionIssueGroup |
getNewIssueGroupForAv(Long avId,
String folderId,
String filterSet) |
Long |
getVersionForApplication(Long applicationId,
String appVersionName) |
void |
setDefaultAttributesAndCommit(Long appVersionId)
Set required Attributes for the Application Version then commit to make it
usable
|
void |
setProxy(ProxyConfig proxyConfig) |
Long |
uploadFpr(File fpr,
Long appVersionId) |
public void setProxy(ProxyConfig proxyConfig)
public List<com.fortify.ssc.restclient.model.Project> getApplications(String query, int limit) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.ProjectVersion> getAllApplicationVersions(String query, int limit) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.ProjectVersion> getApplicationVersionsFor(long applicationId, String query, int limit) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.AttributeDefinition> getAttributeDefinitions() throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.IssueTemplate> getIssueTemplates() throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.CloudPool> getCloudScanPools() throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.ProjectVersionIssueGroup> getIssueGroupsForAvs(Long avId, String searchCondition, String folderId, String filterSet, String groupingType) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.ProjectVersionIssueGroup> getIssueGroupFolders(Long avId, String filterSet) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public com.fortify.ssc.restclient.model.ProjectVersionIssueGroup getNewIssueGroupForAv(Long avId, String folderId, String filterSet) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.FilterSet> getFilterSetsForAppVersion(Long appVersionId) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public com.fortify.ssc.restclient.model.FilterSet getDefaultFilterSetForAppVersion(Long appVersionId) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.ProjectVersionIssue> getIssuesForAppVersion(Long appVersionId, int startPage, int pageSize, String filter, String groupId, String groupingType) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public List<com.fortify.ssc.restclient.model.IssueSelector> getGroupBySetForAppVersion(Long appVersionId) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public Long getApplicationId(String appName) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public Long getVersionForApplication(Long applicationId, String appVersionName) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public com.fortify.ssc.restclient.model.IssueTemplate getIssueTemplate(com.fortify.ssc.restclient.model.Project application) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public Long createAppOrVersion(Long appId, String issueTemplateId, String appName, String appVersionName, String masterAttrGuid, ApiClientWrapper.AppTypeEnum type) throws com.fortify.ssc.restclient.ApiException
appId
- - optionalissueTemplateId
- masterAttrGuid
- type
- com.fortify.ssc.restclient.ApiException
public void setDefaultAttributesAndCommit(Long appVersionId) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
public Long uploadFpr(@Nonnull File fpr, @Nonnull Long appVersionId) throws com.fortify.ssc.restclient.ApiException
fpr
- appVersionId
- com.fortify.ssc.restclient.ApiException
public com.fortify.ssc.restclient.model.Artifact getArtifactInfo(@Nonnull Long artifactId) throws com.fortify.ssc.restclient.ApiException
com.fortify.ssc.restclient.ApiException
Copyright © 2016–2023 Fortify. All rights reserved.