public class DefaultTrashManager extends Object implements TrashManager
| Constructor and Description |
|---|
DefaultTrashManager() |
| Modifier and Type | Method and Description |
|---|---|
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 |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setContentEntityManager(ContentEntityManager contentEntityManager) |
void |
setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao) |
void |
setCustomContentManager(CustomContentManager customContentManager) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setPageManager(PageManager pageManager) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
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 forpublic void emptyTrash(Space space)
TrashManageremptyTrash in interface TrashManagerpublic int getNumberOfItemsInTrash(Space space)
TrashManagergetNumberOfItemsInTrash in interface TrashManagerpublic boolean purge(String spaceKey, long contentId)
TrashManagerpurge 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 IDpublic List<ContentEntityObject> getTrashContents(Space space, int offset, int count)
TrashManagergetTrashContents in interface TrashManageroffset - the offset of the first item to retrieve (0-based)count - the maximum number of items to retrievepublic void setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setCustomContentManager(CustomContentManager customContentManager)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void setPageManager(PageManager pageManager)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setAttachmentManager(AttachmentManager attachmentManager)
Copyright © 2003–2019 Atlassian. All rights reserved.