Class ProjectCreationService
- java.lang.Object
-
- com.fortify.plugin.jenkins.fortifyclient.ProjectCreationService
-
public class ProjectCreationService extends Object
-
-
Constructor Summary
Constructors Constructor Description ProjectCreationService(PrintWriter log, ApiClientWrapper apiClientWrapper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XMLGregorianCalendar
convertDateToXMLGregorianCalender(Date date)
Long
createProject(ProjectDataEntry projectData)
Long
getAppVersionIdIfExists(String appName, String appVersionName)
Get the Application Version Id for given appName & appVersionName, if it exists
-
-
-
Constructor Detail
-
ProjectCreationService
public ProjectCreationService(PrintWriter log, ApiClientWrapper apiClientWrapper) throws com.fortify.ssc.restclient.ApiException
- Throws:
com.fortify.ssc.restclient.ApiException
-
-
Method Detail
-
convertDateToXMLGregorianCalender
public static XMLGregorianCalendar convertDateToXMLGregorianCalender(Date date)
-
createProject
public Long createProject(ProjectDataEntry projectData) throws IOException, com.fortify.ssc.restclient.ApiException
- Parameters:
projectData
- - entry contains a application name, application version name, and fpr filename for creating and uploading an application version. Entry also contains a map of application attribute names and values. If a application attribute definition does not already exist for the name, it will be created.- Throws:
com.fortify.ssc.restclient.ApiException
IOException
-
getAppVersionIdIfExists
public Long getAppVersionIdIfExists(String appName, String appVersionName) throws com.fortify.ssc.restclient.ApiException
Get the Application Version Id for given appName & appVersionName, if it exists- Returns:
- Long appVersionId
- Throws:
com.fortify.ssc.restclient.ApiException
-
-