com.atlassian.confluence.security
Class DefaultSetSpacePermissionChecker

java.lang.Object
  extended by com.atlassian.confluence.security.DefaultSetSpacePermissionChecker
All Implemented Interfaces:
SetSpacePermissionChecker

public class DefaultSetSpacePermissionChecker
extends Object
implements SetSpacePermissionChecker


Constructor Summary
DefaultSetSpacePermissionChecker()
           
 
Method Summary
 boolean canSetPermission(com.atlassian.user.User user, SpacePermission spacePermission)
          Checks whether the specified user can set the specified space permission.
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setGroupManager(com.atlassian.user.GroupManager groupManager)
           
 void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
           
 void setPermissionManager(PermissionManager permissionManager)
           
 void setUserManager(com.atlassian.user.UserManager userManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSetSpacePermissionChecker

public DefaultSetSpacePermissionChecker()
Method Detail

canSetPermission

public boolean canSetPermission(com.atlassian.user.User user,
                                SpacePermission spacePermission)
Checks whether the specified user can set the specified space permission. Setting includes adding or removing the permission. This always returns true before the application is set up.

Specified by:
canSetPermission in interface SetSpacePermissionChecker
Parameters:
user - the user trying to set the permission
spacePermission - the permission that is being set
Returns:
true if the specified user has permissions to set the specified space permission, false otherwise.
Throws:
EntityRuntimeException - if either the username or groupname declared in the specified SpacePermission does not exist (or there was an error fetching them)

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

setUserManager

public void setUserManager(com.atlassian.user.UserManager userManager)

setGroupManager

public void setGroupManager(com.atlassian.user.GroupManager groupManager)

setI18NBeanFactory

public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)


Copyright © 2003–2015 Atlassian. All rights reserved.