Package com.atlassian.confluence.content
Class ContentProperties
- java.lang.Object
-
- com.atlassian.confluence.content.ContentProperties
-
- All Implemented Interfaces:
Serializable
public class ContentProperties extends Object implements Serializable
Encapsulates the properties of a content object. You should never deal with the ContentProperty list directly. In fact, you probably want to use the ContentPropertyService and a JsonContentProperty instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentProperties(List<ContentProperty> properties)
You shouldn't use this directly, content properties should be managed by theContentEntityObject
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ContentProperty>
asList()
You shouldn't use this directly, content properties should be managed by theContentEntityObject
.static ContentProperties
deepClone(ContentProperties properties)
Creates a deep clone of a properties object, throwing away any dangerous Hibernate associations - you shouldn't call this directly, content properties should be managed by theContentEntityObject
.long
getLongProperty(String name, long defaultValue)
String
getStringProperty(String name)
void
removeProperty(String name)
void
setLongProperty(String name, long value)
void
setStringProperty(String name, String value)
-
-
-
Constructor Detail
-
ContentProperties
public ContentProperties(List<ContentProperty> properties)
You shouldn't use this directly, content properties should be managed by theContentEntityObject
.
-
-
Method Detail
-
deepClone
public static ContentProperties deepClone(ContentProperties properties)
Creates a deep clone of a properties object, throwing away any dangerous Hibernate associations - you shouldn't call this directly, content properties should be managed by theContentEntityObject
.- Parameters:
properties
-- Returns:
-
setLongProperty
public void setLongProperty(String name, long value)
-
getLongProperty
public long getLongProperty(String name, long defaultValue)
-
removeProperty
public void removeProperty(String name)
-
asList
public List<ContentProperty> asList()
You shouldn't use this directly, content properties should be managed by theContentEntityObject
.
-
-