|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentEntityManager
Field Summary | |
---|---|
static int |
ITERATE_ALL
|
Method Summary | |
---|---|
java.util.Iterator |
getAllCurrentEntities()
Retrieves an Iterator for all entities. |
ContentEntityObject |
getById(long id)
|
java.util.List |
getLockedBySpace(java.lang.String spaceKey)
|
ContentEntityObject |
getNextVersion(ContentEntityObject ceo)
|
ContentEntityObject |
getOtherVersion(ContentEntityObject ceo,
int version)
|
ContentEntityObject |
getPreviousVersion(ContentEntityObject ceo)
|
java.util.Iterator |
getRecentlyAddedEntities(java.lang.String spaceKey,
int maxResults)
Retrieve an iterator of recently added entities, in order of most recent to last. |
java.util.Iterator |
getRecentlyModifiedEntities(int maxResults)
Deprecated. for content queries, use the list manager instead. |
java.util.Iterator |
getRecentlyModifiedEntities(java.lang.String spaceKey,
int maxResults)
Retrieve an iterator of recently modified entities, in order of most recent to last. |
java.util.Iterator |
getRecentlyModifiedEntitiesForUser(java.lang.String username)
Retrieve an iterator of recently modified entities, in order of most recent to last. |
java.util.List |
getRecentlyModifiedForChangeDigest(java.util.Date fromDate)
Retrieves a list of ContentEntityObject s that have been newly added or modified
since the date specified. |
java.util.List<VersionHistorySummary> |
getVersionHistorySummaries(ContentEntityObject ceo)
Get a VersionHistorySummary for all previous versions of a ContentEntityObject, starting with the current content. |
void |
refreshContentEntity(ContentEntityObject obj)
|
void |
removeContentEntity(ContentEntityObject obj)
Removes given content entity object and all associated domain objects i.e. |
void |
revertContentEntityBackToVersion(ContentEntityObject obj,
int version)
Deprecated. since 2.9, use revertContentEntityBackToVersion(ContentEntityObject,int, String, boolean) instead |
void |
revertContentEntityBackToVersion(ContentEntityObject obj,
int version,
java.lang.String revertComment,
boolean revertTitle)
Reverts a ContentEntityObject back to its state at the version specified by version . |
void |
saveContentEntity(ContentEntityObject obj,
ContentEntityObject origObj,
SaveContext saveContext)
In order to create a history for this object, we need to pass in the modified as well as the original version of the object. |
void |
saveContentEntity(ContentEntityObject obj,
SaveContext saveContext)
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
updateContentLinkingTo(SpaceContentEntityObject contentBeingRefactored,
java.lang.String newSpaceKey,
java.lang.String newTitle)
Loops through all the content that currently links to 'contentBeingChanged' and renames all the links. |
void |
updateOutgoingLinksInContent(SpaceContentEntityObject contentBeingRefactored,
java.lang.String newSpaceKey)
Update the links on the page itself. |
void |
updateSingleContentLinkinTo(ContentEntityObject referringContent,
SpaceContentEntityObject contentBeingRefactored,
java.lang.String newSpaceKey,
java.lang.String newTitle)
Renames all links contained in the 'referringContent' that currently links to 'contentBeingRefactored'. |
void |
updateSingleContentLinkinTo(ContentEntityObject referringContent,
SpaceContentEntityObject contentBeingRefactored,
java.lang.String newSpaceKey,
java.lang.String newTitle,
SaveContext saveContext)
|
Field Detail |
---|
static final int ITERATE_ALL
Method Detail |
---|
void saveContentEntity(ContentEntityObject obj, SaveContext saveContext)
obj
- - the ContentEntityObject
to savesaveContext
- - a SaveContext
object for the manager.void saveContentEntity(ContentEntityObject obj, ContentEntityObject origObj, SaveContext saveContext)
saveContext
- - a SaveContext
holding additional parameters for the manager to use when saving.void removeContentEntity(ContentEntityObject obj)
void refreshContentEntity(ContentEntityObject obj)
void revertContentEntityBackToVersion(ContentEntityObject obj, int version)
revertContentEntityBackToVersion(ContentEntityObject,int, String, boolean)
instead
void revertContentEntityBackToVersion(ContentEntityObject obj, int version, java.lang.String revertComment, boolean revertTitle)
ContentEntityObject
back to its state at the version specified by version
.
Creates a new latest version that resembles the previous state.
obj
- The ContentEntityObject to revertversion
- The version to revert torevertComment
- A comment to be associated with the revertrevertTitle
- If true, the ContentEntityObject title will be reverted to the old statejava.util.Iterator getRecentlyAddedEntities(java.lang.String spaceKey, int maxResults)
spaceKey
- the space key to look up the entities for. If spaceKey is null, there
is assumed to be no space, and things like user info and space descriptions will
also be returned.maxResults
- the maximum number of entities to return in the iterator. Any number
zero or less (Use the ITERATE_ALL constant) will cause the iterator to go over
every entity.java.util.Iterator getRecentlyModifiedEntities(java.lang.String spaceKey, int maxResults)
spaceKey
- the space key to look up the entities for.maxResults
- the maximum number of entities to return in the iterator. Any number
zero or less (Use the ITERATE_ALL constant) will cause the iterator to go over
every entity.java.util.Iterator getRecentlyModifiedEntities(int maxResults)
java.util.Iterator getAllCurrentEntities()
java.util.List getRecentlyModifiedForChangeDigest(java.util.Date fromDate)
ContentEntityObject
s that have been newly added or modified
since the date specified. This list excludes drafts, space descriptions and mail.
fromDate
- content modified after this date will be returned
ContentEntityObject
s that have been newly added or modified
since the date specifiedjava.util.Iterator getRecentlyModifiedEntitiesForUser(java.lang.String username)
username
- the user for which to retrieve the modified contentjava.util.List getLockedBySpace(java.lang.String spaceKey)
ContentEntityObject getById(long id)
void updateContentLinkingTo(SpaceContentEntityObject contentBeingRefactored, java.lang.String newSpaceKey, java.lang.String newTitle)
void updateOutgoingLinksInContent(SpaceContentEntityObject contentBeingRefactored, java.lang.String newSpaceKey)
void updateSingleContentLinkinTo(ContentEntityObject referringContent, SpaceContentEntityObject contentBeingRefactored, java.lang.String newSpaceKey, java.lang.String newTitle)
void updateSingleContentLinkinTo(ContentEntityObject referringContent, SpaceContentEntityObject contentBeingRefactored, java.lang.String newSpaceKey, java.lang.String newTitle, SaveContext saveContext)
void setEventManager(com.atlassian.event.EventManager eventManager)
ContentEntityObject getPreviousVersion(ContentEntityObject ceo)
ContentEntityObject getNextVersion(ContentEntityObject ceo)
ContentEntityObject getOtherVersion(ContentEntityObject ceo, int version)
java.util.List<VersionHistorySummary> getVersionHistorySummaries(ContentEntityObject ceo)
ceo
- the entity object to return the version history of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |