|
||||||||||
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 |
getContentPermissionSets(ContentEntityObject ceo,
java.lang.String type)
Get the ContentPermissionSets that affect this ceo, both inherited and directly. |
java.util.List |
getInheritedContentPermissions(ContentEntityObject contentEntityObject)
Deprecated. use #getInheritedContentPermissionSets |
java.util.List |
getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
|
java.util.List |
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. |
void |
removeAllGroupPermissions(java.lang.String groupName)
Remove all content permission associtated with a given group. |
void |
removeAllUserPermissions(java.lang.String username)
Remove all content permission associtated with a given user. |
void |
removeContentPermission(ContentPermission permission)
|
void |
setContentPermissions(java.util.Collection 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 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(java.lang.String username)
username
- java.util.List getInheritedContentPermissions(ContentEntityObject contentEntityObject)
java.util.List getInheritedContentUserPermissions(ContentEntityObject contentEntityObject)
java.util.List 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)
java.util.Set<ContentPermission> getViewContentPermissions(Page page)
page
-
java.util.List 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |