@Entity @Indexed(index="roles") @Analyzer(definition="entity_analyzer") public final class Role extends AbstractAuthzEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
Role.Deserializer
Deserialize a reference to an Role.
|
| Constructor and Description |
|---|
Role() |
| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication()
Get the application.
|
String |
getName()
Get the name for this role.
|
User |
getOwner()
The owner of this entity.
|
SortedMap<String,ApplicationScope> |
getScopes()
Get this role's scopes.
|
List<User> |
getUsers()
Get the users that have this role.
|
void |
setApplication(Application application)
Set the application for this role.
|
void |
setName(String name)
Set the name for this role.
|
void |
setScopes(SortedMap<String,ApplicationScope> scopes)
Set this role's scopes.
|
void |
setUsers(List<User> users)
Set the list of users that have this role.
|
clone, equals, getCreatedDate, getId, getModifiedDate, hashCode, setCreatedDate, setId, setModifiedDate, toStringpublic Application getApplication()
public void setApplication(Application application)
application - A new application.public String getName()
public void setName(String name)
name - The new role name.public void setUsers(List<User> users)
users - A new list of users.public SortedMap<String,ApplicationScope> getScopes()
public void setScopes(SortedMap<String,ApplicationScope> scopes)
scopes - A new list of scopes.public User getOwner()
getOwner in class AbstractAuthzEntityCopyright © 2018 krotscheck.net. All rights reserved.