public class Authority extends Object implements org.springframework.security.core.GrantedAuthority
GrantedAuthority adding a description field
and identity field suitable for ORM| Constructor and Description |
|---|
Authority(String authority)
Constructor
|
Authority(String authority,
String description)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object other) |
String |
getAuthority() |
String |
getDescription()
Accessor method for description
|
Long |
getId()
Accessor method for id
|
int |
hashCode() |
void |
setAuthority(String authority)
Setter method for Authority
|
void |
setDescription(String description)
Setter method for description
|
String |
toString() |
public Authority(String authority)
authority - public int compareTo(Object o)
public String getAuthority()
getAuthority in interface org.springframework.security.core.GrantedAuthoritypublic String getDescription()
public void setAuthority(String authority)
authority - public void setDescription(String description)
description - public Long getId()
Copyright © 2007-2016 Ikasan. All Rights Reserved.