Package org.graylog.security.rest
Class RestResourceWithOwnerCheck
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.security.rest.RestResourceWithOwnerCheck
- All Implemented Interfaces:
PluginRestResource
- Direct Known Subclasses:
EntitySharesResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkOwnership
(GRN entity) protected boolean
protected boolean
isPermitted
(String type, GRN target) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
RestResourceWithOwnerCheck
public RestResourceWithOwnerCheck()
-
-
Method Details
-
checkOwnership
-
isOwner
-
isPermitted
-