|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.sharing.DefaultShareManager
public class DefaultShareManager
Default implementation of the ShareManager
.
Constructor Summary | |
---|---|
DefaultShareManager(SharePermissionStore store,
ShareTypeFactory shareTypeFactory,
SharePermissionReindexer reindexer)
|
Method Summary | |
---|---|
void |
deletePermissions(SharedEntity entity)
Delete all permissions associated with an entity |
void |
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 passed in
SharedEntity |
boolean |
hasPermission(User user,
SharedEntity entity)
Checks to see if the user has permission to see this SharedEntity |
SharedEntity.SharePermissions |
updateSharePermissions(SharedEntity entity)
Updates the SharePermission associated with an entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultShareManager(SharePermissionStore store, ShareTypeFactory shareTypeFactory, SharePermissionReindexer reindexer)
Method Detail |
---|
public SharedEntity.SharePermissions getSharePermissions(SharedEntity entity)
ShareManager
SharePermission
instances associated with a passed in
SharedEntity
getSharePermissions
in interface ShareManager
entity
- The entity that has permissions associated with it
SharePermission
instances associated with the entity.public void deletePermissions(SharedEntity entity)
ShareManager
deletePermissions
in interface ShareManager
entity
- The entity that will have all its permissions deletedpublic void deleteSharePermissionsLike(SharePermission permission)
ShareManager
SharePermission
's that have the same "shape" as the provided share permission. It uses the type,
param1, and param2 to as the basis for deleting SharePermission's.
deleteSharePermissionsLike
in interface ShareManager
permission
- a 'template' of the type of SharePermission you want to deletepublic SharedEntity.SharePermissions updateSharePermissions(SharedEntity entity)
ShareManager
SharePermission
associated with an entity. Looks after creation and updating of permissions.
updateSharePermissions
in interface ShareManager
entity
- The entity that has permissions associated with it
public boolean hasPermission(User user, SharedEntity entity)
ShareManager
SharedEntity
hasPermission
in interface ShareManager
user
- The user to check permissions forentity
- The entity that has permissions associated with it
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |