Project

General

Profile

Download (812 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2014 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.persistence.hibernate.permission.voter;
10

    
11
import eu.etaxonomy.cdm.model.common.CdmBase;
12
import eu.etaxonomy.cdm.model.name.TaxonName;
13

    
14
/**
15
 * @author a.kohlbecker
16
 * @date Feb 24, 2014
17
 *
18
 */
19
public class TaxonNameVoter extends CdmPermissionVoter {
20

    
21
    @Override
22
    public Class<? extends CdmBase> getResponsibilityClass() {
23
        return TaxonName.class;
24
    }
25

    
26
    @Override
27
    public boolean isOrpahn(CdmBase object) {
28
        // we always return true here to allow deleting the reference
29
        return true;
30
    }
31

    
32
}
(7-7/9)