Class ApplicationsController
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.controllers.ApplicationsController
-
public class ApplicationsController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FodApiConnection
apiConnection
protected String
correlationId
protected PrintStream
logger
-
Constructor Summary
Constructors Constructor Description ApplicationsController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Constructor
-
Method Summary
-
-
-
Field Detail
-
apiConnection
protected FodApiConnection apiConnection
-
correlationId
protected String correlationId
-
logger
protected PrintStream logger
-
-
Constructor Detail
-
ApplicationsController
public ApplicationsController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Constructor- Parameters:
apiConnection
- apiConnection connection object with client infologger
- logger objectcorrelationId
- correlation id
-
-
Method Detail
-
getApplicationList
public GenericListResponse<ApplicationApiResponse> getApplicationList(String searchTerm, Integer offset, Integer limit) throws IOException
GET given enum at_return array of enum values and text or null- Throws:
IOException
- in some circumstances
-
getApplicationById
public Result<ApplicationApiResponse> getApplicationById(Integer applicationId) throws IOException
- Throws:
IOException
-
getReleaseById
public Result<ReleaseApiResponse> getReleaseById(Integer releaseId) throws IOException
- Throws:
IOException
-
getReleaseListByApplication
public GenericListResponse<ReleaseApiResponse> getReleaseListByApplication(int releaseListApplicationId, int microserviceId, String searchTerm, Integer offset, Integer limit) throws IOException
GET given enum- Parameters:
releaseListApplicationId
- ApplicationId for querymicroserviceId
- (0 = null) at_return list of Releases- Throws:
IOException
- in some circumstances
-
getMicroserviceListByApplication
public List<MicroserviceApiResponse> getMicroserviceListByApplication(int microserviceListApplicationId) throws IOException
GET given enum- Parameters:
microserviceListApplicationId
- ApplicationId for query at_return array of enum values and text or null- Throws:
IOException
- in some circumstances
-
createApplication
public CreateApplicationResponse createApplication(CreateApplicationModel applicationModel) throws IOException
- Throws:
IOException
-
createMicroservice
public CreateMicroserviceResponse createMicroservice(CreateMicroserviceModel microserviceModel) throws IOException
- Throws:
IOException
-
createRelease
public CreateReleaseResponse createRelease(CreateReleaseModel releaseModel) throws IOException
- Throws:
IOException
-
getCorrelationId
protected String getCorrelationId()
-
println
protected void println(String log)
-
printStackTrace
protected void printStackTrace(Exception e)
-
-