com.atlassian.confluence.security.delegate
Class AttachmentPermissionsDelegate

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

public class AttachmentPermissionsDelegate
extends AbstractPermissionsDelegate


Field Summary
 
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
 
Constructor Summary
AttachmentPermissionsDelegate()
           
 
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)
           
protected  Space getSpaceFrom(Object target)
           
 SpaceManager getSpaceManager()
           
 void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
           
 void setContentTypeManager(ContentTypeManager contentTypeManager)
           
 void setPermissionManagerTarget(DefaultPermissionManager permissionManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 
Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
canCreateInTarget, canView, hasSpaceLevelPermission, setSpacePermissionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentPermissionsDelegate

public AttachmentPermissionsDelegate()
Method Detail

canView

public boolean canView(com.atlassian.user.User user,
                       Object target)
Returns:
true if user can view the specified target.

canEdit

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

canSetPermissions

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

canRemove

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

canExport

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

canAdminister

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

canCreate

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

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setPermissionManagerTarget

public void setPermissionManagerTarget(DefaultPermissionManager permissionManager)

setContentPermissionManager

public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)

getSpaceFrom

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

getSpaceManager

public SpaceManager getSpaceManager()

setContentTypeManager

public void setContentTypeManager(ContentTypeManager contentTypeManager)


Copyright © 2003–2015 Atlassian. All rights reserved.