public interface PropertyInterceptor
| 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 canApplyOnProperty(JCRNodeWrapper node, ExtendedPropertyDefinition definition) throws javax.jcr.RepositoryException
node - definition - @returnjavax.jcr.RepositoryExceptionvoid beforeRemove(JCRNodeWrapper node, String name, ExtendedPropertyDefinition definition) throws javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
javax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionjavax.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
node - name - definition - originalValue - Original value @return Value to set, or null @throws ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionjavax.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
node - name - definition - originalValues - Original value @return Value to set, or null @throws ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionjavax.jcr.Value afterGetValue(JCRPropertyWrapper property, javax.jcr.Value storedValue) throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
property - storedValue - javax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionjavax.jcr.Value[] afterGetValues(JCRPropertyWrapper property, javax.jcr.Value[] storedValues) throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
property - storedValues - javax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.