|
||||||||||
| 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. |
List |
getContentPermissionSets(ContentEntityObject ceo,
String type)
Get the ContentPermissionSets that affect this ceo, both inherited and directly. |
List |
getInheritedContentPermissions(ContentEntityObject contentEntityObject)
Deprecated. use #getInheritedContentPermissionSets |
List |
getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
|
List |
getInheritedContentUserPermissions(ContentEntityObject contentEntityObject)
|
List<Page> |
getPermittedChildren(Page page,
com.atlassian.user.User user)
|
Set<ContentPermission> |
getViewContentPermissions(Page page)
Get view permissions on this page and its ancestors. |
boolean |
hasContentLevelPermission(com.atlassian.user.User user,
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(String groupName)
Remove all content permission associtated with a given group. |
void |
removeAllUserPermissions(String username)
Remove all content permission associtated with a given user. |
void |
removeContentPermission(ContentPermission permission)
|
void |
setContentPermissions(Collection contentPermissions,
ContentEntityObject content,
String type)
Set the Content Permissions on the CEO to be the list of ContentPermissions passed. |
| Method Detail |
|---|
void addContentPermission(ContentPermission permission,
ContentEntityObject content)
permission - content -
void setContentPermissions(Collection contentPermissions,
ContentEntityObject content,
String type)
ContentPermissions passed. Passing
an empty list removes all permissions. Passing a list containing just the existing permissions does nothing.
contentPermissions - set of ContentPermissionscontent - type - void removeContentPermission(ContentPermission permission)
void removeAllGroupPermissions(String groupName)
groupName - void removeAllUserPermissions(String username)
username - List getInheritedContentPermissions(ContentEntityObject contentEntityObject)
List getInheritedContentUserPermissions(ContentEntityObject contentEntityObject)
List getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
ContentPermissionSets of type
ContentPermission.VIEW_PERMISSION of all ancestors of contentEntityObject
boolean hasContentLevelPermission(com.atlassian.user.User user,
String permissionType,
ContentEntityObject content)
permissionType - ContentPermission.VIEW_PERMISSION or ContentPermission.EDIT_PERMISSION
List<Page> getPermittedChildren(Page page,
com.atlassian.user.User user)
Set<ContentPermission> getViewContentPermissions(Page page)
page -
List getContentPermissionSets(ContentEntityObject ceo,
String type)
ceo - whose permissions will be returned. Not null.type - one of ContentPermission.VIEW_PERMISSION or ContentPermission.EDIT_PERMISSION
ContentPermissionSets. Not null, but can be empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||