com.atlassian.confluence.plugins.restapi.resources
Class ContentRestrictionResource
java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource
public class ContentRestrictionResource
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentRestrictionResource
public ContentRestrictionResource(ContentRestrictionService service)
byOperation
@PublicApi
public Map<OperationKey,ContentRestriction> byOperation(ContentId id,
String expand)
Returns info about all restrictions by operation
- Parameters:
id - the id of the contentexpand - a comma separated list of properties to expand on the content properties. Default value: group.
- Returns:
- a JSON representation of the restrictions group by operations
forOperation
@PublicApi
public ContentRestriction forOperation(ContentId id,
OperationKey opKey,
String expand,
int start,
int limit)
Returns info about all restrictions of given operation
- Parameters:
id - the id of the contentopKey - key of the operationexpand - a comma separated list of properties to expand on the content properties. Default value: group.start - pagination startlimit - pagination limit
- Returns:
- a JSON representation of the restrictions group by operations
Copyright © 2003–2015 Atlassian. All rights reserved.