|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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(com.atlassian.crowd.embedded.api.User user,
SharedEntity entity)
Deprecated. |
boolean |
isSharedWith(com.atlassian.crowd.embedded.api.User user,
SharedEntity sharedEntity)
Whether this entity has been shared with the specified user. |
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)
ShareManagerSharePermission instances associated with a passed in
SharedEntity
getSharePermissions in interface ShareManagerentity - The entity that has permissions associated with it
SharePermission instances associated with the entity.public void deletePermissions(SharedEntity entity)
ShareManager
deletePermissions in interface ShareManagerentity - The entity that will have all its permissions deletedpublic void deleteSharePermissionsLike(SharePermission permission)
ShareManagerSharePermission'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 ShareManagerpermission - a 'template' of the type of SharePermission you want to deletepublic SharedEntity.SharePermissions updateSharePermissions(SharedEntity entity)
ShareManagerSharePermission associated with an entity. Looks after creation and updating of permissions.
updateSharePermissions in interface ShareManagerentity - The entity that has permissions associated with it
@Deprecated
public boolean hasPermission(com.atlassian.crowd.embedded.api.User user,
SharedEntity entity)
ShareManagerSharedEntity
hasPermission in interface ShareManageruser - The user to check permissions forentity - The entity that has permissions associated with it
public boolean isSharedWith(com.atlassian.crowd.embedded.api.User user,
SharedEntity sharedEntity)
ShareManager
isSharedWith in interface ShareManageruser - The user to check.sharedEntity - The entity to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||