public interface RelationPermissionService extends de.alpharogroup.service.domain.DomainService<Integer,RelationPermission>
RelationPermissionService.| Modifier and Type | Method and Description |
|---|---|
void |
addPermission(User provider,
User subscriber,
Permission permission)
Adds the given permission for the given subscriber provided from the provider.
|
List<RelationPermission> |
find(User provider,
User subscriber)
Find a list of RelationPermissions that the given provider granted to the subscriber.
|
List<RelationPermission> |
find(User provider,
User subscriber,
Permission permission)
Find a list of RelationPermissions from the given provider and to the subscriber and the
given permission if the provider granted this permission to the subscriber.
|
RelationPermission |
findRelationPermissions(User provider,
User subscriber)
Find all given permissions that the given provider granted to the subscriber.
|
RelationPermission |
findRelationPermissions(User provider,
User subscriber,
Permission permission)
Finds the RelationPermissions object from the given permissions the given provider and the
subscriber.
|
void |
removeAllPermissions(User provider,
User subscriber)
Removes all permissions that are given for both users.
|
void |
removePermission(User provider,
User subscriber,
Permission permission)
Removes the given permission for the given subscriber provided from the provider.
|
void addPermission(User provider, User subscriber, Permission permission)
provider - the providersubscriber - the subscriberpermission - the permissionList<RelationPermission> find(User provider, User subscriber)
provider - the providersubscriber - the subscriberList<RelationPermission> find(User provider, User subscriber, Permission permission)
provider - the providersubscriber - the subscriberpermission - the permissionRelationPermission findRelationPermissions(User provider, User subscriber)
provider - the providersubscriber - the subscriberRelationPermission findRelationPermissions(User provider, User subscriber, Permission permission)
provider - the providersubscriber - the subscriberpermission - the permissionvoid removeAllPermissions(User provider, User subscriber)
provider - the providersubscriber - the subscribervoid removePermission(User provider, User subscriber, Permission permission)
provider - the providersubscriber - the subscriberpermission - the permissionCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.