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

br.com.jarch.faces.controller.IBaseListController Maven / Gradle / Ivy

package br.com.jarch.faces.controller;

import br.com.jarch.core.crud.repository.BaseRepository;
import br.com.jarch.core.crud.search.FieldSearch;
import br.com.jarch.core.crud.service.IBaseService;
import br.com.jarch.core.model.IAcessMenu;
import br.com.jarch.core.model.IColumnList;
import br.com.jarch.core.model.IIdentity;
import br.com.jarch.core.model.ItemMenuArch;
import br.com.jarch.core.type.FieldType;
import org.primefaces.event.SelectEvent;
import org.primefaces.event.TransferEvent;
import org.primefaces.event.UnselectEvent;
import org.primefaces.event.data.PageEvent;
import org.primefaces.model.StreamedContent;

import javax.persistence.metamodel.Attribute;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Predicate;

public interface IBaseListController, R extends BaseRepository> extends br.com.jarch.faces.controller.IDivListFilter {

    S getService();

    R getRepository();

    String getPageData();

    LazyDataModelPaginator getDataModel();

    void setValueFilter(String attributeOrId, Object value);

    boolean isDisabledAttributeOrder(Map attribute);

    void onTransferReportGroup(TransferEvent event);

    void onReorderReportGroup();

    List getListColumnDataTable();

    void onRowSelect(SelectEvent event);

    void onRowUnselect(UnselectEvent event);

    List getMenuActions();

    List getSelections();

    void setSelections(List selections);

    boolean isExistsActionDynamic();

    void processMethodMenuAction(String metodo, E row) throws InvocationTargetException, IllegalAccessException;

    void processMethodMenuAction(String metodo) throws InvocationTargetException, IllegalAccessException;

    boolean processMethodRenderedEvaluation(String metodo, E row) throws InvocationTargetException, IllegalAccessException;

    boolean processRenderedEvaluation(Predicate evaluate, E row);

    boolean processMethodDisabledEvaluation(String metodo, E row) throws InvocationTargetException, IllegalAccessException;

    boolean processDisabledEvaluation(Predicate evaluate, E row);

    StreamedContent processMethodMenuDownload(String metodo, E row) throws InvocationTargetException, IllegalAccessException;

    void saveLastSearch();

    void changePageDataTableEvent(PageEvent pageEvent);

    void restoreLastSearch();

    StreamedContent exportFormatPdf();

    StreamedContent exportFormatExcel();

    StreamedContent exportFormatCsv();

    StreamedContent exportFormatTxt();

    StreamedContent exportFormatXml();

    boolean isDisabledPrint();

    boolean isVisiblePrint();

    IAcessMenu getAcessMenu();

    Optional getColumnDataTable(String fieldOrId);

    FieldSearch newSearchField(FieldType fieldType, String field, Object value);

     FieldSearch newSearchField(FieldType fieldType, Attribute field, T value);

    Optional getFieldSearch(String attributeOrId);

    void addParam(String param, Object value);

    void removeParam(String param);

    Map getParams();

    boolean isShowOptionReport();

    String getTemplateReport();

    boolean isReportPortrait();

    String getLabelReport();

    void callConsult(Long id);

    void callConsult(E identity);

    String getIdDynamicAction();

    boolean isDisabledInsert();

    boolean isVisibleInsert();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy