public class DocumentConstraintValidator extends Object implements javax.faces.validator.Validator, javax.faces.component.PartialStateHolder
DocumentModel field constraints.| Modifier and Type | Field and Description | 
|---|---|
static String | 
CTX_JSFVALIDATOR  | 
protected Boolean | 
handleSubProperties  | 
static String | 
VALIDATOR_ID  | 
| Constructor and Description | 
|---|
DocumentConstraintValidator()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clearInitialState()  | 
protected List<ConstraintViolation> | 
doValidate(javax.faces.context.FacesContext context,
          javax.el.ValueReference vref,
          javax.el.ValueExpression e,
          Object value)  | 
protected Field | 
getField(Field field,
        String subName)  | 
protected Field | 
getField(String propertyName)  | 
Boolean | 
getHandleSubProperties()  | 
boolean | 
initialStateMarked()  | 
boolean | 
isTransient()  | 
void | 
markInitialState()  | 
protected org.nuxeo.ecm.platform.ui.web.validator.DocumentConstraintValidator.XPathAndField | 
resolveField(javax.faces.context.FacesContext context,
            javax.el.ValueReference vref,
            javax.el.ValueExpression ve)  | 
void | 
restoreState(javax.faces.context.FacesContext context,
            Object state)  | 
Object | 
saveState(javax.faces.context.FacesContext context)  | 
void | 
setHandleSubProperties(Boolean handleSubProperties)  | 
void | 
setTransient(boolean newTransientValue)  | 
void | 
validate(javax.faces.context.FacesContext context,
        javax.faces.component.UIComponent component,
        Object value)  | 
public static final String VALIDATOR_ID
public static final String CTX_JSFVALIDATOR
protected Boolean handleSubProperties
public DocumentConstraintValidator()
public void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value) throws javax.faces.validator.ValidatorException
validate in interface javax.faces.validator.Validatorjavax.faces.validator.ValidatorExceptionprotected List<ConstraintViolation> doValidate(javax.faces.context.FacesContext context, javax.el.ValueReference vref, javax.el.ValueExpression e, Object value)
protected org.nuxeo.ecm.platform.ui.web.validator.DocumentConstraintValidator.XPathAndField resolveField(javax.faces.context.FacesContext context, javax.el.ValueReference vref, javax.el.ValueExpression ve)
public Boolean getHandleSubProperties()
public void setHandleSubProperties(Boolean handleSubProperties)
public Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolderpublic void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState in interface javax.faces.component.StateHolderpublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean newTransientValue)
setTransient in interface javax.faces.component.StateHolderpublic void markInitialState()
markInitialState in interface javax.faces.component.PartialStateHolderpublic boolean initialStateMarked()
initialStateMarked in interface javax.faces.component.PartialStateHolderpublic void clearInitialState()
clearInitialState in interface javax.faces.component.PartialStateHolderCopyright © 2019 Nuxeo. All rights reserved.