java.lang.Object | ||
↳ | com.atlassian.confluence.core.DefaultContentEntityManager | |
↳ | com.atlassian.confluence.content.DefaultCustomContentManager |
Generic manager for pluggable content.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.confluence.core.ContentEntityManager
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.core.DefaultContentEntityManager
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is required for space exports to work properly.
| |||||||||||
Get the results of a query for PluginContentEntityObjects
| |||||||||||
Get an iterator of all the current, non-deleted content of the given type in the given space.
| |||||||||||
Find the first result of a query for PluginContentEntityObjects.
| |||||||||||
Get the total count of current, non-deleted content of the given type in the given space.
| |||||||||||
Create a new CustomContentEntityObject for the given module.
| |||||||||||
Remove all plugin content of a particular type from a given space.
| |||||||||||
Remove all plugin content (of all types) from a given space.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method publishes
*CreateEvents s. | |||||||||||
This method publishes
*RemoveEvent s. | |||||||||||
This method publishes
*UpdateEvent s. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.core.DefaultContentEntityManager
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.content.CustomContentManager
| |||||||||||
From interface
com.atlassian.confluence.core.ContentEntityManager
|
This method is required for space exports to work properly. Which is a good sign that space exports are evil and need to be rewritten. If you call it from anywhere else, I will kill a puppy.
space | a space |
---|
Get the results of a query for PluginContentEntityObjects
query | the query to perform |
---|---|
offset | the first result to return |
maxResults | the maximum number of results to return |
Get an iterator of all the current, non-deleted content of the given type in the given space.
space | the space to retrieve content from |
---|---|
pluginContentKey | the plugin module complete key of the content to be searched for |
sortField | what field to sort the content on |
sortOrder | which direction to sort the content in |
Find the first result of a query for PluginContentEntityObjects. This is a convenience method for queries where we expect to only retrieve a single result.
query | the query to perform |
---|
Get the total count of current, non-deleted content of the given type in the given space.
space | the space to count content in |
---|---|
pluginContentKey | the plugin module complete key of the content to be searched for |
Create a new CustomContentEntityObject for the given module. This method will ensure that the plugin delegate and various necessary arguments are set.
contentModuleKey | the module complete key of the content's ContentAdapter module |
---|
Remove all plugin content of a particular type from a given space.
pluginContentKey | the plugin module complete key of the content to be searched for |
---|---|
space | the space from which to delete all content of that type |
Remove all plugin content (of all types) from a given space. This usually happens when a space is removed. Plugins wishing to perform extra work on space removal should listen for the PluginContentWillBeRemovedForSpaceEvent event.
This method publishes *CreateEvents
s.
Specific content entity object manager that need to publish those events should override this method.
obj | the created content entity object |
---|
This method publishes *RemoveEvent
s.
Specific content entity object manager that need to publish those events should override this method.
obj | the removed content entity object |
---|
This method publishes *UpdateEvent
s.
Specific content entity object manager that need to publish those events should override this method.
obj | the updated content entity object |
---|---|
origObj | the old version of the content entity object, for history purpose |
saveContext | the associated SaveContext
|