All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.internal.CategoriesImpl Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.internal;

import io.sphere.client.ProjectEndpoints;
import io.sphere.client.QueryRequest;
import io.sphere.client.model.QueryResult;
import io.sphere.client.model.products.BackendCategory;
import io.sphere.internal.request.RequestFactory;
import net.jcip.annotations.Immutable;
import org.codehaus.jackson.type.TypeReference;

@Immutable
public final class CategoriesImpl extends ProjectScopedAPI implements Categories {
    public CategoriesImpl(RequestFactory requestFactory, ProjectEndpoints endpoints) {
        super(requestFactory, endpoints, new TypeReference() {}, new TypeReference>() { });
    }

    /** Queries categories. */
    public QueryRequest query() {
        return queryImpl(endpoints.categories.querySorted());
    }

    /** Queries categories. */
    public QueryRequest all() {
        return query();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy