com.atlassian.confluence.security.delegate
Class SpaceGroupPermissionsDelegate

java.lang.Object
  extended by com.atlassian.confluence.security.delegate.SpaceGroupPermissionsDelegate
All Implemented Interfaces:
PermissionDelegate

public class SpaceGroupPermissionsDelegate
extends java.lang.Object
implements PermissionDelegate


Constructor Summary
SpaceGroupPermissionsDelegate()
           
 
Method Summary
 boolean canAdminister(com.atlassian.user.User user, java.lang.Object target)
           
 boolean canCreate(com.atlassian.user.User user, java.lang.Object container)
           
 boolean canCreateInTarget(com.atlassian.user.User user, java.lang.Class typeToCreate)
           
 boolean canEdit(com.atlassian.user.User user, java.lang.Object target)
           
 boolean canExport(com.atlassian.user.User user, java.lang.Object target)
           
 boolean canRemove(com.atlassian.user.User user, java.lang.Object target)
           
 boolean canSetPermissions(com.atlassian.user.User user, java.lang.Object target)
           
 boolean canView(com.atlassian.user.User user)
           
 boolean canView(com.atlassian.user.User user, java.lang.Object target)
           
 void setSpaceGroupPermissionManager(SpaceGroupPermissionManager spaceGroupPermissionManager)
           
 void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceGroupPermissionsDelegate

public SpaceGroupPermissionsDelegate()
Method Detail

canView

public boolean canView(com.atlassian.user.User user,
                       java.lang.Object target)
Specified by:
canView in interface PermissionDelegate
Returns:
true if user can view the specified target.

canView

public boolean canView(com.atlassian.user.User user)
Specified by:
canView in interface PermissionDelegate
Returns:
true if the user can view all instances of targets handled by this permission delegate

canEdit

public boolean canEdit(com.atlassian.user.User user,
                       java.lang.Object target)
Specified by:
canEdit in interface PermissionDelegate

canSetPermissions

public boolean canSetPermissions(com.atlassian.user.User user,
                                 java.lang.Object target)
Specified by:
canSetPermissions in interface PermissionDelegate

canRemove

public boolean canRemove(com.atlassian.user.User user,
                         java.lang.Object target)
Specified by:
canRemove in interface PermissionDelegate

canExport

public boolean canExport(com.atlassian.user.User user,
                         java.lang.Object target)
Specified by:
canExport in interface PermissionDelegate

canAdminister

public boolean canAdminister(com.atlassian.user.User user,
                             java.lang.Object target)
Specified by:
canAdminister in interface PermissionDelegate

canCreate

public boolean canCreate(com.atlassian.user.User user,
                         java.lang.Object container)
Specified by:
canCreate in interface PermissionDelegate
Returns:
true if the specified user can create new instances of the target type in the specified container.

canCreateInTarget

public boolean canCreateInTarget(com.atlassian.user.User user,
                                 java.lang.Class typeToCreate)
Specified by:
canCreateInTarget in interface PermissionDelegate
Parameters:
user - the user performing the create
typeToCreate - the class of the entity to create
Returns:
true if the specified user can create new instances of the specified typeToCreate within instances of target handled by this PermissionDelegate.

setSpaceGroupPermissionManager

public void setSpaceGroupPermissionManager(SpaceGroupPermissionManager spaceGroupPermissionManager)

setSpacePermissionManager

public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.