org.alfresco.repo.web.scripts.replication
Class ReplicationModelBuilder.SimpleSorterByLastRun

java.lang.Object
  extended by org.alfresco.repo.web.scripts.replication.ReplicationModelBuilder.SimpleSorterByLastRun
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ReplicationModelBuilder

public static class ReplicationModelBuilder.SimpleSorterByLastRun
extends java.lang.Object
implements java.util.Comparator

Sorts simple definitions by their last run time. Things that have never been run go to the bottom of the list, so we see most recently run, least recently run, never run.


Constructor Summary
ReplicationModelBuilder.SimpleSorterByLastRun()
           
 
Method Summary
 int compare(java.util.Map simpleA, java.util.Map simpleB)
          Works on ISO8601 formatted date strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ReplicationModelBuilder.SimpleSorterByLastRun

public ReplicationModelBuilder.SimpleSorterByLastRun()
Method Detail

compare

public int compare(java.util.Map simpleA,
                   java.util.Map simpleB)
Works on ISO8601 formatted date strings

Specified by:
compare in interface java.util.Comparator


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.