Project

General

Profile

Download (933 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.cdm.vaadin.view.registration;
10

    
11
import com.vaadin.spring.annotation.SpringComponent;
12
import com.vaadin.spring.annotation.ViewScope;
13

    
14
import eu.etaxonomy.cdm.model.reference.Reference;
15
import eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter;
16

    
17
/**
18
 * @author a.kohlbecker
19
 * @since Apr 5, 2017
20
 *
21
 */
22
@SpringComponent
23
@ViewScope
24
public class ReferenceEditorPresenter extends AbstractEditorPresenter<Reference> {
25

    
26

    
27
    private static final long serialVersionUID = -7926116447719010837L;
28

    
29
    /**
30
     * {@inheritDoc}
31
     */
32
    @Override
33
    protected void saveBean(Reference bean) {
34
        getRepo().getReferenceService().saveOrUpdate(bean);
35

    
36
    }
37

    
38
}
(5-5/17)