2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.sortprovider
;
12 import org
.joda
.time
.DateTime
;
14 import eu
.etaxonomy
.cdm
.model
.common
.ICdmBase
;
18 * @created Dec 14, 2010
21 public class CdmBaseSortProvider
<T
extends ICdmBase
> extends AbstractSortProvider
<T
> {
26 public CdmBaseSortProvider() {
27 comparators
.put("Created When", new CreatedDateComparator());
30 private class CreatedDateComparator
extends AbstractDateComparator
<T
>{
33 * @see eu.etaxonomy.taxeditor.bulkeditor.input.sortprovider.AbstractDateComparator#getDate(eu.etaxonomy.cdm.model.common.ICdmBase)
36 protected DateTime
getDate(T object
) {
37 return object
.getCreated();