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