Uses of Class
org.apache.druid.server.security.ResourceAction
-
Packages that use ResourceAction Package Description org.apache.druid.client.indexing org.apache.druid.indexing.overlord.supervisor org.apache.druid.server.security -
-
Uses of ResourceAction in org.apache.druid.client.indexing
Methods in org.apache.druid.client.indexing that return types with arguments of type ResourceAction Modifier and Type Method Description default Set<ResourceAction>SamplerSpec. getInputSourceResources() -
Uses of ResourceAction in org.apache.druid.indexing.overlord.supervisor
Methods in org.apache.druid.indexing.overlord.supervisor that return types with arguments of type ResourceAction Modifier and Type Method Description Set<ResourceAction>NoopSupervisorSpec. getInputSourceResources()default Set<ResourceAction>SupervisorSpec. getInputSourceResources() -
Uses of ResourceAction in org.apache.druid.server.security
Fields in org.apache.druid.server.security with type parameters of type ResourceAction Modifier and Type Field Description static com.google.common.base.Function<String,ResourceAction>AuthorizationUtils. DATASOURCE_READ_RA_GENERATORFunction for the common pattern of generating a resource-action for reading from a datasource, using the datasource name.static com.google.common.base.Function<String,ResourceAction>AuthorizationUtils. DATASOURCE_WRITE_RA_GENERATORFunction for the common pattern of generating a resource-action for reading from a datasource, using the datasource name.static com.google.common.base.Function<Resource,ResourceAction>AuthorizationUtils. RESOURCE_READ_RA_GENERATORFunction for the pattern of generating aResourceActionfor reading from a givenResourcestatic com.google.common.base.Function<String,ResourceAction>AuthorizationUtils. VIEW_READ_RA_GENERATORFunction for the common pattern of generating a resource-action for reading from a view, using the view name.Methods in org.apache.druid.server.security that return types with arguments of type ResourceAction Modifier and Type Method Description static List<ResourceAction>AuthorizationUtils. makeSuperUserPermissions()This method constructs a 'superuser' set of permissions composed ofAction.READandAction.WRITEpermissions for all knownResourceType.knownTypes()for anyAuthorizerimplementation which is built on pattern matching with a regex.Methods in org.apache.druid.server.security with parameters of type ResourceAction Modifier and Type Method Description static AccessAuthorizationUtils. authorizeResourceAction(javax.servlet.http.HttpServletRequest request, ResourceAction resourceAction, AuthorizerMapper authorizerMapper)Check a resource-action using the authorization fields from the request.Method parameters in org.apache.druid.server.security with type arguments of type ResourceAction Modifier and Type Method Description static AccessAuthorizationUtils. authorizeAllResourceActions(javax.servlet.http.HttpServletRequest request, Iterable<ResourceAction> resourceActions, AuthorizerMapper authorizerMapper)Check a list of resource-actions to be performed as a result of an HTTP request.static AccessAuthorizationUtils. authorizeAllResourceActions(AuthenticationResult authenticationResult, Iterable<ResourceAction> resourceActions, AuthorizerMapper authorizerMapper)Check a list of resource-actions to be performed by the identity represented by authenticationResult.static <ResType> Iterable<ResType>AuthorizationUtils. filterAuthorizedResources(javax.servlet.http.HttpServletRequest request, Iterable<ResType> resources, com.google.common.base.Function<? super ResType,Iterable<ResourceAction>> resourceActionGenerator, AuthorizerMapper authorizerMapper)Filter a collection of resources by applying the resourceActionGenerator to each resource, return an iterable containing the filtered resources.static <KeyType,ResType>
Map<KeyType,List<ResType>>AuthorizationUtils. filterAuthorizedResources(javax.servlet.http.HttpServletRequest request, Map<KeyType,List<ResType>> unfilteredResources, com.google.common.base.Function<? super ResType,Iterable<ResourceAction>> resourceActionGenerator, AuthorizerMapper authorizerMapper)Given a map of resource lists, filter each resources list by applying the resource action generator to each item in each resource list.static <ResType> Iterable<ResType>AuthorizationUtils. filterAuthorizedResources(AuthenticationResult authenticationResult, Iterable<ResType> resources, com.google.common.base.Function<? super ResType,Iterable<ResourceAction>> resourceActionGenerator, AuthorizerMapper authorizerMapper)Filter a collection of resources by applying the resourceActionGenerator to each resource, return an iterable containing the filtered resources.
-