Commit 88ee8a77e6a69a1f3dd0604cb907abde608fb905

Authored by Rui Fernandes
1 parent 08c5f6f616
Exists in master

reviewed filter code for archiveUser nodes and updated correctly the version of artifact

... ... @@ -4,7 +4,7 @@
4 4 <modelVersion>4.0.0</modelVersion>
5 5 <groupId>org.alfresco</groupId>
6 6 <artifactId>alfresco-trashcan-cleaner</artifactId>
7   - <version>1.0-SNAPSHOT</version>
  7 + <version>2.0-SNAPSHOT</version>
8 8 <name>alfresco-trashcan-cleaner AMP project</name>
9 9 <packaging>amp</packaging>
10 10 <description>Manages the lifecycle of the alfresco-trashcan-cleaner AMP (Alfresco Module Package)</description>
... ...
src/main/java/org/alfresco/trashcan/TrashcanCleaner.java
... ... @@ -247,7 +247,7 @@ public class TrashcanCleaner
247 247 List<ChildAssociationRef> childs=new ArrayList<ChildAssociationRef>();
248 248 for(ChildAssociationRef childAssoc:allChilds){
249 249 NodeRef child=childAssoc.getChildRef();
250   - if(nodeService.getType(child)!=ContentModel.TYPE_ARCHIVE_USER){
  250 + if(!ContentModel.TYPE_ARCHIVE_USER.equals(nodeService.getType(child))){
251 251 childs.add(childAssoc);
252 252 }
253 253 }
... ...