Interface TrashManagerInternal
- 
- All Superinterfaces:
- TrashManager
 - All Known Implementing Classes:
- DefaultTrashManager
 
 @Transactional public interface TrashManagerInternal extends TrashManager Internal operations on trash- Since:
- 7.14
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Instant>findTrashDate(Content content)Trash date is only available since Confluence 7.14.Optional<Instant>findTrashDate(ContentEntityObject ceo)Trash date is only available since Confluence 7.14.List<SpaceContentEntityObject>getTrashedEntities(long contentIdOffset, int limit)Fetch a batch of trashed content entitiesvoidmigrateTrashDate(String spaceKey, Instant trashTime)Add trash date to existing items in the trash for a spacevoidmigrateTrashDate(Instant trashTime)Add trash date to all existing items in the trashvoidpurge(List<SpaceContentEntityObject> trashedEntities)Delete a list of trashed entities- 
Methods inherited from interface com.atlassian.confluence.pages.TrashManageremptyTrash, getNumberOfItemsInTrash, getTrashContents, getTrashContents, getTrashDateMigrationTime, purge
 
- 
 
- 
- 
- 
Method Detail- 
migrateTrashDatevoid migrateTrashDate(Instant trashTime) Add trash date to all existing items in the trash- Parameters:
- trashTime- timestamp to use as trash date
 
 - 
migrateTrashDatevoid migrateTrashDate(String spaceKey, Instant trashTime) Add trash date to existing items in the trash for a space- Parameters:
- spaceKey- key of the space to apply trash date
- trashTime- timestamp to use as trash date
 
 - 
findTrashDate@Transactional(readOnly=true) Optional<Instant> findTrashDate(ContentEntityObject ceo) Trash date is only available since Confluence 7.14. The rules to determine effective trash date for a content entity in general is: 1. If it is not in trash, trash date will beOptional.empty()2. If it has a contentproperty namedtrash-date, trash date will betrash-date3. If it belongs to a space which has a trash-date set in bandana, trash date will be that value 4. If there is a global trash-date set in bandana, trash date will be that value 5. Otherwise, trash date will beOptional.empty()- Parameters:
- ceo- a content entity object to determine trash date
- Returns:
- when ceowas added to the trash if that data is available
 
 - 
findTrashDate@Transactional(readOnly=true) Optional<Instant> findTrashDate(Content content) Trash date is only available since Confluence 7.14. The rules to determine effective trash date for a content entity in general is: 1. If it is not in trash, trash date will beOptional.empty()2. If it has a contentproperty namedtrash-date, trash date will betrash-date3. If it belongs to a space which has a trash-date set in bandana, trash date will be that value 4. If there is a global trash-date set in bandana, trash date will be that value 5. Otherwise, trash date will beOptional.empty()- Parameters:
- content- a com.atlassian.confluence.api.model.content.Content to determine trash date
- Returns:
- when contentwas added to the trash if that data is available
 
 - 
getTrashedEntities@Transactional(readOnly=true) List<SpaceContentEntityObject> getTrashedEntities(long contentIdOffset, int limit) Fetch a batch of trashed content entities- Parameters:
- contentIdOffset- ids of returned entities must be greater than or equal to this value
- limit- maximum number of entities to return
 
 - 
purgevoid purge(List<SpaceContentEntityObject> trashedEntities) Delete a list of trashed entities- Parameters:
- trashedEntities- trashed entities to be deleted from trash
 
 
- 
 
-