com.atlassian.confluence.security
Class AbstractSpacePermissionManager

java.lang.Object
  extended by com.atlassian.confluence.security.AbstractSpacePermissionManager
All Implemented Interfaces:
SpacePermissionManager, SpacePermissionSaver
Direct Known Subclasses:
DefaultSpacePermissionManager

public abstract class AbstractSpacePermissionManager
extends java.lang.Object
implements SpacePermissionManager


Field Summary
protected  SpacePermissionDao spacePermissionDao
           
 
Constructor Summary
protected AbstractSpacePermissionManager(SpacePermissionDao spacePermissionDao)
           
 
Method Summary
 java.util.Set<SpacePermission> getDefaultGlobalPermissions()
          Returns the default global permissions that are created when Confluence is set up.
protected  UserAccessor getUserAccessor()
           
 boolean hasPermissionForSpace(com.atlassian.user.User user, java.util.List permissionTypes, Space space)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.security.SpacePermissionManager
createDefaultSpacePermissions, createInitialSpacePermissions, createPrivateSpacePermissions, flushCaches, getAllPermissionsForGroup, getGlobalPermissions, getGlobalPermissions, getGroupsForPermissionType, getGroupsWithPermissions, getUsersForPermissionType, getUsersWithPermissions, groupHasPermission, hasAllPermissions, hasPermission, hasPermission, permissionExists, removeAllPermissions, removeAllPermissionsForGroup, removeAllUserPermissions, removeAllUserPermissions, removeGlobalPermissionForUser, removePermission
 
Methods inherited from interface com.atlassian.confluence.security.SpacePermissionSaver
savePermission
 

Field Detail

spacePermissionDao

protected final SpacePermissionDao spacePermissionDao
Constructor Detail

AbstractSpacePermissionManager

protected AbstractSpacePermissionManager(SpacePermissionDao spacePermissionDao)
Method Detail

hasPermissionForSpace

public boolean hasPermissionForSpace(com.atlassian.user.User user,
                                     java.util.List permissionTypes,
                                     Space space)
Specified by:
hasPermissionForSpace in interface SpacePermissionManager

getDefaultGlobalPermissions

public java.util.Set<SpacePermission> getDefaultGlobalPermissions()
Description copied from interface: SpacePermissionManager
Returns the default global permissions that are created when Confluence is set up. These will exist in a newly set up system but may be removed afterwards. Note that the returned objects are freshly created and therefore do not have IDs or other persistence data. By default, confluence-administrators group has admin access, the default confluence users group can view the system and anonymous access is disabled.

Specified by:
getDefaultGlobalPermissions in interface SpacePermissionManager
Returns:
a collection of SpacePermissions.

getUserAccessor

protected UserAccessor getUserAccessor()


Copyright © 2003-2014 Atlassian. All Rights Reserved.