Class PermissionHelper
- java.lang.Object
-
- 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
Constructors Constructor Description PermissionHelper(PermissionManager permissionManager, PersonalInformationManager personalInformationManager, PageManager pageManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
canRemoveHierarchy(com.atlassian.user.User user, Object target)
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)
-
-
-
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)
-
canRemoveHierarchy
public boolean canRemoveHierarchy(com.atlassian.user.User user, Object target)
-
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()
-
-