public abstract class RestResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected UserService |
userService |
| Constructor and Description |
|---|
RestResource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAnyPermission(String[] permissions,
String instanceId) |
protected void |
checkPermission(String permission) |
protected void |
checkPermission(String permission,
String instanceId) |
protected User |
getCurrentUser() |
protected IndexSet |
getIndexSet(IndexSetRegistry indexSetRegistry,
String indexSetId) |
protected org.apache.shiro.subject.Subject |
getSubject() |
protected javax.ws.rs.core.UriBuilder |
getUriBuilderToSelf() |
protected boolean |
isAnyPermitted(String... permissions) |
protected boolean |
isAnyPermitted(String[] permissions,
String instanceId) |
protected boolean |
isPermitted(String permission) |
protected boolean |
isPermitted(String permission,
String instanceId) |
void |
setPrettyPrint(boolean prettyPrint) |
@Inject protected UserService userService
@QueryParam(value="pretty") public void setPrettyPrint(boolean prettyPrint)
protected org.apache.shiro.subject.Subject getSubject()
protected void checkPermission(String permission)
protected boolean isPermitted(String permission)
protected boolean isAnyPermitted(String... permissions)
protected User getCurrentUser()
protected javax.ws.rs.core.UriBuilder getUriBuilderToSelf()
protected IndexSet getIndexSet(IndexSetRegistry indexSetRegistry, String indexSetId)
Copyright © 2012–2017 Graylog, Inc.. All rights reserved.