com.atlassian.confluence.core
Class DefaultContentPropertyManager

java.lang.Object
  extended by com.atlassian.confluence.core.DefaultContentPropertyManager
All Implemented Interfaces:
ContentPropertyManager

public class DefaultContentPropertyManager
extends Object
implements ContentPropertyManager


Constructor Summary
DefaultContentPropertyManager()
           
 
Method Summary
 String getStringProperty(ContentEntityObject entity, String key)
          Get a string property associated with a content entity object, or null if that property is not set.
 String getTextProperty(ContentEntityObject entity, 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, String key)
          Remove the property associated with the conetent entity object.
 void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
           
 void setPropertySetManager(ConfluencePropertySetManager propertySetManager)
           
 void setStringProperty(ContentEntityObject entity, String key, String value)
          Associate a string property with a content entity object, or null if that property is not set.
 void setTextProperty(ContentEntityObject entity, String key, String value)
          Associate a text property with a content entity object, or null if that property is not set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContentPropertyManager

public DefaultContentPropertyManager()
Method Detail

setCacheManager

public void setCacheManager(com.atlassian.cache.CacheManager cacheManager)

setPropertySetManager

public void setPropertySetManager(ConfluencePropertySetManager propertySetManager)

getStringProperty

public String getStringProperty(ContentEntityObject entity,
                                String key)
Description copied from interface: ContentPropertyManager
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

Specified by:
getStringProperty in interface ContentPropertyManager
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

public void setStringProperty(ContentEntityObject entity,
                              String key,
                              String value)
Description copied from interface: ContentPropertyManager
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.

Specified by:
setStringProperty in interface ContentPropertyManager
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

public String getTextProperty(ContentEntityObject entity,
                              String key)
Description copied from interface: ContentPropertyManager
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.

Specified by:
getTextProperty in interface ContentPropertyManager
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

public void setTextProperty(ContentEntityObject entity,
                            String key,
                            String value)
Description copied from interface: ContentPropertyManager
Associate a text property with a content entity object, or null if that property is not set.

Specified by:
setTextProperty in interface ContentPropertyManager
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

public void removeProperty(ContentEntityObject entity,
                           String key)
Description copied from interface: ContentPropertyManager
Remove the property associated with the conetent entity object.

Specified by:
removeProperty in interface ContentPropertyManager
Parameters:
entity - the entity the property is associated with
key - the key with which to look up the property

removeProperties

public void removeProperties(ContentEntityObject entity)
Description copied from interface: ContentPropertyManager
Remove all the properties associated with the content entity object.

Specified by:
removeProperties in interface ContentPropertyManager
Parameters:
entity - the entity the property is associated with


Copyright © 2003-2013 Atlassian. All Rights Reserved.