mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
30 lines
646 B
Java
30 lines
646 B
Java
package com.pmease.commons.editable;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public interface EditContext extends Serializable {
|
|
|
|
Serializable getBean();
|
|
|
|
void validate();
|
|
|
|
List<ValidationError> getValidationErrors(boolean recursive);
|
|
|
|
Map<Serializable, EditContext> getChildContexts();
|
|
|
|
EditContext getChildContext(Serializable propertyName);
|
|
|
|
boolean hasValidationError(Serializable propertyName, boolean recursive);
|
|
|
|
boolean hasValidationError(boolean recursive);
|
|
|
|
void error(String errorMessage);
|
|
|
|
Object renderForEdit(Object renderParam);
|
|
|
|
Object renderForView(Object renderParam);
|
|
|
|
}
|