|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.security.ReadOnlySpacePermissionManager
public class ReadOnlySpacePermissionManager
Constructor Summary | |
---|---|
ReadOnlySpacePermissionManager(SpacePermissionManager spacePermissionManager)
|
Method Summary | |
---|---|
void |
createDefaultSpacePermissions(Space space)
|
void |
createInitialSpacePermissions(Space arg0)
Creates all the initial permissions (in this list SpacePermission.GENERIC_SPACE_PERMISSIONS ) in the specified space. |
void |
createPrivateSpacePermissions(Space space)
|
void |
flushCaches()
|
java.util.List<SpacePermission> |
getAllPermissionsForGroup(java.lang.String arg0)
|
java.util.Set<SpacePermission> |
getDefaultGlobalPermissions()
Returns the default global permissions that are created when Confluence is set up. |
java.util.List<SpacePermission> |
getGlobalPermissions()
|
java.util.List<SpacePermission> |
getGlobalPermissions(java.lang.String arg0)
|
java.util.Map |
getGroupsForPermissionType(java.lang.String arg0,
Space arg1)
|
java.util.Collection |
getGroupsWithPermissions(Space arg0)
Returns all groups wich have permissions in a space or on a global level. |
java.util.Map |
getUsersForPermissionType(java.lang.String arg0,
Space arg1)
|
java.util.Collection |
getUsersWithPermissions(Space arg0)
Returns a collection of user objects with VIEWSPACE_PERMISSION in the space. |
boolean |
groupHasPermission(java.lang.String arg0,
Space arg1,
java.lang.String arg2)
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 |
hasAllPermissions(java.util.List<java.lang.String> permissionTypes,
Space space,
com.atlassian.user.User user)
Determines if remoteUser has all of the given permissions in space If remoteUser lacks any of the given permissions, false is returned. |
boolean |
hasPermission(java.util.List arg0,
Space arg1,
com.atlassian.user.User arg2)
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 arg0,
Space arg1,
com.atlassian.user.User arg2)
Determines if remoteUser has the given permission in space Unless you're writing code that is part of the permission checking implementation, or you're changing space permissions, you should be using PermissionManager instead. |
boolean |
hasPermissionForSpace(com.atlassian.user.User arg0,
java.util.List arg1,
Space arg2)
|
boolean |
permissionExists(SpacePermission arg0)
Check whether the given SpacePermission exists. |
void |
removeAllPermissions(Space arg0)
Removes all permissions belonging to space |
void |
removeAllPermissionsForGroup(java.lang.String arg0)
|
void |
removeAllUserPermissions(ConfluenceUser user)
|
void |
removeAllUserPermissions(java.lang.String arg0)
Deprecated. |
void |
removeGlobalPermissionForUser(ConfluenceUser user,
java.lang.String permissionType)
Removes global permission of specified type that is directly associated with a user |
void |
removePermission(SpacePermission arg0)
|
void |
savePermission(SpacePermission arg0)
Saves the permission. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadOnlySpacePermissionManager(SpacePermissionManager spacePermissionManager)
Method Detail |
---|
public void createInitialSpacePermissions(Space arg0)
SpacePermissionManager
SpacePermission.GENERIC_SPACE_PERMISSIONS
) in the specified space.
createInitialSpacePermissions
in interface SpacePermissionManager
public void createDefaultSpacePermissions(Space space)
createDefaultSpacePermissions
in interface SpacePermissionManager
public void createPrivateSpacePermissions(Space space)
createPrivateSpacePermissions
in interface SpacePermissionManager
public void flushCaches()
flushCaches
in interface SpacePermissionManager
public java.util.List<SpacePermission> getAllPermissionsForGroup(java.lang.String arg0)
getAllPermissionsForGroup
in interface SpacePermissionManager
public java.util.List<SpacePermission> getGlobalPermissions()
getGlobalPermissions
in interface SpacePermissionManager
public java.util.List<SpacePermission> getGlobalPermissions(java.lang.String arg0)
getGlobalPermissions
in interface SpacePermissionManager
public java.util.Map getGroupsForPermissionType(java.lang.String arg0, Space arg1)
getGroupsForPermissionType
in interface SpacePermissionManager
public java.util.Collection getGroupsWithPermissions(Space arg0)
SpacePermissionManager
getGroupsWithPermissions
in interface SpacePermissionManager
arg0
- - space to query, if null global permissions returned
public java.util.Map getUsersForPermissionType(java.lang.String arg0, Space arg1)
getUsersForPermissionType
in interface SpacePermissionManager
public java.util.Collection getUsersWithPermissions(Space arg0)
SpacePermissionManager
getUsersWithPermissions
in interface SpacePermissionManager
arg0
- - space to query, if null global permissions returned
public boolean groupHasPermission(java.lang.String arg0, Space arg1, java.lang.String arg2)
SpacePermissionManager
groupHasPermission
in interface SpacePermissionManager
arg0
- The permission type to look uparg1
- The space the permission applies to (can be null for global permissions)arg2
- The group to look up the permission for
public boolean hasPermission(java.lang.String arg0, Space arg1, com.atlassian.user.User arg2)
SpacePermissionManager
PermissionManager
instead.
hasPermission
in interface SpacePermissionManager
arg0
- The permission type to look uparg1
- The space the permission applies to (can be null for global permissions)arg2
- The user to look up (can be null for the anonymous user)
public boolean hasPermission(java.util.List arg0, Space arg1, com.atlassian.user.User arg2)
SpacePermissionManager
PermissionManager
instead.
hasPermission
in interface SpacePermissionManager
arg0
- A List of permission types (see SpacePermission) to checkarg1
- The space the permissions apply toarg2
- The user to look up
public boolean hasAllPermissions(java.util.List<java.lang.String> permissionTypes, Space space, com.atlassian.user.User user)
SpacePermissionManager
PermissionManager
instead.
hasAllPermissions
in interface SpacePermissionManager
permissionTypes
- A List of permission types (see SpacePermission) to checkspace
- The space the permissions apply to
public boolean hasPermissionForSpace(com.atlassian.user.User arg0, java.util.List arg1, Space arg2)
hasPermissionForSpace
in interface SpacePermissionManager
public boolean permissionExists(SpacePermission arg0)
SpacePermissionManager
permissionExists
in interface SpacePermissionManager
arg0
- the permission to look for.
public java.util.Set<SpacePermission> getDefaultGlobalPermissions()
SpacePermissionManager
getDefaultGlobalPermissions
in interface SpacePermissionManager
SpacePermission
s.public void removeAllPermissions(Space arg0)
SpacePermissionManager
removeAllPermissions
in interface SpacePermissionManager
arg0
- The space to remove the permissions forpublic void removeAllPermissionsForGroup(java.lang.String arg0)
removeAllPermissionsForGroup
in interface SpacePermissionManager
public void removeAllUserPermissions(ConfluenceUser user)
removeAllUserPermissions
in interface SpacePermissionManager
@Deprecated public void removeAllUserPermissions(java.lang.String arg0)
removeAllUserPermissions
in interface SpacePermissionManager
public void removeGlobalPermissionForUser(ConfluenceUser user, java.lang.String permissionType)
SpacePermissionManager
removeGlobalPermissionForUser
in interface SpacePermissionManager
user
- the user to look uppermissionType
- the permission type to removepublic void removePermission(SpacePermission arg0)
removePermission
in interface SpacePermissionManager
public void savePermission(SpacePermission arg0)
SpacePermissionSaver
savePermission
in interface SpacePermissionSaver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |