public interface SharePermissionStore
Modifier and Type | Method and Description |
---|---|
int |
deleteSharePermissions(SharedEntity entity)
Delete all
SharePermission instances associate with given entity. |
int |
deleteSharePermissionsLike(SharePermission permission)
Deletes
SharePermission 's that have the same "shape" as the provided share permission. |
SharedEntity.SharePermissions |
getSharePermissions(SharedEntity entity)
Retrieve all
SharePermission instances associated with a given
SharedEntity |
SharedEntity.SharePermissions |
storeSharePermissions(SharedEntity entity)
Associate given entity with passed in Collection
SharePermission . |
SharedEntity.SharePermissions getSharePermissions(SharedEntity entity)
SharePermission
instances associated with a given
SharedEntity
entity
- The entity that SharePermissions are associated withSharedEntity.SharePermissions storeSharePermissions(SharedEntity entity)
SharePermission
. Store is responsible for updating and
creating current shares associated with entity.entity
- The entity to associate SharePermissions withSharePermission
instances that were persistedint deleteSharePermissions(SharedEntity entity)
SharePermission
instances associate with given entity.entity
- The entity that SharePermissions are associated withint deleteSharePermissionsLike(SharePermission permission)
SharePermission
's that have the same "shape" as the provided share permission. It uses the type,
param1, amd param2 to as the basis for deleting SharePermissionpermission
- a 'template' of the type of SharePermission you want to deleteIllegalArgumentException
- if you provide a null SharePermission or one that does not have a type and (param1 or param2).Copyright © 2002-2017 Atlassian. All Rights Reserved.