Package | Description |
---|---|
org.restlet |
Core classes of the API.
|
org.restlet.resource |
Client and server resource classes.
|
org.restlet.security |
Classes related to security.
|
org.restlet.util |
Various utility classes.
|
Modifier and Type | Method and Description |
---|---|
Application |
Restlet.getApplication()
Returns the parent application if it exists, or null.
|
static Application |
Application.getCurrent()
This variable is stored internally as a thread local variable and updated
each time a call enters an application.
|
Modifier and Type | Method and Description |
---|---|
static void |
Application.setCurrent(Application application)
Sets the context to associated with the current thread.
|
Modifier and Type | Method and Description |
---|---|
Application |
Resource.getApplication()
Returns the parent application.
|
Modifier and Type | Method and Description |
---|---|
void |
Resource.setApplication(Application application)
Sets the parent application.
|
Modifier and Type | Method and Description |
---|---|
Application |
Role.getApplication()
Returns the parent application.
|
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.
|
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.
|
void |
MemoryRealm.map(User user,
Application application,
java.lang.String roleName)
Maps a user defined in a component to a role defined in the application.
|
void |
Role.setApplication(Application application)
Sets the parent application.
|
void |
MemoryRealm.unmap(Group group,
Application application,
java.lang.String roleName)
Unmaps a group defined in a component from a role defined in the
application.
|
void |
MemoryRealm.unmap(User user,
Application application,
java.lang.String roleName)
Unmaps a user defined in a component from a role defined in the
application.
|
Constructor and Description |
---|
Role(Application application,
java.lang.String name)
Constructor.
|
Role(Application application,
java.lang.String name,
java.lang.String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Application |
WrapperRestlet.getApplication() |
Copyright © 2005-2024 Restlet.