org.demoiselle.jee.crud.DemoiselleRequestContext Maven / Gradle / Ivy
/*
* Demoiselle Framework
*
* License: GNU Lesser General Public License (LGPL), version 3 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.demoiselle.jee.crud;
import java.util.List;
import java.util.Set;
import org.demoiselle.jee.crud.sort.SortModel;
/**
* Class used to make a Context of the Request and Response of CRUD feature.
*
* @author SERPRO
*/
public interface DemoiselleRequestContext {
Integer getLimit();
void setLimit(Integer limit);
Integer getOffset();
void setOffset(Integer offset);
Long getCount();
void setCount(Long count);
Class> getEntityClass();
void setEntityClass(Class> entityClass);
TreeNodeField> getFilters();
void setFilters(TreeNodeField> filters);
List getSorts();
void setSorts(List sorts);
TreeNodeField> getFields();
void setFields(TreeNodeField> fields);
Boolean isPaginationEnabled();
void setPaginationEnabled(Boolean isPaginationEnabled);
}