001package org.gbif.api.model.collections.request;
002
003import java.io.Serializable;
004import javax.annotation.Nullable;
005import lombok.AllArgsConstructor;
006import lombok.Builder;
007import lombok.Data;
008import lombok.NoArgsConstructor;
009import org.gbif.api.model.common.paging.Pageable;
010import org.gbif.api.model.common.paging.PageableBase;
011import org.gbif.api.model.common.paging.PagingRequest;
012
013@Data
014@NoArgsConstructor
015@AllArgsConstructor
016@Builder
017public class DescriptorGroupSearchRequest extends PageableBase implements Serializable {
018
019  @Nullable private String q;
020  @Nullable private String title;
021  @Nullable private String description;
022  @Nullable private Boolean deleted;
023
024  public Pageable getPage() {
025    return new PagingRequest(getOffset(), getLimit());
026  }
027}