public class EntitySharesService extends Object
| Constructor and Description |
|---|
EntitySharesService(DBGrantService grantService,
EntityDependencyResolver entityDependencyResolver,
EntityDependencyPermissionChecker entityDependencyPermissionChecker,
GRNRegistry grnRegistry,
GranteeService granteeService,
com.google.common.eventbus.EventBus serverEventBus) |
| Modifier and Type | Method and Description |
|---|---|
EntityShareResponse |
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.
|
EntityShareResponse |
updateEntityShares(GRN ownedEntity,
EntityShareRequest request,
User sharingUser)
Share / unshare an entity with one or more grantees.
|
@Inject public EntitySharesService(DBGrantService grantService, EntityDependencyResolver entityDependencyResolver, EntityDependencyPermissionChecker entityDependencyPermissionChecker, GRNRegistry grnRegistry, GranteeService granteeService, com.google.common.eventbus.EventBus serverEventBus)
public EntityShareResponse prepareShare(GRN ownedEntity, EntityShareRequest request, User sharingUser, org.apache.shiro.subject.Subject sharingSubject)
ownedEntity - the entity that should be shared and is owned by the sharing userrequest - sharing requestsharingUser - the sharing usersharingSubject - the sharing subjectpublic EntityShareResponse updateEntityShares(GRN ownedEntity, EntityShareRequest request, User sharingUser)
ownedEntity - the target entity for the updated grantsrequest - the request containing grantees and their capabilitiessharingUser - the user executing the requestCopyright © 2012–2021 Graylog, Inc.. All rights reserved.