Modifier and Type | Field and Description |
---|---|
static String |
ACE_DENY_KEY |
static String |
ACE_GRANT_KEY |
static String |
JCR_PRIVILEGES_INPUT |
static String |
PATH_KEY |
static String |
PN_ALLOW |
static String |
PN_AUTHORIZABLE |
static String |
PN_DENY |
static String |
PN_USERNAME |
static String |
PRIVILEGES_JSON_KEY |
static String |
PRIVILEGES_KEY |
static String |
RESOURCE_TYPE |
afterHook, beforeHook, bindingProviders, bindings, distributionAgent, DRYRUN_EXPR, DRYRUN_KEY, dryRunObject, EMPTY_ITERATOR, IGNORED_PROPERTIES, parent, plumber, PN_AFTERHOOK, PN_BEFOREHOOK, PN_STATUS, PN_STATUS_MODIFIED, properties, READ_ONLY, resolver, resource, RT_PREFIX, SLASH, STATUS_FINISHED, STATUS_STARTED
Constructor and Description |
---|
ACLPipe(Plumber plumber,
org.apache.sling.api.resource.Resource resource,
PipeBindings upperBindings)
public constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
bindACLs(org.apache.sling.api.resource.Resource resource)
Binds ACLs of the current resource to the bindings
If current Resource is an Authorizable and authorizable flag is true then ACLs of the authorizablie on repository is put in bindings
|
protected void |
bindAclsForAuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable auth)
Binds ACLs of an Authorizable on repository
|
protected org.apache.jackrabbit.api.security.user.Authorizable |
checkIsAuthorizableResource(org.apache.sling.api.resource.Resource resource) |
Iterator<org.apache.sling.api.resource.Resource> |
computeOutput() |
Object |
getOutputBinding()
returns the binding output used in container pipe's expression
|
protected Principal |
getPrincipalFor(String prinicipalName)
get Principal for principal name set as an expression in the pipe
|
boolean |
modifiesContent()
returns true if that pipe modifies content during its execution
|
after, before, getBindings, getComputedPath, getConfiguration, getDistributionAgent, getExpr, getInput, getName, getOutput, getParent, getPath, getPreviousPipe, getPreviousResource, getRawExpression, getRawPath, getResource, isDryRun, isRootPath, provideAdditionalBindings, setParent, toString
public static final String RESOURCE_TYPE
public static final String PN_USERNAME
public static final String PN_ALLOW
public static final String PN_DENY
public static final String PN_AUTHORIZABLE
public static final String PATH_KEY
public static final String PRIVILEGES_KEY
public static final String ACE_GRANT_KEY
public static final String ACE_DENY_KEY
public static final String JCR_PRIVILEGES_INPUT
public static final String PRIVILEGES_JSON_KEY
public ACLPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings) throws Exception
plumber
- plumber instanceresource
- configuration resourceupperBindings
- already set binding we want to initiate our pipe withException
- bad configuration handlingpublic Object getOutputBinding()
Pipe
getOutputBinding
in interface Pipe
getOutputBinding
in class BasePipe
public boolean modifiesContent()
Pipe
modifiesContent
in interface Pipe
modifiesContent
in class BasePipe
public Iterator<org.apache.sling.api.resource.Resource> computeOutput() throws Exception
computeOutput
in class BasePipe
ScriptException
- if any exception has occuredException
protected void bindACLs(org.apache.sling.api.resource.Resource resource)
resource
- current resourceprotected void bindAclsForAuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable auth) throws javax.jcr.RepositoryException
auth
- current resource as an authorizablejavax.jcr.RepositoryException
- in case something goes wrong while executing xpath queryprotected org.apache.jackrabbit.api.security.user.Authorizable checkIsAuthorizableResource(org.apache.sling.api.resource.Resource resource)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.