|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.security.Role
public class Role
Catches a group of Authorities under one name. This class is be used to simplify the usage of Authorities. Instead of assigning a large amount of Auhthorities to a User only one or two Roles can suffice.
Constructor Summary | |
---|---|
Role()
Creates a new Role-object. |
Method Summary | |
---|---|
java.util.Set<Authority> |
getAuthorities()
|
int |
getId()
|
java.lang.String |
getName()
|
void |
setAuthorities(java.util.Set<Authority> authorities)
Sets the Authorities that are granted to this Role. |
void |
setId(int id)
Set the identifier for this Role |
void |
setName(java.lang.String name)
Sets the name for this Role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Role()
Method Detail |
---|
public int getId()
public void setId(int id)
id
- an integer.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The namepublic java.util.Set<Authority> getAuthorities()
public void setAuthorities(java.util.Set<Authority> authorities)
authorities
- The Authorities.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |