Package com.atlassian.confluence.core
Class DefaultContentPropertyManager
- java.lang.Object
-
- com.atlassian.confluence.core.DefaultContentPropertyManager
-
- All Implemented Interfaces:
ContentPropertyManager
@ParametersAreNonnullByDefault @Deprecated public class DefaultContentPropertyManager extends Object implements ContentPropertyManager
Deprecated.since 7.5 Replaced byReadThroughCachingContentPropertyManager
-
-
Constructor Summary
Constructors Constructor Description DefaultContentPropertyManager(ConfluencePropertySetManager propertySetManager, com.atlassian.vcache.VCacheFactory cacheFactory)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetStringProperty(ContentEntityObject entity, String key)Deprecated.Get a string property associated with a content entity object, or null if that property is not set.StringgetTextProperty(ContentEntityObject entity, String key)Deprecated.Get a text property associated with a content entity object, or null if that property is not set.voidremoveProperties(ContentEntityObject entity)Deprecated.Remove all the properties associated with the content entity object.voidremoveProperty(ContentEntityObject entity, String key)Deprecated.Remove the property associated with the content entity object.voidsetStringProperty(ContentEntityObject entity, String key, @Nullable String value)Deprecated.Associate a string property with a content entity object, or null if that property is not set.voidsetTextProperty(ContentEntityObject entity, String key, String value)Deprecated.Associate a text property with a content entity object, or null if that property is not set.voidtransferProperties(ContentEntityObject source, ContentEntityObject destination)Deprecated.Copies all properties associated with the source content entity object to the destination content entity object, and then removes all properties from the source content entity object.
-
-
-
Constructor Detail
-
DefaultContentPropertyManager
public DefaultContentPropertyManager(ConfluencePropertySetManager propertySetManager, com.atlassian.vcache.VCacheFactory cacheFactory)
Deprecated.- Since:
- 5.10
-
-
Method Detail
-
getStringProperty
public String getStringProperty(ContentEntityObject entity, String key)
Deprecated.Description copied from interface:ContentPropertyManagerGet 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:
getStringPropertyin interfaceContentPropertyManager- Parameters:
entity- the entity the property is associated withkey- 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, @Nullable String value)
Deprecated.Description copied from interface:ContentPropertyManagerAssociate 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:
setStringPropertyin interfaceContentPropertyManager- Parameters:
entity- the entity the property is associated withkey- the key with which to look up the propertyvalue- the value to set
-
getTextProperty
public String getTextProperty(ContentEntityObject entity, String key)
Deprecated.Description copied from interface:ContentPropertyManagerGet 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:
getTextPropertyin interfaceContentPropertyManager- Parameters:
entity- the entity the property is associated withkey- 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)
Deprecated.Description copied from interface:ContentPropertyManagerAssociate a text property with a content entity object, or null if that property is not set.- Specified by:
setTextPropertyin interfaceContentPropertyManager- Parameters:
entity- the entity the property is associated withkey- the key with which to look up the propertyvalue- the value to set
-
removeProperty
public void removeProperty(ContentEntityObject entity, String key)
Deprecated.Description copied from interface:ContentPropertyManagerRemove the property associated with the content entity object.- Specified by:
removePropertyin interfaceContentPropertyManager- Parameters:
entity- the entity the property is associated withkey- the key with which to look up the property
-
removeProperties
public void removeProperties(ContentEntityObject entity)
Deprecated.Description copied from interface:ContentPropertyManagerRemove all the properties associated with the content entity object.- Specified by:
removePropertiesin interfaceContentPropertyManager- Parameters:
entity- the entity the property is associated with
-
transferProperties
public void transferProperties(ContentEntityObject source, ContentEntityObject destination)
Deprecated.Description copied from interface:ContentPropertyManagerCopies all properties associated with the source content entity object to the destination content entity object, and then removes all properties from the source content entity object.Intended use is for any properties saved against a
Draftto be transferred to the persisted content entity object.- Specified by:
transferPropertiesin interfaceContentPropertyManager- Parameters:
source- the entity to copy and remove properties fromdestination- the entity to copy properties to
-
-