com.atlassian.confluence.security
Class PermissionHelper

java.lang.Object
  extended by com.atlassian.confluence.security.PermissionHelper

public class PermissionHelper
extends Object

Provides methods to allow the PermissionManager to be more easily called from within Velocity templates


Constructor Summary
PermissionHelper(PermissionManager permissionManager, PersonalInformationManager personalInformationManager, PageManager pageManager)
           
 
Method Summary
 boolean canAdminister(com.atlassian.user.User user, Object object)
           
 boolean canAttachFile(com.atlassian.user.User user, Object object)
           
 boolean canComment(com.atlassian.user.User user, Object object)
           
 boolean canCreateBlogPost(com.atlassian.user.User user, Space space)
           
 boolean canCreatePage(com.atlassian.user.User user, Space space)
           
 boolean canCreatePersonalSpace(com.atlassian.user.User user)
           
 boolean canCreateSpace(com.atlassian.user.User user)
           
 boolean canEdit(com.atlassian.user.User user, Object object)
           
 boolean canExport(com.atlassian.user.User user, Object object)
           
 boolean canRemove(com.atlassian.user.User user, Object object)
           
 boolean canSetPermissions(com.atlassian.user.User user, Object object)
           
 boolean canView(com.atlassian.user.User user, Object object)
           
 boolean canViewPage(com.atlassian.user.User user, long id)
           
 boolean canViewPage(com.atlassian.user.User user, String spaceKey, String pageTitle)
           
 boolean isConfluenceAdministrator(com.atlassian.user.User user)
           
 boolean isGlobalAnonymousAccessEnabled()
           
 boolean isSystemAdministrator(com.atlassian.user.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionHelper

public PermissionHelper(PermissionManager permissionManager,
                        PersonalInformationManager personalInformationManager,
                        PageManager pageManager)
Method Detail

canEdit

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

canView

public boolean canView(com.atlassian.user.User user,
                       Object object)

canRemove

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

canExport

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

canComment

public boolean canComment(com.atlassian.user.User user,
                          Object object)

canAttachFile

public boolean canAttachFile(com.atlassian.user.User user,
                             Object object)

isConfluenceAdministrator

public boolean isConfluenceAdministrator(com.atlassian.user.User user)

isSystemAdministrator

public boolean isSystemAdministrator(com.atlassian.user.User user)

canCreatePage

public boolean canCreatePage(com.atlassian.user.User user,
                             Space space)

canCreateBlogPost

public boolean canCreateBlogPost(com.atlassian.user.User user,
                                 Space space)

canAdminister

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

canSetPermissions

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

canCreateSpace

public boolean canCreateSpace(com.atlassian.user.User user)

canViewPage

public boolean canViewPage(com.atlassian.user.User user,
                           String spaceKey,
                           String pageTitle)

canViewPage

public boolean canViewPage(com.atlassian.user.User user,
                           long id)

canCreatePersonalSpace

public boolean canCreatePersonalSpace(com.atlassian.user.User user)

isGlobalAnonymousAccessEnabled

public boolean isGlobalAnonymousAccessEnabled()


Copyright © 2003–2015 Atlassian. All rights reserved.