public abstract class RestResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
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 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 com.fasterxml.jackson.databind.ObjectMapper objectMapper
@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()
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.