| Modifier and Type | Field and Description |
|---|---|
static GRN |
GRNRegistry.GLOBAL_USER_GRN |
| Modifier and Type | Method and Description |
|---|---|
abstract GRN |
GRN.Builder.build() |
GRN |
GRNDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
abstract GRN |
GRNDescriptor.grn() |
GRN |
GRNRegistry.newGRN(GRNType type,
String entity)
Returns the
GRN for the given type and entity. |
GRN |
GRNRegistry.newGRN(String type,
String entity)
Returns the
GRN for the given type and entity. |
GRN |
GRNRegistry.ofEventDefinition(EventDefinition eventDefinition) |
GRN |
GRNRegistry.ofUser(User user) |
GRN |
GRNRegistry.parse(String grnString)
Parses the given GRN string and returns a
GRN. |
GRN |
GRNType.toGRN(String entity) |
| Modifier and Type | Method and Description |
|---|---|
static GRNDescriptor |
GRNDescriptor.create(GRN grn,
String title) |
static GRNDescriptor |
GRNDescriptor.empty(GRN grn) |
GRNDescriptor |
GRNDescriptorProvider.get(GRN grn)
Returns the
GRNDescriptor for the given GRN. |
GRNDescriptor |
GRNDescriptorService.getDescriptor(GRN grn)
Returns the descriptor instance for the given GRN.
|
abstract GRNDescriptor.Builder |
GRNDescriptor.Builder.grn(GRN grn) |
boolean |
GRNRegistry.isUser(GRN grn) |
| Modifier and Type | Method and Description |
|---|---|
Set<GRNDescriptor> |
GRNDescriptorService.getDescriptors(Collection<GRN> grns)
Returns descriptors for the given GRN collection.
|
| Modifier and Type | Method and Description |
|---|---|
GRNDescriptor |
FallbackGRNDescriptorProvider.get(GRN grn) |
GRNDescriptor |
ViewGRNDescriptorProvider.get(GRN grn) |
GRNDescriptor |
EventNotificationGRNDescriptorProvider.get(GRN grn) |
GRNDescriptor |
StreamGRNDescriptorProvider.get(GRN grn) |
GRNDescriptor |
UserGRNDescriptorProvider.get(GRN grn) |
GRNDescriptor |
EventDefinitionGRNDescriptorProvider.get(GRN grn) |
| Modifier and Type | Method and Description |
|---|---|
abstract GRN |
GrantDTO.grantee() |
abstract @NotNull GRN |
GrantDTO.target() |
| Modifier and Type | Method and Description |
|---|---|
Map<GRN,Set<GRN>> |
DBGrantService.getOwnersForTargets(Collection<GRN> targets) |
Map<GRN,Set<GRN>> |
DBGrantService.getOwnersForTargets(Collection<GRN> targets) |
protected Set<GRN> |
DefaultPermissionAndRoleResolver.resolveGrantees(GRN principal) |
protected Set<GRN> |
DefaultPermissionAndRoleResolver.resolveTargets(GRN target) |
| Modifier and Type | Method and Description |
|---|---|
GranteeAuthorizer |
GranteeAuthorizer.Factory.create(GRN grantee) |
GrantDTO |
DBGrantService.create(GRN grantee,
Capability capability,
GRN target,
String creatorUsername) |
int |
DBGrantService.deleteForGrantee(GRN grantee) |
int |
DBGrantService.deleteForTarget(GRN target) |
GrantDTO |
DBGrantService.ensure(GRN grantee,
Capability capability,
GRN target,
String creatorUsername)
Ensure that a grant with the requested or a higher capability exists.
|
com.google.common.collect.ImmutableSet<GrantDTO> |
DBGrantService.getForGrantee(GRN grantee) |
com.google.common.collect.ImmutableSet<GrantDTO> |
DBGrantService.getForGranteeWithCapability(GRN grantee,
Capability capability) |
List<GrantDTO> |
DBGrantService.getForTarget(GRN target) |
List<GrantDTO> |
DBGrantService.getForTargetAndGrantee(GRN target,
GRN grantee) |
List<GrantDTO> |
DBGrantService.getForTargetAndGrantees(GRN target,
Set<GRN> grantees) |
List<GrantDTO> |
DBGrantService.getForTargetExcludingGrantee(GRN target,
GRN grantee) |
abstract GrantDTO.Builder |
GrantDTO.Builder.grantee(GRN grantee) |
boolean |
DBGrantService.hasGrantFor(GRN grantee,
Capability capability,
GRN target) |
protected boolean |
UserContext.isOwner(GRN entity) |
boolean |
UserContext.isPermitted(String permission,
GRN target) |
boolean |
GranteeAuthorizer.isPermitted(String permission,
GRN target) |
static GrantDTO |
GrantDTO.of(GRN grantee,
Capability capability,
GRN target) |
protected Set<GRN> |
DefaultPermissionAndRoleResolver.resolveGrantees(GRN principal) |
Set<org.apache.shiro.authz.Permission> |
PermissionAndRoleResolver.resolvePermissionsForPrincipal(GRN principal)
Returns resolved permissions for the given principal.
|
Set<org.apache.shiro.authz.Permission> |
DefaultPermissionAndRoleResolver.resolvePermissionsForPrincipal(GRN principal) |
Set<String> |
PermissionAndRoleResolver.resolveRolesForPrincipal(GRN principal)
Returns roles for the given principal.
|
Set<String> |
DefaultPermissionAndRoleResolver.resolveRolesForPrincipal(GRN principal) |
protected Set<GRN> |
DefaultPermissionAndRoleResolver.resolveTargets(GRN target) |
abstract GrantDTO.Builder |
GrantDTO.Builder.target(GRN target) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<GrantDTO> |
DBGrantService.getForGranteesOrGlobal(Set<GRN> grantees) |
com.google.common.collect.ImmutableSet<GrantDTO> |
DBGrantService.getForGranteesOrGlobalWithCapability(Set<GRN> grantees,
Capability capability) |
List<GrantDTO> |
DBGrantService.getForTargetAndGrantees(GRN target,
Set<GRN> grantees) |
Map<GRN,Set<GRN>> |
DBGrantService.getOwnersForTargets(Collection<GRN> targets) |
| Constructor and Description |
|---|
GranteeAuthorizer(org.apache.shiro.mgt.DefaultSecurityManager securityManager,
GRN grantee) |
| Modifier and Type | Method and Description |
|---|---|
abstract GRN |
EntityDescriptor.id() |
abstract GRN |
EntityDescriptor.Owner.id() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMultimap<GRN,EntityDescriptor> |
EntityDependencyPermissionChecker.check(GRN sharingUser,
com.google.common.collect.ImmutableSet<EntityDescriptor> dependencies,
Set<GRN> selectedGrantees)
Runs permission checks for the given dependencies for every selected grantee and returns the entities that
grantees cannot access.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMultimap<GRN,EntityDescriptor> |
EntityDependencyPermissionChecker.check(GRN sharingUser,
com.google.common.collect.ImmutableSet<EntityDescriptor> dependencies,
Set<GRN> selectedGrantees)
Runs permission checks for the given dependencies for every selected grantee and returns the entities that
grantees cannot access.
|
static EntityDescriptor.Owner |
EntityDescriptor.Owner.create(GRN id,
String title) |
static EntityDescriptor |
EntityDescriptor.create(GRN id,
String title,
Set<EntityDescriptor.Owner> owners) |
abstract EntityDescriptor.Builder |
EntityDescriptor.Builder.id(GRN id) |
com.google.common.collect.ImmutableSet<EntityDescriptor> |
EntityDependencyResolver.resolve(GRN entity) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMultimap<GRN,EntityDescriptor> |
EntityDependencyPermissionChecker.check(GRN sharingUser,
com.google.common.collect.ImmutableSet<EntityDescriptor> dependencies,
Set<GRN> selectedGrantees)
Runs permission checks for the given dependencies for every selected grantee and returns the entities that
grantees cannot access.
|
| Modifier and Type | Method and Description |
|---|---|
abstract GRN |
EntitySharesUpdateEvent.entity() |
abstract GRN |
EntitySharesUpdateEvent.Share.grantee() |
| Modifier and Type | Method and Description |
|---|---|
EntitySharesUpdateEvent.Builder |
EntitySharesUpdateEvent.Builder.addCreates(GRN grantee,
Capability capability) |
EntitySharesUpdateEvent.Builder |
EntitySharesUpdateEvent.Builder.addDeletes(GRN grantee,
Capability capability) |
EntitySharesUpdateEvent.Builder |
EntitySharesUpdateEvent.Builder.addUpdates(GRN grantee,
Capability capability,
Capability formerCapability) |
static EntitySharesUpdateEvent.Share |
EntitySharesUpdateEvent.Share.create(GRN grantee,
Capability capability,
Capability formerCapability) |
static EntitySharesUpdateEvent |
EntitySharesUpdateEvent.create(User user,
GRN entity,
List<EntitySharesUpdateEvent.Share> creates,
List<EntitySharesUpdateEvent.Share> deletes,
List<EntitySharesUpdateEvent.Share> updates) |
abstract EntitySharesUpdateEvent.Builder |
EntitySharesUpdateEvent.Builder.entity(GRN entity) |
| Modifier and Type | Method and Description |
|---|---|
abstract GRN |
GRNPermission.target() |
| Modifier and Type | Method and Description |
|---|---|
static GRNPermission |
GRNPermission.create(String type,
GRN target) |
| Modifier and Type | Method and Description |
|---|---|
abstract GRN |
GrantsOverviewResource.GrantSummary.grantee() |
abstract GRN |
GrantsOverviewResource.GrantSummary.target() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
RestResourceWithOwnerCheck.checkOwnership(GRN entity) |
abstract GrantsOverviewResource.GrantSummary.Builder |
GrantsOverviewResource.GrantSummary.Builder.grantee(GRN grantee) |
protected boolean |
RestResourceWithOwnerCheck.isOwner(GRN entity) |
protected boolean |
RestResourceWithOwnerCheck.isPermitted(String type,
GRN target) |
abstract GrantsOverviewResource.GrantSummary.Builder |
GrantsOverviewResource.GrantSummary.Builder.target(GRN target) |
| Modifier and Type | Method and Description |
|---|---|
abstract GRN |
EntityShareResponse.ActiveShare.grantee() |
abstract GRN |
EntityShareResponse.AvailableGrantee.grn() |
abstract GRN |
EntityShareResponse.sharingUser() |
| Modifier and Type | Method and Description |
|---|---|
abstract Map<GRN,Capability> |
GranteeSharesService.SharesResponse.capabilities() |
Set<GRN> |
GranteeService.getGranteeAliases(GRN grantee) |
Set<GRN> |
DefaultGranteeService.getGranteeAliases(GRN grantee) |
Set<GRN> |
EntityShareRequest.grantees() |
abstract com.google.common.collect.ImmutableMap<GRN,Collection<EntityDescriptor>> |
EntityShareResponse.missingPermissionsOnDependencies() |
abstract Optional<com.google.common.collect.ImmutableMap<GRN,Capability>> |
EntityShareRequest.selectedGranteeCapabilities() |
abstract com.google.common.collect.ImmutableMap<GRN,Capability> |
EntityShareResponse.selectedGranteeCapabilities() |
| Modifier and Type | Method and Description |
|---|---|
static EntityShareResponse.AvailableGrantee |
EntityShareResponse.AvailableGrantee.create(GRN grn,
String type,
String title) |
static EntityShareResponse.ActiveShare |
EntityShareResponse.ActiveShare.create(String grant,
GRN grantee,
Capability capability) |
Set<GRN> |
GranteeService.getGranteeAliases(GRN grantee) |
Set<GRN> |
DefaultGranteeService.getGranteeAliases(GRN grantee) |
GranteeSharesService.SharesResponse |
GranteeSharesService.getPaginatedSharesFor(GRN grantee,
PaginationParameters paginationParameters,
String capabilityFilterString,
String entityTypeFilterString) |
EntityShareResponse |
EntitySharesService.prepareShare(GRN ownedEntity,
EntityShareRequest request,
User sharingUser,
org.apache.shiro.subject.Subject sharingSubject)
Prepares the sharing operation by running some checks and returning available capabilities and grantees
as well as active shares and information about missing dependencies.
|
abstract EntityShareResponse.Builder |
EntityShareResponse.Builder.sharingUser(GRN sharingUser) |
EntityShareResponse |
EntitySharesService.updateEntityShares(GRN ownedEntity,
EntityShareRequest request,
User sharingUser)
Share / unshare an entity with one or more grantees.
|
| Modifier and Type | Method and Description |
|---|---|
static EntityShareRequest |
EntityShareRequest.create(Map<GRN,Capability> selectedGranteeCapabilities) |
static GranteeSharesService.SharesResponse |
GranteeSharesService.SharesResponse.create(PaginatedList<EntityDescriptor> paginatedEntities,
Map<GRN,Capability> capabilities) |
abstract EntityShareResponse.Builder |
EntityShareResponse.Builder.missingPermissionsOnDependencies(Map<GRN,Collection<EntityDescriptor>> missingDependencies) |
abstract EntityShareResponse.Builder |
EntityShareResponse.Builder.selectedGranteeCapabilities(Map<GRN,Capability> selectedGranteeCapabilities) |
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.