Class ContentRestriction
- java.lang.Object
-
- com.atlassian.confluence.api.model.permissions.ContentRestriction
-
- All Implemented Interfaces:
NavigationAware
public class ContentRestriction extends Object implements NavigationAware
This is UI and ServiceLayer representation ofcom.atlassian.confluence.security.ContentPermission
Defines 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 class
ContentRestriction.ContentRestrictionBuilder
static class
ContentRestriction.Expansions
Provides property names that can be used to expandContentRestriction
objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentRestriction.ContentRestrictionBuilder
builder()
static ContentRestriction.ContentRestrictionBuilder
builder(ContentRestriction restriction)
boolean
equals(Object obj)
Reference<Content>
getContent()
OperationKey
getOperation()
Map<SubjectType,PageResponse<Subject>>
getRestrictions()
Presents information about the restriction in a form ofMap<SubjectType, PageResponse<Subject>>
int
hashCode()
Navigation.Builder
resolveNavigation(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:
resolveNavigation
in interfaceNavigationAware
-
-