1 package eu
.etaxonomy
.cdm
.model
.common
;
3 import javax
.persistence
.Entity
;
4 import javax
.xml
.bind
.annotation
.XmlAccessType
;
5 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
6 import javax
.xml
.bind
.annotation
.XmlElement
;
7 import javax
.xml
.bind
.annotation
.XmlRootElement
;
8 import javax
.xml
.bind
.annotation
.XmlType
;
10 import org
.hibernate
.annotations
.NaturalId
;
11 import org
.springframework
.security
.GrantedAuthority
;
13 @XmlAccessorType(XmlAccessType
.FIELD
)
14 @XmlType(name
= "GrantedAuthority", propOrder
= {
17 @XmlRootElement(name
= "Group")
19 public class GrantedAuthorityImpl
extends CdmBase
implements GrantedAuthority
{
24 private static final long serialVersionUID
= 2651969425860655040L;
26 @XmlElement(name
= "Authority")
28 private String authority
;
30 public String
getAuthority() {
34 public void setAuthority(String authority
) {
35 this.authority
= authority
;
38 public int compareTo(Object o
) {
39 if(o
instanceof GrantedAuthority
) {
40 return this.authority
.compareTo(((GrantedAuthority
)o
).getAuthority());