| Constructor and Description |
|---|
DefaultRole()
Hide default constructor not to be able to create roles w/o a name.
|
DefaultRole(String roleName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
UUID |
getId() |
String |
getName()
Retrieve the name of the role.
|
List<Permission> |
getPermissions()
Retrieve the permissions assigned to the role.
|
int |
hashCode() |
void |
setId(UUID id) |
void |
setName(String roleName)
Change the name of the role.
|
void |
setPermissions(List<Permission> permissions) |
String |
toString() |
public DefaultRole()
public DefaultRole(String roleName)
roleName - Name of the role to create.public void setId(UUID id)
@NotNull @NotEmpty public String getName()
public void setName(String roleName)
public List<Permission> getPermissions()
getPermissions in interface Role<UUID>public void setPermissions(List<Permission> permissions)
permissions - the permissionsCopyright © 2014. All Rights Reserved.