@Name(value="webModeValidator") @Scope(value=SESSION) @Install(precedence=31) public class WebModeValidatorBean extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected org.nuxeo.ecm.core.api.CoreSession |
documentManager |
protected org.nuxeo.ecm.platform.ui.web.api.NavigationContext |
navigationContext |
protected SegmentService |
segmentService |
| Constructor and Description |
|---|
WebModeValidatorBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
validateSegment(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
boolean |
validateUnicity(String value) |
@In(create=true,
required=true)
protected transient org.nuxeo.ecm.core.api.CoreSession documentManager
@In(create=true,
required=true)
protected org.nuxeo.ecm.platform.ui.web.api.NavigationContext navigationContext
@In(create=true) protected SegmentService segmentService
public void validateSegment(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
throws javax.faces.validator.ValidatorException
context - component - value - error if segment value is malformed or not unique.javax.faces.validator.ValidatorExceptionpublic boolean validateUnicity(String value)
value - Copyright © 2018. All rights reserved.