Create and rename Identifiable(List)Controllers
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / AbstractIdentifiableController.java
1 // $Id$
2 /**
3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10 package eu.etaxonomy.cdm.remote.controller;
11
12 import org.springframework.web.bind.WebDataBinder;
13 import org.springframework.web.bind.annotation.InitBinder;
14
15 import eu.etaxonomy.cdm.api.service.IIdentifiableEntityService;
16 import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
17 import eu.etaxonomy.cdm.persistence.query.MatchMode;
18 import eu.etaxonomy.cdm.remote.editor.MatchModePropertyEditor;
19
20 /**
21 * @author a.mueller
22 * @date 06 Oct 2016
23 *
24 */
25 public abstract class AbstractIdentifiableController <T extends IdentifiableEntity, SERVICE extends IIdentifiableEntityService<T>> extends BaseController<T,SERVICE> {
26
27
28 @InitBinder
29 @Override
30 public void initBinder(WebDataBinder binder) {
31 super.initBinder(binder);
32 binder.registerCustomEditor(MatchMode.class, new MatchModePropertyEditor());
33 }
34
35 }