2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.common
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.hibernate
.annotations
.Cascade
;
15 import org
.hibernate
.annotations
.CascadeType
;
18 import javax
.persistence
.*;
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-
27 * @created 08-Nov-2007 13:06:49
30 public class Rights
extends LanguageString
{
31 static Logger logger
= Logger
.getLogger(Rights
.class);
32 //external location of copyright text
34 private String abbreviatedText
;
35 private RightsTerm type
;
37 public Rights(String text
, Language lang
) {
43 @Cascade({CascadeType
.SAVE_UPDATE
})
44 public RightsTerm
getType(){
47 public void setType(RightsTerm type
){
52 public String
getUri(){
55 public void setUri(String uri
){
60 public String
getAbbreviatedText(){
61 return this.abbreviatedText
;
63 public void setAbbreviatedText(String abbreviatedStatement
){
64 this.abbreviatedText
= abbreviatedStatement
;