public class TrashcanCleaner extends Object
clean() the trashcan according
to defined deleteBatchCount and keepPeriod properties.
deleteBatchCount: It will set how many nodes in trashcan to delete at
maximum during clean execution. By default the value is 1000.
keepPeriod: The time period (in Duration format) for which documents in
trashcan are kept. Any nodes archived less than the value specified won't be deleted during clean() execution.
| Constructor and Description |
|---|
TrashcanCleaner(org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.transaction.TransactionService transactionService,
int deleteBatchCount,
String keepPeriod) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
The method that will clean the specified archiveStoreUrl to the
limits defined by the values set for deleteBatchCount and
daysToKeep.
|
long |
getNumberOfNodesInTrashcan()
It returns the number of nodes present on trashcan.
|
public TrashcanCleaner(org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.transaction.TransactionService transactionService,
int deleteBatchCount,
String keepPeriod)
nodeService - transactionService - deleteBatchCount - keepPeriod - public long getNumberOfNodesInTrashcan()
public void clean()
Copyright © 2005–2016 Alfresco Software. All rights reserved.