public class DefaultSetSpacePermissionChecker extends Object implements SetSpacePermissionChecker
Constructor and Description |
---|
DefaultSetSpacePermissionChecker() |
Modifier and Type | Method and Description |
---|---|
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) |
public boolean canSetPermission(com.atlassian.user.User user, SpacePermission spacePermission)
canSetPermission
in interface SetSpacePermissionChecker
user
- the user trying to set the permissionspacePermission
- the permission that is being setEntityRuntimeException
- if either the username or groupname declared in the specified SpacePermission
does not exist (or there was an error fetching them)public void setPermissionManager(PermissionManager permissionManager)
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setUserManager(com.atlassian.user.UserManager userManager)
public void setGroupManager(com.atlassian.user.GroupManager groupManager)
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
Copyright © 2003–2016 Atlassian. All rights reserved.