com.atlassian.confluence.core
Interface ContentPropertyManager

All Known Implementing Classes:
DefaultContentPropertyManager

public interface ContentPropertyManager


Method Summary
 java.lang.String getStringProperty(ContentEntityObject entity, java.lang.String key)
          Get a string property associated with a content entity object, or null if that property is not set.
 java.lang.String getTextProperty(ContentEntityObject entity, java.lang.String key)
          Get a text property associated with a content entity object, or null if that property is not set.
 void removeProperties(ContentEntityObject entity)
          Remove all the properties associated with the content entity object.
 void removeProperty(ContentEntityObject entity, java.lang.String key)
          Remove the property associated with the conetent entity object.
 void setStringProperty(ContentEntityObject entity, java.lang.String key, java.lang.String value)
          Associate a string property with a content entity object, or null if that property is not set.
 void setTextProperty(ContentEntityObject entity, java.lang.String key, java.lang.String value)
          Associate a text property with a content entity object, or null if that property is not set.
 

Method Detail

getStringProperty

java.lang.String getStringProperty(ContentEntityObject entity,
                                   java.lang.String key)
Get a string property associated with a content entity object, or null if that property is not set. String properties can not be longer than 255 characters

Parameters:
entity - the entity the property is associated with
key - the key with which to look up the property
Returns:
the property, or null if no such property exists

setStringProperty

void setStringProperty(ContentEntityObject entity,
                       java.lang.String key,
                       java.lang.String value)
Associate a string property with a content entity object, or null if that property is not set. String properties can not be longer than 255 characters. If a property is set longer than 255 characters, it will be truncated.

Parameters:
entity - the entity the property is associated with
key - the key with which to look up the property
value - the value to set

getTextProperty

java.lang.String getTextProperty(ContentEntityObject entity,
                                 java.lang.String key)
Get a text property associated with a content entity object, or null if that property is not set. Text properties can be longer than 255 characters, but I suspect anything over 4096 characters will break Oracle.

Parameters:
entity - the entity the property is associated with
key - the key with which to look up the property
Returns:
the property, or null if no such property exists

setTextProperty

void setTextProperty(ContentEntityObject entity,
                     java.lang.String key,
                     java.lang.String value)
Associate a text property with a content entity object, or null if that property is not set.

Parameters:
entity - the entity the property is associated with
key - the key with which to look up the property
value - the value to set

removeProperty

void removeProperty(ContentEntityObject entity,
                    java.lang.String key)
Remove the property associated with the conetent entity object.

Parameters:
entity - the entity the property is associated with
key - the key with which to look up the property

removeProperties

void removeProperties(ContentEntityObject entity)
Remove all the properties associated with the content entity object.

Parameters:
entity - the entity the property is associated with


Copyright © 2003-2010 Atlassian. All Rights Reserved.