Class ContentRestriction
- java.lang.Object
-
- com.atlassian.confluence.api.model.permissions.ContentRestriction
-
- All Implemented Interfaces:
NavigationAware
@ExperimentalApi public class ContentRestriction extends Object implements NavigationAware
This is UI and ServiceLayer representation ofcom.atlassian.confluence.security.ContentPermissionDefines per-content level "Restrictions" (for blogposts and pages only). Not to confuse with Permissions, which are separate concept.- Since:
- 5.7
- See Also:
- "com.atlassian.confluence.security.ContentPermission", "com.atlassian.confluence.api.impl.service.permissions.ContentRestrictionFactory", "com.atlassian.confluence.security.ContentPermissionSet"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentRestriction.ContentRestrictionBuilderstatic classContentRestriction.ExpansionsProvides property names that can be used to expandContentRestrictionobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentRestriction.ContentRestrictionBuilderbuilder()static ContentRestriction.ContentRestrictionBuilderbuilder(ContentRestriction restriction)booleanequals(Object obj)Reference<Content>getContent()OperationKeygetOperation()Map<SubjectType,PageResponse<Subject>>getRestrictions()Presents information about the restriction in a form ofMap<SubjectType, PageResponse<Subject>>inthashCode()Navigation.BuilderresolveNavigation(NavigationService navigationService)
-
-
-
Method Detail
-
builder
public static ContentRestriction.ContentRestrictionBuilder builder()
-
builder
public static ContentRestriction.ContentRestrictionBuilder builder(ContentRestriction restriction)
-
getOperation
public OperationKey getOperation()
-
getRestrictions
public Map<SubjectType,PageResponse<Subject>> getRestrictions()
Presents information about the restriction in a form ofMap<SubjectType, PageResponse<Subject>>
-
resolveNavigation
public Navigation.Builder resolveNavigation(NavigationService navigationService)
- Specified by:
resolveNavigationin interfaceNavigationAware
-
-