|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.sharing.CachingSharePermissionStore
public class CachingSharePermissionStore
Cache is key on entityId:type. This is very broken, but no more broken than and of the other caches.
Constructor Summary | |
---|---|
CachingSharePermissionStore(SharePermissionStore delegateStore,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
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 |
void |
onClearCache(ClearCacheEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
SharedEntity.SharePermissions |
storeSharePermissions(SharedEntity entity)
Associate given entity with passed in Collection SharePermission . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingSharePermissionStore(SharePermissionStore delegateStore, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
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 with
public int deleteSharePermissions(SharedEntity entity)
SharePermissionStore
SharePermission
instances associate with given entity.
deleteSharePermissions
in interface SharePermissionStore
entity
- The entity that SharePermissions are associated with
public 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 SharePermission
deleteSharePermissionsLike
in interface SharePermissionStore
permission
- a 'template' of the type of SharePermission you want to delete
public 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 with
SharePermission
instances that were persisted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |