(no commit message)
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / common / Rights.java
1 /**
2 * Copyright (C) 2007 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
10 package eu.etaxonomy.cdm.model.common;
11
12
13 import org.apache.log4j.Logger;
14 import org.hibernate.annotations.Cascade;
15 import org.hibernate.annotations.CascadeType;
16
17 import java.util.*;
18 import javax.persistence.*;
19
20 /**
21 * Typically, rights information includes a statement about various property
22 * rights associated with the resource, including intellectual property rights.
23 * http://purl.org/dc/elements/1.1/rights http://dublincore.org/documents/dcmi-
24 * terms/
25 * @author m.doering
26 * @version 1.0
27 * @created 08-Nov-2007 13:06:49
28 */
29 @Entity
30 public class Rights extends LanguageString {
31 static Logger logger = Logger.getLogger(Rights.class);
32 //external location of copyright text
33 private String uri;
34 private String abbreviatedText;
35 private RightsTerm type;
36
37 public Rights(String text, Language lang) {
38 super(text, lang);
39 }
40
41
42 @Transient
43 @Cascade({CascadeType.SAVE_UPDATE})
44 public RightsTerm getType(){
45 return this.type;
46 }
47 public void setType(RightsTerm type){
48 this.type = type;
49 }
50
51
52 public String getUri(){
53 return this.uri;
54 }
55 public void setUri(String uri){
56 this.uri = uri;
57 }
58
59
60 public String getAbbreviatedText(){
61 return this.abbreviatedText;
62 }
63 public void setAbbreviatedText(String abbreviatedStatement){
64 this.abbreviatedText = abbreviatedStatement;
65 }
66
67 }