|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addContentPermission(ContentPermission permission,
ContentEntityObject content)
Add permissions to the content entity objecct through the manager. |
List |
getInheritedContentPermissions(ContentEntityObject contentEntityObject)
Deprecated. use #getInheritedContentPermissionSets |
List |
getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
|
List |
getInheritedContentUserPermissions(ContentEntityObject contentEntityObject)
|
List |
getInheritedViewContentPermissions(Page page)
only get inherited permissions that are restrict the viewing of pages |
List |
getPermittedChildren(Page page,
com.atlassian.user.User user)
|
Set |
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 |
removeContentPermission(ContentPermission permission)
|
void |
setContentPermissions(List contentPermissions,
ContentEntityObject content,
String type)
Set the Content Permissions on the CEO to be the list of ContentPermission s passed. |
Method Detail |
public void addContentPermission(ContentPermission permission, ContentEntityObject content)
permission
- content
- public void setContentPermissions(List contentPermissions, ContentEntityObject content, String type)
ContentPermission
s passed. Passing
an empty list removes all permissions. Passing a list containing just the existing permissions does nothing.
contentPermissions
- list of ContentPermission
scontent
- type
- public void removeContentPermission(ContentPermission permission)
public List getInheritedContentPermissions(ContentEntityObject contentEntityObject)
public List getInheritedContentUserPermissions(ContentEntityObject contentEntityObject)
public List getInheritedContentPermissionSets(ContentEntityObject contentEntityObject)
ContentPermissionSet
s of type
ContentPermission.VIEW_PERMISSION
of all ancestors of contentEntityObjectpublic boolean hasContentLevelPermission(com.atlassian.user.User user, String permissionType, ContentEntityObject content)
permissionType
- ContentPermission.VIEW_PERMISSION
or ContentPermission.EDIT_PERMISSION
public List getPermittedChildren(Page page, com.atlassian.user.User user)
public List getInheritedViewContentPermissions(Page page)
page
-
public Set getViewContentPermissions(Page page)
page
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |