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)
TrashManager
TrashManager.getTrashContents(com.atlassian.confluence.spaces.Space, int, int)
getTrashContents
in interface TrashManager
spaceKey
- the key of the space to retrieve trash forpublic void emptyTrash(Space space)
TrashManager
emptyTrash
in interface TrashManager
public int getNumberOfItemsInTrash(Space space)
TrashManager
getNumberOfItemsInTrash
in interface TrashManager
public boolean purge(String spaceKey, long contentId)
TrashManager
purge
in interface TrashManager
spaceKey
- 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)
TrashManager
getTrashContents
in interface TrashManager
offset
- 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–2017 Atlassian. All rights reserved.