1 package eu
.etaxonomy
.cdm
.model
.common
;
3 import javax
.persistence
.Entity
;
5 import org
.hibernate
.annotations
.NaturalId
;
6 import org
.springframework
.security
.GrantedAuthority
;
9 public class GrantedAuthorityImpl
extends CdmBase
implements GrantedAuthority
{
14 private static final long serialVersionUID
= 2651969425860655040L;
16 private String authority
;
19 public String
getAuthority() {
23 public void setAuthority(String authority
) {
24 this.authority
= authority
;
27 public int compareTo(Object o
) {
28 if(o
instanceof GrantedAuthority
) {
29 return this.authority
.compareTo(((GrantedAuthority
)o
).getAuthority());