|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.pages.DefaultTrashManager
public class DefaultTrashManager
This class provides utility methods for operating on the Trash
| Constructor Summary | |
|---|---|
DefaultTrashManager()
|
|
| Method Summary | |
|---|---|
void |
emptyTrash(Space space)
Purge all of the trash in a given space. |
int |
getNumberOfItemsInTrash(Space space)
Retrieve the total number of items in the trash for a given space. |
List<ContentEntityObject> |
getTrashContents(Space space,
int offset,
int count)
Retrieve a subset of the contents of the trash for a particular space. |
List<ContentEntityObject> |
getTrashContents(String spaceKey)
Deprecated since 3.5 - potentially expensive operation. |
boolean |
purge(String spaceKey,
long contentId)
Remove one item from the trash. |
void |
setContentEntityManager(ContentEntityManager contentEntityManager)
|
void |
setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
|
void |
setPageManager(PageManager pageManager)
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTrashManager()
| Method Detail |
|---|
public List<ContentEntityObject> getTrashContents(String spaceKey)
TrashManagerTrashManager.getTrashContents(com.atlassian.confluence.spaces.Space, int, int)
getTrashContents in interface TrashManagerspaceKey - the key of the space to retrieve trash for
public void emptyTrash(Space space)
TrashManager
emptyTrash in interface TrashManagerpublic int getNumberOfItemsInTrash(Space space)
TrashManager
getNumberOfItemsInTrash in interface TrashManager
public boolean purge(String spaceKey,
long contentId)
TrashManager
purge in interface TrashManagerspaceKey - the space to purge the trash fromcontentId - the id of the item to remove from the trash @return true if content was purged, false if no content was found with that ID
public List<ContentEntityObject> getTrashContents(Space space,
int offset,
int count)
TrashManager
getTrashContents in interface TrashManageroffset - the offset of the first item to retrieve (0-based)count - the maximum number of items to retrieve
public void setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void setPageManager(PageManager pageManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||