java.lang.Object |
↳ |
com.atlassian.confluence.content.render.xhtml.storage.XhtmlCleaningInterceptor |
Class Overview
A Hibernate interceptor that will silently cleanup security issues with XHTML content on saving to the database.
Summary
Public Methods |
int[]
|
findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
|
Object
|
instantiate(Class clazz, Serializable id)
|
Boolean
|
isUnsaved(Object entity)
|
void
|
onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
|
boolean
|
onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
When a BodyContent is being modified ensure that the body of the entity is safe XHTML.
|
boolean
|
onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
|
boolean
|
onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
If a BodyContent entity is being saved, then ensure the body of the entity is safe XHTML.
|
void
|
postFlush(Iterator entities)
|
void
|
preFlush(Iterator entities)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
net.sf.hibernate.Interceptor
int[]
|
findDirty(Object arg0, Serializable arg1, Object[] arg2, Object[] arg3, String[] arg4, Type[] arg5)
|
Object
|
instantiate(Class arg0, Serializable arg1)
|
Boolean
|
isUnsaved(Object arg0)
|
void
|
onDelete(Object arg0, Serializable arg1, Object[] arg2, String[] arg3, Type[] arg4)
|
boolean
|
onFlushDirty(Object arg0, Serializable arg1, Object[] arg2, Object[] arg3, String[] arg4, Type[] arg5)
|
boolean
|
onLoad(Object arg0, Serializable arg1, Object[] arg2, String[] arg3, Type[] arg4)
|
boolean
|
onSave(Object arg0, Serializable arg1, Object[] arg2, String[] arg3, Type[] arg4)
|
void
|
postFlush(Iterator arg0)
|
void
|
preFlush(Iterator arg0)
|
|
Public Constructors
public
XhtmlCleaningInterceptor
(XhtmlCleaner storageFormatCleaner)
Public Methods
public
boolean
onFlushDirty
(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types)
When a BodyContent is being modified ensure that the body of the entity is safe XHTML.
public
boolean
onSave
(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
If a BodyContent entity is being saved, then ensure the body of the entity is safe XHTML.
public
void
postFlush
(Iterator entities)
public
void
preFlush
(Iterator entities)