|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentPermissionManager
Method Summary | |
---|---|
void |
addContentPermission(ContentPermission permission,
ContentEntityObject content)
Add permissions to the content entity objecct through the manager. |
java.util.List<ContentPermissionSet> |
getContentPermissionSets(ContentEntityObject ceo,
java.lang.String type)
Get the ContentPermissionSets that affect this ceo, both inherited and directly. |
java.util.List<ContentPermission> |
getInheritedContentPermissions(ContentEntityObject contentEntityObject)
Deprecated. Since 2.6 use getInheritedContentPermissionSets(ContentEntityObject) |
java.util.List<ContentPermissionSet> |
getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
|
java.util.List<ContentPermission> |
getInheritedContentUserPermissions(ContentEntityObject contentEntityObject)
|
java.util.List<Page> |
getPermittedChildren(Page page,
com.atlassian.user.User user)
|
java.util.Set<ContentPermission> |
getViewContentPermissions(Page page)
Get view permissions on this page and its ancestors. |
boolean |
hasContentLevelPermission(com.atlassian.user.User user,
java.lang.String permissionType,
ContentEntityObject content)
fetches the inherited and explicit content level permissions for this content object and determines whether the user has access. |
boolean |
hasPermittedChildrenIgnoreInheritedPermissions(Page page,
com.atlassian.user.User remoteUser)
Does the given page have children visible to the given user. |
boolean |
isPermissionInherited(Page childPage)
Does the child page get its permissions from any ancestor? |
void |
removeAllGroupPermissions(java.lang.String groupName)
Remove all content permission associated with a given group. |
void |
removeAllUserPermissions(ConfluenceUser user)
Remove all content permission associated with a given user. |
void |
removeAllUserPermissions(java.lang.String username)
Deprecated. since 5.3. Use removeAllUserPermissions(com.atlassian.confluence.user.ConfluenceUser)
instead. |
void |
removeContentPermission(ContentPermission permission)
|
void |
setContentPermissions(java.util.Collection<ContentPermission> contentPermissions,
ContentEntityObject content,
java.lang.String type)
Set the Content Permissions on the CEO to be the list of ContentPermission s passed. |
Method Detail |
---|
void addContentPermission(ContentPermission permission, ContentEntityObject content)
permission
- content
- void setContentPermissions(java.util.Collection<ContentPermission> contentPermissions, ContentEntityObject content, java.lang.String type)
ContentPermission
s passed. Passing
an empty list removes all permissions. Passing a list containing just the existing permissions does nothing.
contentPermissions
- set of ContentPermission
scontent
- type
- void removeContentPermission(ContentPermission permission)
void removeAllGroupPermissions(java.lang.String groupName)
groupName
- void removeAllUserPermissions(ConfluenceUser user)
user
- @Deprecated void removeAllUserPermissions(java.lang.String username)
removeAllUserPermissions(com.atlassian.confluence.user.ConfluenceUser)
instead.
username
- @Deprecated java.util.List<ContentPermission> getInheritedContentPermissions(ContentEntityObject contentEntityObject)
getInheritedContentPermissionSets(ContentEntityObject)
java.util.List<ContentPermission> getInheritedContentUserPermissions(ContentEntityObject contentEntityObject)
java.util.List<ContentPermissionSet> getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
ContentPermissionSet
s of type
ContentPermission.VIEW_PERMISSION
of all ancestors of contentEntityObjectboolean hasContentLevelPermission(com.atlassian.user.User user, java.lang.String permissionType, ContentEntityObject content)
permissionType
- ContentPermission.VIEW_PERMISSION
or ContentPermission.EDIT_PERMISSION
java.util.List<Page> getPermittedChildren(Page page, com.atlassian.user.User user)
boolean hasPermittedChildrenIgnoreInheritedPermissions(Page page, com.atlassian.user.User remoteUser)
java.util.Set<ContentPermission> getViewContentPermissions(Page page)
page
-
java.util.List<ContentPermissionSet> getContentPermissionSets(ContentEntityObject ceo, java.lang.String type)
ceo
- whose permissions will be returned. Not null.type
- one of ContentPermission.VIEW_PERMISSION
or ContentPermission.EDIT_PERMISSION
ContentPermissionSet
s. Not null, but can be empty.boolean isPermissionInherited(Page childPage)
childPage
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |