com.atlassian.confluence.security.delegate
Class GlobalDescriptionPermissionsDelegate

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

public class GlobalDescriptionPermissionsDelegate
extends AbstractPermissionsDelegate


Field Summary
 
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
 
Constructor Summary
GlobalDescriptionPermissionsDelegate()
           
 
Method Summary
 boolean canAdminister(com.atlassian.user.User user, Object target)
           
 boolean canCreate(com.atlassian.user.User user, Object container)
           
 boolean canEdit(com.atlassian.user.User user, Object target)
           
 boolean canExport(com.atlassian.user.User user, Object target)
           
 boolean canRemove(com.atlassian.user.User user, Object target)
           
 boolean canSetPermissions(com.atlassian.user.User user, Object target)
           
 boolean canView(com.atlassian.user.User user, Object target)
          GlobalDescription instances can be viewed by anyone, even by anonymous users and if the anonymous use flag is set to false.
protected  Space getSpaceFrom(Object target)
           
 
Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
hasSpaceLevelPermission, setSpacePermissionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalDescriptionPermissionsDelegate

public GlobalDescriptionPermissionsDelegate()
Method Detail

canAdminister

public boolean canAdminister(com.atlassian.user.User user,
                             Object target)

canCreate

public boolean canCreate(com.atlassian.user.User user,
                         Object container)

canEdit

public boolean canEdit(com.atlassian.user.User user,
                       Object target)

canExport

public boolean canExport(com.atlassian.user.User user,
                         Object target)

canRemove

public boolean canRemove(com.atlassian.user.User user,
                         Object target)

canSetPermissions

public boolean canSetPermissions(com.atlassian.user.User user,
                                 Object target)

canView

public boolean canView(com.atlassian.user.User user,
                       Object target)
GlobalDescription instances can be viewed by anyone, even by anonymous users and if the anonymous use flag is set to false.

Returns:
Always returns true

getSpaceFrom

protected Space getSpaceFrom(Object target)
Specified by:
getSpaceFrom in class AbstractPermissionsDelegate


Copyright © 2003-2013 Atlassian. All Rights Reserved.