public class ProfileVariableLookup
extends org.apache.commons.lang.text.StrLookup
StrLookup that is
looking up variables from a
UserProperties.
Additional variables can bee added via a put(String, String).
If the key exists in the UserProperties, the value is overwritten with the newly setStrLookup| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTHORIZABLE_ID |
| Constructor and Description |
|---|
ProfileVariableLookup(Authorizable authorizable,
UserProperties userProperties,
java.util.Map<java.lang.String,java.lang.String> overlays) |
ProfileVariableLookup(Profile profile)
|
ProfileVariableLookup(Profile profile,
java.util.Map<java.lang.String,java.lang.String> overlays)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
lookup(java.lang.String variable) |
void |
put(java.lang.String var,
java.lang.String replace)
Adds or overwrites a mapping of this replacer.
|
public static final java.lang.String AUTHORIZABLE_ID
public ProfileVariableLookup(Profile profile) throws java.beans.IntrospectionException
ProfileVariableLookup(org.apache.jackrabbit.api.security.user.Authorizable, com.adobe.granite.security.user.UserProperties, java.util.Map)profile - The profile of the authorizable.java.beans.IntrospectionException - when not being able to map a string class name to a Class object@Deprecated public ProfileVariableLookup(Profile profile, java.util.Map<java.lang.String,java.lang.String> overlays) throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic ProfileVariableLookup(Authorizable authorizable, UserProperties userProperties, java.util.Map<java.lang.String,java.lang.String> overlays) throws java.beans.IntrospectionException
authorizable - The authorizable for which variables need to be looked up.userProperties - The properties of the authorizable.overlays - java.beans.IntrospectionException - when not being able to map a string class name to a Class objectpublic java.lang.String lookup(java.lang.String variable)
lookup in class org.apache.commons.lang.text.StrLookuppublic void put(java.lang.String var,
java.lang.String replace)
var - name of the variable to mapreplace - the value of the variable"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"