Class PolarisService
- java.lang.Object
-
- com.synopsys.integration.polaris.common.service.PolarisService
-
public class PolarisService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PolarisService(AccessTokenPolarisHttpClient polarisHttpClient, PolarisJsonTransformer polarisJsonTransformer, int defaultPageSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends PolarisAttributes>
java.util.List<PolarisResource<A>>collectAllResources(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType, int pageSize)
protected <A extends PolarisAttributes>
PolarisPagedResourceResponse<PolarisResource<A>>executePagedRequest(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType, int offset, int limit)
<A extends PolarisAttributes>
PolarisResource<A>get(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType)
<R extends PolarisResponse>
Rget(com.synopsys.integration.rest.request.Request request, java.lang.reflect.Type returnType)
<A extends PolarisAttributes>
java.util.List<PolarisResource<A>>getAll(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType)
<A extends PolarisAttributes>
java.util.List<PolarisResource<A>>getAll(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType, int pageSize)
-
-
-
Constructor Detail
-
PolarisService
public PolarisService(AccessTokenPolarisHttpClient polarisHttpClient, PolarisJsonTransformer polarisJsonTransformer, int defaultPageSize)
-
-
Method Detail
-
get
public <R extends PolarisResponse> R get(com.synopsys.integration.rest.request.Request request, java.lang.reflect.Type returnType) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
get
public <A extends PolarisAttributes> PolarisResource<A> get(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
getAll
public <A extends PolarisAttributes> java.util.List<PolarisResource<A>> getAll(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
getAll
public <A extends PolarisAttributes> java.util.List<PolarisResource<A>> getAll(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType, int pageSize) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
collectAllResources
public <A extends PolarisAttributes> java.util.List<PolarisResource<A>> collectAllResources(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType, int pageSize) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
executePagedRequest
protected <A extends PolarisAttributes> PolarisPagedResourceResponse<PolarisResource<A>> executePagedRequest(com.synopsys.integration.rest.HttpUrl apiUrl, java.lang.Class<A> attributeType, int offset, int limit) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
-