|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomContentManager
Nested Class Summary | |
---|---|
static class |
CustomContentManager.SortField
|
static class |
CustomContentManager.SortOrder
|
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.core.ContentEntityManager |
---|
ITERATE_ALL |
Method Summary | ||
---|---|---|
Collection<CustomContentEntityObject> |
findAllInSpace(Space space)
Deprecated. this method is evil. Do not call. |
|
|
findByQuery(ContentQuery<T> query,
int offset,
int maxResults)
Get the results of a query for PluginContentEntityObjects |
|
Iterator<CustomContentEntityObject> |
findCurrentInSpace(Space space,
String contentModuleKey,
int offset,
int maxResults,
CustomContentManager.SortField sortField,
CustomContentManager.SortOrder sortOrder)
Get an iterator of all the current, non-deleted content of the given type in the given space. |
|
|
findFirstObjectByQuery(ContentQuery<T> query)
Find the first result of a query for PluginContentEntityObjects. |
|
int |
findTotalInSpace(Space space,
String contentModuleKey)
Get the total count of current, non-deleted content of the given type in the given space. |
|
CustomContentEntityObject |
getById(long id)
Find a single CustomContentEntityObject by its id |
|
CustomContentEntityObject |
newPluginContentEntityObject(String contentModuleKey)
Create a new CustomContentEntityObject for the given module. |
|
void |
removeAllInSpace(String contentModuleKey,
Space space)
Remove all plugin content of a particular type from a given space. |
|
void |
removeAllPluginContentInSpace(Space space)
Remove all plugin content (of all types) from a given space. |
Method Detail |
---|
CustomContentEntityObject newPluginContentEntityObject(String contentModuleKey)
contentModuleKey
- the module complete key of the content's ContentAdapter module
CustomContentEntityObject getById(long id)
getById
in interface ContentEntityManager
id
- the ID of the entity to retrieve
<T> Iterator<T> findByQuery(ContentQuery<T> query, int offset, int maxResults)
query
- the query to performoffset
- the first result to returnmaxResults
- the maximum number of results to return
<T> T findFirstObjectByQuery(ContentQuery<T> query)
query
- the query to perform
int findTotalInSpace(Space space, String contentModuleKey)
space
- the space to count content incontentModuleKey
- the plugin module complete key of the content to be searched for
Iterator<CustomContentEntityObject> findCurrentInSpace(Space space, String contentModuleKey, int offset, int maxResults, CustomContentManager.SortField sortField, CustomContentManager.SortOrder sortOrder)
space
- the space to retrieve content fromcontentModuleKey
- the plugin module complete key of the content to be searched forsortField
- what field to sort the content onsortOrder
- which direction to sort the content in
void removeAllInSpace(String contentModuleKey, Space space)
contentModuleKey
- the plugin module complete key of the content to be searched forspace
- the space from which to delete all content of that typevoid removeAllPluginContentInSpace(Space space)
space
- Collection<CustomContentEntityObject> findAllInSpace(Space space)
space
- a space
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |