public abstract class BaseInterceptor extends Object implements PropertyInterceptor
| Constructor and Description |
|---|
BaseInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Value |
afterGetValue(JCRPropertyWrapper property,
javax.jcr.Value storedValue)
Called after getting the value.
|
javax.jcr.Value[] |
afterGetValues(JCRPropertyWrapper property,
javax.jcr.Value[] storedValues)
Called after getting the value.
|
void |
beforeRemove(JCRNodeWrapper node,
String name,
ExtendedPropertyDefinition definition) |
javax.jcr.Value |
beforeSetValue(JCRNodeWrapper node,
String name,
ExtendedPropertyDefinition definition,
javax.jcr.Value originalValue)
Called before setting the value on the property.
|
javax.jcr.Value[] |
beforeSetValues(JCRNodeWrapper node,
String name,
ExtendedPropertyDefinition definition,
javax.jcr.Value[] originalValues)
Called before setting the value on the property.
|
boolean |
canApplyOnProperty(JCRNodeWrapper node,
ExtendedPropertyDefinition definition)
Checks if this interceptor need to be called on that property.
|
boolean |
equals(Object obj) |
protected Set<String> |
getNodeTypes() |
protected Set<String> |
getPropertyNames() |
protected Set<Integer> |
getRequiredTypes() |
protected Set<Integer> |
getSelectors() |
int |
hashCode() |
void |
setNodeTypes(Set<String> nodeTypes) |
void |
setPropertyNames(Set<String> propertyNames) |
void |
setRequiredTypes(Set<String> requiredTypes) |
void |
setSelectors(Set<String> selectors) |
String |
toString() |
public javax.jcr.Value afterGetValue(JCRPropertyWrapper property, javax.jcr.Value storedValue) throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
PropertyInterceptorafterGetValue in interface PropertyInterceptorjavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Value[] afterGetValues(JCRPropertyWrapper property, javax.jcr.Value[] storedValues) throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
PropertyInterceptorafterGetValues in interface PropertyInterceptorjavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionpublic void beforeRemove(JCRNodeWrapper node, String name, ExtendedPropertyDefinition definition) throws javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
beforeRemove in interface PropertyInterceptorjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Value beforeSetValue(JCRNodeWrapper node, String name, ExtendedPropertyDefinition definition, javax.jcr.Value originalValue) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
PropertyInterceptorbeforeSetValue in interface PropertyInterceptororiginalValue - Original value @return Value to set, or null @throws ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Value[] beforeSetValues(JCRNodeWrapper node, String name, ExtendedPropertyDefinition definition, javax.jcr.Value[] originalValues) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
PropertyInterceptorbeforeSetValues in interface PropertyInterceptororiginalValues - Original value @return Value to set, or null @throws ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionpublic boolean canApplyOnProperty(JCRNodeWrapper node, ExtendedPropertyDefinition definition) throws javax.jcr.RepositoryException
PropertyInterceptorcanApplyOnProperty in interface PropertyInterceptordefinition - @returnjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.