public class ContentRestrictionFactory extends Object
ContentRestriction
from provided ContentPermissionsConstructor and Description |
---|
ContentRestrictionFactory(PersonFactory personFactory,
ContentFactory contentFactory,
NavigationService navigationService) |
Modifier and Type | Method and Description |
---|---|
ContentRestriction |
buildFrom(ContentPermissionSet set,
LimitedRequest limitedRequest,
Expansions expansions)
Produces a list of ContentRestrictions from a ContentPermissionSet.
|
OperationKey |
determineOpKey(String permissionType)
Given a raw ContentPermission type, return its corresponding OperationKey.
|
com.atlassian.fugue.Option<String> |
determinePermissionType(OperationKey key)
Given an OperationKey, determine the raw ContentPermission type.
|
public ContentRestrictionFactory(PersonFactory personFactory, ContentFactory contentFactory, NavigationService navigationService)
public ContentRestriction buildFrom(@Nonnull ContentPermissionSet set, LimitedRequest limitedRequest, Expansions expansions)
public OperationKey determineOpKey(String permissionType)
public com.atlassian.fugue.Option<String> determinePermissionType(OperationKey key)
Copyright © 2003–2016 Atlassian. All rights reserved.