@Transactional public interface TrashManagerInternal extends TrashManager
Modifier and Type | Method and Description |
---|---|
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 entities
|
void |
migrateTrashDate(Instant trashTime)
Add trash date to all existing items in the trash
|
void |
migrateTrashDate(String spaceKey,
Instant trashTime)
Add trash date to existing items in the trash for a space
|
void |
purge(List<SpaceContentEntityObject> trashedEntities)
Delete a list of trashed entities
|
emptyTrash, getNumberOfItemsInTrash, getTrashContents, getTrashDateMigrationTime, purge
void migrateTrashDate(Instant trashTime)
trashTime
- timestamp to use as trash datevoid migrateTrashDate(String spaceKey, Instant trashTime)
spaceKey
- key of the space to apply trash datetrashTime
- timestamp to use as trash date@Transactional(readOnly=true) Optional<Instant> findTrashDate(ContentEntityObject ceo)
Optional.empty()
2. If it has a contentproperty named trash-date
, trash date will be trash-date
3. 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 be Optional.empty()
ceo
- a content entity object to determine trash dateceo
was added to the trash if that data is available@Transactional(readOnly=true) List<SpaceContentEntityObject> getTrashedEntities(long contentIdOffset, int limit)
contentIdOffset
- ids of returned entities must be greater than or equal to this valuelimit
- maximum number of entities to returnvoid purge(List<SpaceContentEntityObject> trashedEntities)
trashedEntities
- trashed entities to be deleted from trashCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences