|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 |
fixPermissions()
|
void |
flushCaches()
|
List<SpacePermission> |
getAllPermissionsForGroup(String arg0)
|
List<SpacePermission> |
getGlobalPermissions()
|
List<SpacePermission> |
getGlobalPermissions(String arg0)
|
Map |
getGroupsForPermissionType(String arg0,
Space arg1)
|
Collection |
getGroupsWithPermissions(Space arg0)
Returns all groups wich have permissions in a space or on a global level. |
Map |
getUsersForPermissionType(String arg0,
Space arg1)
|
Collection |
getUsersWithPermissions(Space arg0)
Returns a collection of user objects with VIEWSPACE_PERMISSION in the space. |
boolean |
groupHasPermission(String arg0,
Space arg1,
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 |
hasPermission(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(String arg0,
Space arg1,
com.atlassian.user.User arg2)
Determines if remoteUser has the given permission in space |
boolean |
hasPermissionForSpace(com.atlassian.user.User arg0,
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(String arg0)
|
void |
removeAllUserPermissions(String arg0)
|
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)
SpacePermissionManagerSpacePermission.GENERIC_SPACE_PERMISSIONS) in the specified space.
createInitialSpacePermissions in interface SpacePermissionManagerpublic void createDefaultSpacePermissions(Space space)
createDefaultSpacePermissions in interface SpacePermissionManagerpublic void createPrivateSpacePermissions(Space space)
createPrivateSpacePermissions in interface SpacePermissionManagerpublic void fixPermissions()
fixPermissions in interface SpacePermissionManagerpublic void flushCaches()
flushCaches in interface SpacePermissionManagerpublic List<SpacePermission> getAllPermissionsForGroup(String arg0)
getAllPermissionsForGroup in interface SpacePermissionManagerpublic List<SpacePermission> getGlobalPermissions()
getGlobalPermissions in interface SpacePermissionManagerpublic List<SpacePermission> getGlobalPermissions(String arg0)
getGlobalPermissions in interface SpacePermissionManager
public Map getGroupsForPermissionType(String arg0,
Space arg1)
getGroupsForPermissionType in interface SpacePermissionManagerpublic Collection getGroupsWithPermissions(Space arg0)
SpacePermissionManager
getGroupsWithPermissions in interface SpacePermissionManagerarg0 - - space to query, if null global permissions returned
public Map getUsersForPermissionType(String arg0,
Space arg1)
getUsersForPermissionType in interface SpacePermissionManagerpublic Collection getUsersWithPermissions(Space arg0)
SpacePermissionManager
getUsersWithPermissions in interface SpacePermissionManagerarg0 - - space to query, if null global permissions returned
public boolean groupHasPermission(String arg0,
Space arg1,
String arg2)
SpacePermissionManager
groupHasPermission in interface SpacePermissionManagerarg0 - 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(String arg0,
Space arg1,
com.atlassian.user.User arg2)
SpacePermissionManager
hasPermission in interface SpacePermissionManagerarg0 - 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(List arg0,
Space arg1,
com.atlassian.user.User arg2)
SpacePermissionManager
hasPermission in interface SpacePermissionManagerarg0 - A List of permission types (see SpacePermission) to checkarg1 - The space the permissions apply toarg2 - The user to look up
public boolean hasPermissionForSpace(com.atlassian.user.User arg0,
List arg1,
Space arg2)
hasPermissionForSpace in interface SpacePermissionManagerpublic boolean permissionExists(SpacePermission arg0)
SpacePermissionManager
permissionExists in interface SpacePermissionManagerarg0 - the permission to look for.
public void removeAllPermissions(Space arg0)
SpacePermissionManager
removeAllPermissions in interface SpacePermissionManagerarg0 - The space to remove the permissions forpublic void removeAllPermissionsForGroup(String arg0)
removeAllPermissionsForGroup in interface SpacePermissionManagerpublic void removeAllUserPermissions(String arg0)
removeAllUserPermissions in interface SpacePermissionManagerpublic void removePermission(SpacePermission arg0)
removePermission in interface SpacePermissionManagerpublic void savePermission(SpacePermission arg0)
SpacePermissionManager
savePermission in interface SpacePermissionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||