public class BodyContent extends Object implements Cloneable, Serializable
Constructor and Description |
---|
BodyContent() |
BodyContent(BodyContent orig) |
BodyContent(ContentEntityObject content,
String body,
BodyType bodyType) |
Modifier and Type | Method and Description |
---|---|
String |
cleanBody(ContentCleaner cleaner)
Cleans the stored body (marking it as such), and returns it.
|
Object |
clone() |
boolean |
equals(Object o) |
String |
getBody() |
BodyType |
getBodyType() |
ContentEntityObject |
getContent() |
long |
getId()
Hibernate ID
|
int |
hashCode() |
boolean |
isBodyCleaned() |
void |
setBody(String body)
Sets the new body for this object.
|
void |
setBodyType(BodyType bodyType)
Changes the body type for this object.
|
void |
setContent(ContentEntityObject content) |
void |
setId(long id)
Hibernate ID
|
void |
shallowCopy(BodyContent orig)
Does a shallow copy of object orig.
|
public BodyContent()
public BodyContent(BodyContent orig)
public BodyContent(ContentEntityObject content, String body, BodyType bodyType)
public void shallowCopy(BodyContent orig)
public String getBody()
isBodyCleaned()
and cleanBody(com.atlassian.confluence.content.ContentCleaner)
public void setBody(String body)
isBodyCleaned()
and cleanBody(com.atlassian.confluence.content.ContentCleaner)
public BodyType getBodyType()
public void setBodyType(BodyType bodyType)
BodyType
). When changing the body
type to a different one or to null, the body will be marked as dirty (not AntiSamy'ed), see isBodyCleaned()
and cleanBody(com.atlassian.confluence.content.ContentCleaner)
public long getId()
public void setId(long id)
public ContentEntityObject getContent()
public void setContent(ContentEntityObject content)
public boolean isBodyCleaned()
XhtmlCleaningInterceptor.cleanBodyContents(Object, String[], Object[])
}
to check if we've already cleaned this object's bodypublic String cleanBody(ContentCleaner cleaner)
cleaner
- clean() will be called on this object with the current body passed to itCopyright © 2003–2019 Atlassian. All rights reserved.