Class ResourceIdsGraphQlRequest
- java.lang.Object
-
- com.commercetools.sync.commons.helpers.GraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>
-
- com.commercetools.sync.commons.models.ResourceIdsGraphQlRequest
-
- All Implemented Interfaces:
GraphQlBaseRequest<ResourceKeyIdGraphQlResult>
,io.sphere.sdk.client.SphereRequest<ResourceKeyIdGraphQlResult>
public class ResourceIdsGraphQlRequest extends GraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>
idsToSearch
protected GraphQlQueryResources
resource
-
Fields inherited from class com.commercetools.sync.commons.helpers.GraphQlBaseRequestImpl
limit, queryPredicate
-
-
Constructor Summary
Constructors Constructor Description ResourceIdsGraphQlRequest(java.util.Set<java.lang.String> idsToSearch, GraphQlQueryResources resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
buildQueryString()
This method builds a string matching the required format to query a set of ids matching given keys of a resource using the CTP graphql APIResourceKeyIdGraphQlResult
deserialize(io.sphere.sdk.http.HttpResponse httpResponse)
-
Methods inherited from class com.commercetools.sync.commons.helpers.GraphQlBaseRequestImpl
deserializeWithResourceName, httpRequestIntent, withLimit, withPredicate
-
-
-
-
Field Detail
-
idsToSearch
protected final java.util.Set<java.lang.String> idsToSearch
-
resource
protected final GraphQlQueryResources resource
-
-
Constructor Detail
-
ResourceIdsGraphQlRequest
public ResourceIdsGraphQlRequest(@Nonnull java.util.Set<java.lang.String> idsToSearch, @Nonnull GraphQlQueryResources resource)
-
-
Method Detail
-
deserialize
@Nullable public ResourceKeyIdGraphQlResult deserialize(io.sphere.sdk.http.HttpResponse httpResponse)
-
buildQueryString
@Nonnull protected java.lang.String buildQueryString()
This method builds a string matching the required format to query a set of ids matching given keys of a resource using the CTP graphql API- Specified by:
buildQueryString
in classGraphQlBaseRequestImpl<ResourceKeyIdGraphQlResult>
- Returns:
- a string representing a graphql query
-
-