|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpacePermissionManager
Method Summary | |
---|---|
void |
createInitialSpacePermissions(Space space)
Creates all the initial permissions (in this list SpacePermission.GENERIC_SPACE_PERMISSIONS ) in the specified space. |
void |
createInitialSpacePermissions(Space space,
com.atlassian.user.User creator)
Deprecated. since 2.7. Use createInitialSpacePermissions(Space) instead. |
void |
fixPermissions()
|
void |
flushCaches()
|
java.util.List |
getAllPermissionsForGroup(java.lang.String group)
|
java.util.List |
getGlobalPermissions()
|
java.util.List |
getGlobalPermissions(java.lang.String permissionType)
|
java.util.Map |
getGroupsForPermissionType(java.lang.String permissionType,
Space space)
|
java.util.Collection |
getGroupsWithPermissions(Space space)
Returns all groups wich have permissions in a space or on a global level. |
java.util.Map |
getUsersForPermissionType(java.lang.String permissionType,
Space space)
|
java.util.Collection |
getUsersWithPermissions(Space space)
Returns a collection of user objects with VIEWSPACE_PERMISSION in the space. |
boolean |
groupHasPermission(java.lang.String permissionType,
Space space,
java.lang.String group)
Checks whether the given group has the given permission If a null space is specified, this method looks up matching global permissions, otherwise space's permissions list is queried to see if the permission matches. |
boolean |
hasPermission(java.util.List permissionTypes,
Space space,
com.atlassian.user.User remoteUser)
Determines if remoteUser has the given permissions in space If remoteUser lacks any of the given permissions, false is returned. |
boolean |
hasPermission(java.lang.String permissionType,
Space space,
com.atlassian.user.User remoteUser)
Determines if remoteUser has the given permission in space |
boolean |
hasPermissionForSpace(com.atlassian.user.User user,
java.util.List permissionTypes,
Space space)
|
boolean |
permissionExists(SpacePermission permission)
Check whether the given SpacePermission exists. |
void |
removeAllPermissions(Space space)
Removes all permissions belonging to space |
void |
removeAllPermissionsForGroup(java.lang.String group)
|
void |
removeAllUserPermissions(java.lang.String username)
|
void |
removePermission(SpacePermission permission)
|
void |
savePermission(SpacePermission permission)
Saves the permission. |
Method Detail |
---|
void savePermission(SpacePermission permission)
void removeAllPermissions(Space space)
space
- The space to remove the permissions forvoid removePermission(SpacePermission permission)
boolean hasPermission(java.lang.String permissionType, Space space, com.atlassian.user.User remoteUser)
permissionType
- The permission type to look upspace
- The space the permission applies to (can be null for global permissions)remoteUser
- The user to look up (can be null for the anonymous user)
boolean hasPermission(java.util.List permissionTypes, Space space, com.atlassian.user.User remoteUser)
permissionTypes
- A List of permission types (see SpacePermission) to checkspace
- The space the permissions apply toremoteUser
- The user to look up
void removeAllUserPermissions(java.lang.String username)
void removeAllPermissionsForGroup(java.lang.String group)
java.util.List getAllPermissionsForGroup(java.lang.String group)
java.util.List getGlobalPermissions()
java.util.List getGlobalPermissions(java.lang.String permissionType)
void fixPermissions()
void flushCaches()
boolean groupHasPermission(java.lang.String permissionType, Space space, java.lang.String group)
group
- The group to look up the permission forspace
- The space the permission applies to (can be null for global permissions)permissionType
- The permission type to look up
void createInitialSpacePermissions(Space space, com.atlassian.user.User creator)
createInitialSpacePermissions(Space)
instead.
void createInitialSpacePermissions(Space space)
SpacePermission.GENERIC_SPACE_PERMISSIONS
) in the specified space.
boolean hasPermissionForSpace(com.atlassian.user.User user, java.util.List permissionTypes, Space space)
java.util.Collection getGroupsWithPermissions(Space space)
space
-
java.util.Map getGroupsForPermissionType(java.lang.String permissionType, Space space)
java.util.Collection getUsersWithPermissions(Space space)
space
-
java.util.Map getUsersForPermissionType(java.lang.String permissionType, Space space)
boolean permissionExists(SpacePermission permission)
permission
- the permission to look for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |