com.atlassian.confluence.content
Class ContentProperties

java.lang.Object
  extended by 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
ContentProperties(List<ContentProperty> properties)
          You shouldn't use this directly, content properties should be managed by the ContentEntityObject.
 
Method Summary
 List<ContentProperty> asList()
          You shouldn't use this directly, content properties should be managed by the ContentEntityObject.
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.
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentProperties

public ContentProperties(List<ContentProperty> properties)
You shouldn't use this directly, content properties should be managed by the ContentEntityObject.

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

Parameters:
properties -
Returns:

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.



Copyright © 2003–2015 Atlassian. All rights reserved.