com.atlassian.confluence.security.delegate
Class MailPermissionsDelegate

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

public class MailPermissionsDelegate
extends AbstractPermissionsDelegate


Field Summary
 
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
 
Constructor Summary
MailPermissionsDelegate()
           
 
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 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)
           
protected  Space getSpaceFrom(java.lang.Object target)
           
 
Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
canCreateInTarget, hasSpaceLevelPermission, setSpacePermissionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailPermissionsDelegate

public MailPermissionsDelegate()
Method Detail

canView

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

canView

public boolean canView(com.atlassian.user.User user)
Specified by:
canView in interface PermissionDelegate
Overrides:
canView in class AbstractPermissionsDelegate
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)

canSetPermissions

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

canRemove

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

canExport

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

canAdminister

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

canCreate

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

getSpaceFrom

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.