Package | Description |
---|---|
org.restlet |
Core classes of the API.
|
org.restlet.data |
Information exchanged by components.
|
org.restlet.resource |
Client and server resource classes.
|
org.restlet.security |
Classes related to security.
|
Modifier and Type | Method and Description |
---|---|
Role |
Application.getRole(java.lang.String name)
Returns the role associated to the given name.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Role> |
Application.getRoles()
Returns the modifiable list of roles.
|
Modifier and Type | Method and Description |
---|---|
void |
Application.setRoles(java.util.List<Role> roles)
Sets the modifiable list of roles.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Role> |
ClientInfo.getRoles()
Returns the authenticated user roles.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientInfo.setRoles(java.util.List<Role> roles)
Sets the authenticated user roles.
|
Modifier and Type | Method and Description |
---|---|
Role |
ServerResource.getRole(java.lang.String name)
Retrieves an existing role or creates a new one if needed based on its
name.
|
Modifier and Type | Field and Description |
---|---|
static Role |
Role.ALL
Deprecated.
To be removed as it is ambiguous, roles being specific to a
given application.
|
Modifier and Type | Method and Description |
---|---|
static Role |
Role.get(Application application,
java.lang.String name)
Finds an existing role or creates a new one if needed.
|
static Role |
Role.get(Application application,
java.lang.String name,
java.lang.String description)
Finds an existing role or creates a new one if needed.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Role> |
MemoryRealm.findRoles(Application application,
Group userGroup)
Finds the roles mapped to a given user group.
|
java.util.Set<Role> |
MemoryRealm.findRoles(Application application,
java.util.Set<Group> userGroups)
Finds the roles mapped to given user groups.
|
java.util.Set<Role> |
MemoryRealm.findRoles(Application application,
User user)
Finds the roles mapped to a given user, for a specific application.
|
java.util.Set<Role> |
MemoryRealm.findRoles(Group userGroup)
Finds the roles mapped to given user group.
|
java.util.Set<Role> |
MemoryRealm.findRoles(java.util.Set<Group> userGroups)
Finds the roles mapped to given user groups.
|
java.util.Set<Role> |
MemoryRealm.findRoles(User user)
Finds the roles mapped to a given user.
|
java.util.List<Role> |
RoleAuthorizer.getAuthorizedRoles()
Returns the modifiable list of authorized roles.
|
java.util.List<Role> |
Role.getChildRoles()
Returns the modifiable list of child roles.
|
java.util.List<Role> |
RoleAuthorizer.getForbiddenRoles()
Returns the modifiable list of forbidden roles.
|
Modifier and Type | Method and Description |
---|---|
void |
MemoryRealm.map(Group group,
Role role)
Maps a group defined in a component to a role defined in the application.
|
void |
MemoryRealm.map(User user,
Role role)
Maps a user defined in a component to a role defined in the application.
|
void |
MemoryRealm.unmap(Group group,
Role role)
Unmaps a group defined in a component from a role defined in the
application.
|
void |
MemoryRealm.unmap(User user,
Role role)
Unmaps a user defined in a component from a role defined in the
application.
|
Modifier and Type | Method and Description |
---|---|
void |
RoleAuthorizer.setAuthorizedRoles(java.util.List<Role> authorizedRoles)
Sets the modifiable list of authorized roles.
|
void |
Role.setChildRoles(java.util.List<Role> childRoles)
Sets the modifiable list of child roles.
|
void |
RoleAuthorizer.setForbiddenRoles(java.util.List<Role> forbiddenRoles)
Sets the modifiable list of forbidden roles.
|
Copyright © 2005-2024 Restlet.