io.sphere.sdk.products.search.ProductDataSortSearchModel Maven / Gradle / Ivy
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();
}
}