public class OfBizSharePermissionStore extends Object implements SharePermissionStore
Modifier and Type | Class and Description |
---|---|
static class |
OfBizSharePermissionStore.Column |
Constructor and Description |
---|
OfBizSharePermissionStore(OfBizDelegator delegator) |
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 . |
public OfBizSharePermissionStore(OfBizDelegator delegator)
public SharedEntity.SharePermissions getSharePermissions(SharedEntity entity)
SharePermissionStore
SharePermission
instances associated with a given
SharedEntity
getSharePermissions
in interface SharePermissionStore
entity
- The entity that SharePermissions are associated withpublic int deleteSharePermissions(SharedEntity entity)
SharePermissionStore
SharePermission
instances associate with given entity.deleteSharePermissions
in interface SharePermissionStore
entity
- The entity that SharePermissions are associated withpublic int deleteSharePermissionsLike(SharePermission permission)
SharePermissionStore
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 SharePermissiondeleteSharePermissionsLike
in interface SharePermissionStore
permission
- a 'template' of the type of SharePermission you want to deletepublic SharedEntity.SharePermissions storeSharePermissions(SharedEntity entity)
SharePermissionStore
SharePermission
. Store is responsible for updating and
creating current shares associated with entity.storeSharePermissions
in interface SharePermissionStore
entity
- The entity to associate SharePermissions withSharePermission
instances that were persistedCopyright © 2002-2019 Atlassian. All Rights Reserved.