public class SimpleGroup extends Object implements Group
| Constructor and Description |
|---|
SimpleGroup() |
SimpleGroup(String name,
String description,
Collection<Privilege> privileges)
Construct new group
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthority() |
String |
getDescription() |
String |
getDisplayName() |
String |
getName() |
Collection<Privilege> |
getPrivileges() |
boolean |
hasPrivilege(String privilege)
Returns true if this group contains given privilege
|
void |
setDescription(String description) |
void |
setName(String name) |
void |
setPrivileges(Collection<Privilege> privileges) |
String |
toString() |
public SimpleGroup()
public SimpleGroup(String name, String description, Collection<Privilege> privileges)
privileges - nested authorities (privileges and groups)public void setName(String name)
public String getDescription()
getDescription in interface Grouppublic void setDescription(String description)
public Collection<Privilege> getPrivileges()
getPrivileges in interface Grouppublic void setPrivileges(Collection<Privilege> privileges)
public String getDisplayName()
getDisplayName in interface Privilegepublic String getAuthority()
getAuthority in interface org.springframework.security.core.GrantedAuthoritypublic boolean hasPrivilege(String privilege)
GrouphasPrivilege in interface Groupprivilege - checking privilegeCopyright © 2019. All rights reserved.