Class PermissionHelper
java.lang.Object
com.atlassian.confluence.security.PermissionHelper
Provides methods to allow the PermissionManager to be more easily called from within Velocity templates
-
Constructor Summary
ConstructorDescriptionPermissionHelper
(PermissionManager permissionManager, PersonalInformationManager personalInformationManager, PageManager pageManager) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
boolean
boolean
boolean
canRemoveHierarchy
(com.atlassian.user.User user, Object target) boolean
canSetPermissions
(com.atlassian.user.User user, Object object) boolean
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
boolean
isSystemAdministrator
(com.atlassian.user.User user)
-
Constructor Details
-
PermissionHelper
public PermissionHelper(PermissionManager permissionManager, PersonalInformationManager personalInformationManager, PageManager pageManager)
-
-
Method Details
-
canEdit
-
canView
-
canRemove
-
canRemoveHierarchy
-
canExport
-
canComment
-
canAttachFile
-
isConfluenceAdministrator
public boolean isConfluenceAdministrator(com.atlassian.user.User user) -
isSystemAdministrator
public boolean isSystemAdministrator(com.atlassian.user.User user) -
canCreatePage
-
canCreateBlogPost
-
canAdminister
-
canSetPermissions
-
canCreateSpace
public boolean canCreateSpace(com.atlassian.user.User user) -
canViewPage
-
canViewPage
public boolean canViewPage(com.atlassian.user.User user, long id) -
canCreatePersonalSpace
public boolean canCreatePersonalSpace(com.atlassian.user.User user) -
isGlobalAnonymousAccessEnabled
public boolean isGlobalAnonymousAccessEnabled()
-