com.atlassian.confluence.api.impl.service.permissions
Class ContentRestrictionFactory

java.lang.Object
  extended by com.atlassian.confluence.api.impl.service.permissions.ContentRestrictionFactory

public class ContentRestrictionFactory
extends Object

Produces ContentRestriction from provided ContentPermissions


Constructor Summary
ContentRestrictionFactory(PersonFactory personFactory, ContentFactory contentFactory, NavigationService navigationService)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentRestrictionFactory

public ContentRestrictionFactory(PersonFactory personFactory,
                                 ContentFactory contentFactory,
                                 NavigationService navigationService)
Method Detail

buildFrom

public ContentRestriction buildFrom(@Nonnull
                                    ContentPermissionSet set,
                                    LimitedRequest limitedRequest,
                                    Expansions expansions)
Produces a list of ContentRestrictions from a ContentPermissionSet.


determineOpKey

public OperationKey determineOpKey(String permissionType)
Given a raw ContentPermission type, return its corresponding OperationKey.


determinePermissionType

public com.atlassian.fugue.Option<String> determinePermissionType(OperationKey key)
Given an OperationKey, determine the raw ContentPermission type.



Copyright © 2003–2015 Atlassian. All rights reserved.