public class PrivilegeDistributionRequestAuthorizationStrategy extends Object implements DistributionRequestAuthorizationStrategy
DistributionRequestAuthorizationStrategy
based on JCR privileges over a certain Session
Constructor and Description |
---|
PrivilegeDistributionRequestAuthorizationStrategy(String jcrPrivilege) |
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull org.apache.sling.distribution.DistributionRequest distributionRequest) |
public PrivilegeDistributionRequestAuthorizationStrategy(String jcrPrivilege)
public void checkPermission(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull org.apache.sling.distribution.DistributionRequest distributionRequest) throws DistributionException
checkPermission
in interface DistributionRequestAuthorizationStrategy
resourceResolver
- a ResourceResolver
representing the calling 'user'distributionRequest
- a request bringing metadata for getting DistributionPackage
s
to be exportedDistributionException
- if the ResourceResolver
is
not authorized to execute the given DistributionRequest
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.