Modifier and Type | Field and Description |
---|---|
static String |
PN_ADDMEMBERS |
static String |
PN_ADDTOGROUP |
static String |
PN_BINDMEMBERS |
static String |
PN_CREATEGROUP |
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, resource, RT_PREFIX, SLASH, STATUS_FINISHED, STATUS_STARTED
Constructor and Description |
---|
AuthorizablePipe(Plumber plumber,
org.apache.sling.api.resource.Resource resource,
PipeBindings upperBindings)
public constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMembers(org.apache.jackrabbit.api.security.user.Authorizable auth)
Add to current authorizable (that should be a group) the configured members in addMembers expression
|
protected void |
addToGroup(org.apache.jackrabbit.api.security.user.Authorizable auth)
Add current authorizable to configured addToGroup expression (should resolve as a group id)
|
protected void |
bindMembers(org.apache.jackrabbit.api.security.user.Authorizable auth)
add current group's members to the bindings
|
Iterator<org.apache.sling.api.resource.Resource> |
computeOutput() |
protected org.apache.jackrabbit.api.security.user.Authorizable |
getAuthorizable()
Returns the authorizable configured by its expression, creating it if
not present and if
createGroup is set to true, or, if
no expression, tries to resolve getInput() as an authorizable |
Object |
getOutputBinding()
returns the binding output used in container pipe's expression
|
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_CREATEGROUP
public static final String PN_ADDTOGROUP
public static final String PN_ADDMEMBERS
public static final String PN_BINDMEMBERS
public AuthorizablePipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings) throws Exception
plumber
- plumber instanceresource
- configuration resourceupperBindings
- bindings coming from super pipeException
- 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 org.apache.jackrabbit.api.security.user.Authorizable getAuthorizable()
createGroup
is set to true, or, if
no expression, tries to resolve getInput() as an authorizableprotected void addToGroup(org.apache.jackrabbit.api.security.user.Authorizable auth)
auth
- authorizable to add to the groupprotected void addMembers(org.apache.jackrabbit.api.security.user.Authorizable auth)
auth
- group to which members should be addedprotected void bindMembers(org.apache.jackrabbit.api.security.user.Authorizable auth)
auth
- group whose members should be bound in the pipe bindingsCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.