Package org.graylog.security.shares
Class DefaultGranteeService
java.lang.Object
org.graylog.security.shares.DefaultGranteeService
- All Implemented Interfaces:
GranteeService
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ClusterConfigService
protected final GranteeAuthorizer.Factory
protected final GRNRegistry
protected final UserService
-
Constructor Summary
ConstructorDescriptionDefaultGranteeService
(UserService userService, GRNRegistry grnRegistry, GranteeAuthorizer.Factory granteeAuthorizerFactory, ClusterConfigService clusterConfigService) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet<Grantee>
getAvailableGrantees
(User sharingUser) getGranteeAliases
(GRN grantee) com.google.common.collect.ImmutableSet<Grantee>
getModifiableGrantees
(Set<Grantee> availableGrantees, com.google.common.collect.ImmutableSet<EntityShareResponse.ActiveShare> activeShares) getVisibleUsers
(User requestingUser) protected boolean
isAllowedType
(UserAndTeamsConfig config, Grantee grantee)
-
Field Details
-
userService
-
grnRegistry
-
granteeAuthorizerFactory
-
clusterConfigService
-
-
Constructor Details
-
Method Details
-
getAvailableGrantees
- Specified by:
getAvailableGrantees
in interfaceGranteeService
-
getModifiableGrantees
public com.google.common.collect.ImmutableSet<Grantee> getModifiableGrantees(Set<Grantee> availableGrantees, com.google.common.collect.ImmutableSet<EntityShareResponse.ActiveShare> activeShares) - Specified by:
getModifiableGrantees
in interfaceGranteeService
-
getGranteeAliases
- Specified by:
getGranteeAliases
in interfaceGranteeService
-
getVisibleUsers
- Specified by:
getVisibleUsers
in interfaceGranteeService
-