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:
  • Constructor Details

  • Method Details

    • 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 the ContentEntityObject.
    • setStringProperty

      public void setStringProperty(String name, String value)
    • getStringProperty

      public String getStringProperty(String name)
    • 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 the ContentEntityObject.