Package org.graylog.security.rest
Class EntitySharesResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.security.rest.RestResourceWithOwnerCheck
org.graylog.security.rest.EntitySharesResource
- All Implemented Interfaces:
PluginRestResource
@Path("/authz/shares")
@Consumes("application/json")
@Produces("application/json")
public class EntitySharesResource
extends RestResourceWithOwnerCheck
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration
-
Constructor Summary
ConstructorDescriptionEntitySharesResource
(GRNRegistry grnRegistry, DBGrantService grantService, UserService userService, GranteeSharesService granteeSharesService, EntitySharesService entitySharesService) -
Method Summary
Modifier and TypeMethodDescriptionget
(PaginationParameters paginationParameters, @NotBlank String userId, String capabilityFilter, String entityTypeFilter) prepareShare
(@NotBlank String entityGRN, @NotNull @Valid EntityShareRequest request) javax.ws.rs.core.Response
updateEntityShares
(@NotBlank String entityGRN, @NotNull @Valid EntityShareRequest request) Methods inherited from class org.graylog.security.rest.RestResourceWithOwnerCheck
checkOwnership, isOwner, isPermitted
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
Method Details
-
get
@GET @Path("user/{userId}") public PaginatedResponse<EntityDescriptor> get(@BeanParam PaginationParameters paginationParameters, @PathParam("userId") @NotBlank @NotBlank String userId, @QueryParam("capability") @DefaultValue("") String capabilityFilter, @QueryParam("entity_type") @DefaultValue("") String entityTypeFilter)
-