br.com.jarch.faces.controller.ICrudDataController Maven / Gradle / Ivy
package br.com.jarch.faces.controller;
import br.com.jarch.core.crud.dynamic.FieldDynamicEntity;
import br.com.jarch.core.crud.validation.BaseValidation;
import br.com.jarch.core.model.ICrudEntity;
import br.com.jarch.core.model.type.ActionCrudType;
import org.primefaces.component.commandlink.CommandLink;
import javax.validation.groups.Default;
import java.util.Collections;
import java.util.List;
public interface ICrudDataController extends IBaseDataController {
void startEnviroment();
void saveInsert();
void saveClone();
E saveChange();
E saveDynamic();
void saveDelete();
ActionCrudType getActionCrud();
String getLabelAction();
String getLabelButtonSave();
String getLabelButtonCancel();
String getLabelButtonReturn();
boolean isShowButtonCancel();
boolean isShowButtonReturn();
boolean isShowButtonSave();
boolean isShowButtonDelete();
void callEndTask();
void callDontEndTask();
void callSave();
void callMethodDynamic();
void callMethodDynamic(String method);
String getTitleSuccess();
String getDescriptionSuccess();
void callMethodDynamic(CrudDataDetail dataDetail);
void processButtonCancel();
void processButtonReturn();
default boolean isReloadEntity(){
return !isRedirectPageAfterButtonSave();
}
default boolean isRedirectPageAfterButtonSave() { return true; }
default boolean isShowMessageSuccess() {
return true;
}
boolean isStateInsert();
boolean isStateClone();
boolean isStateChange();
boolean isStateConsult();
boolean isStateDelete();
boolean isStateDynamic();
CommandLink getCommandLinkDynamicAction();
void setCommandLinkDynamicAction(CommandLink commandLink);
CommandLink getCommandLinkDynamicDontSaveTaskAction();
void setIconDynamicAction(String iconDynamicAction);
String getIconDynamicAction();
void setCommandLinkDynamicDontSaveTaskAction(CommandLink commandLink);
void insertEnviroment();
void cloneEnviroment(E entity);
void changeEnviroment(E entity);
void deleteEnviroment(E entity);
void dynamicEnviroment(E entity);
String getIdDynamicAction();
String getMethodDynamic();
boolean isConfirmationDynamic();
String getHeaderConfirmationDynamic();
String getMessageConfirmationDynamic();
void blockedMaster();
void blockedDetail();
void blockedMasterDetail();
void processMethodDynamicDataDetail(CrudDataDetail dataDetail, String idDynamic, E linhaTabela);
default List> groupsBeanValidation() {
return List.of(Default.class);
}
default List>> validations() {
return Collections.emptyList();
}
boolean isFiredCancel();
boolean isFiredReturn();
boolean isFiredSave();
boolean isFiredDynamic();
List listFieldDynamics(int row);
List getRowsDynamics();
void reloadEntity();
void updateVersionRegistry();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy