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

io.sphere.sdk.products.search.ProductDataSortSearchModel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.products.search;

import io.sphere.sdk.products.ProductProjection;
import io.sphere.sdk.search.model.*;

import javax.annotation.Nullable;

public class ProductDataSortSearchModel extends SortableSearchModel> {

    ProductDataSortSearchModel(@Nullable final SearchModel parent, @Nullable final String pathSegment) {
        super(parent, pathSegment, SingleValueSortSearchModelFactory.of());
    }

    public ProductVariantSortSearchModel allVariants() {
        return new ProductVariantSortSearchModel(this, "variants");
    }

    public LocalizedStringSortSearchModel> name() {
        return localizedStringSortSearchModel("name");
    }

    public SingleValueSortSearchModel createdAt() {
        return searchModel("createdAt").sorted();
    }

    public SingleValueSortSearchModel lastModifiedAt() {
        return searchModel("lastModifiedAt").sorted();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy