@ReturnValuesAreNullableByDefault
public class XhtmlCleaningInterceptor
extends org.hibernate.EmptyInterceptor
Constructor and Description |
---|
XhtmlCleaningInterceptor(StorageFormatCleaner storageFormatCleaner) |
Modifier and Type | Method and Description |
---|---|
boolean |
onFlushDirty(Object entity,
Serializable id,
Object[] currentState,
Object[] previousState,
String[] propertyNames,
org.hibernate.type.Type[] types)
When a BodyContent is being modified ensure that the body of the entity is safe XHTML.
|
boolean |
onSave(Object entity,
Serializable id,
Object[] state,
String[] propertyNames,
org.hibernate.type.Type[] types)
If a BodyContent entity is being saved, then ensure the body of the entity is safe XHTML.
|
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onLoad, onPrepareStatement, postFlush, preFlush
public XhtmlCleaningInterceptor(StorageFormatCleaner storageFormatCleaner)
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onFlushDirty
in interface org.hibernate.Interceptor
onFlushDirty
in class org.hibernate.EmptyInterceptor
org.hibernate.CallbackException
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) throws org.hibernate.CallbackException
onSave
in interface org.hibernate.Interceptor
onSave
in class org.hibernate.EmptyInterceptor
org.hibernate.CallbackException
Copyright © 2003–2017 Atlassian. All rights reserved.