public abstract class PropertyValuesTask extends AbstractTask
DO_NOTHING, log
Constructor and Description |
---|
PropertyValuesTask(String name,
String description) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAndModifyPartOfPropertyValue(InstallContext ctx,
javax.jcr.Node node,
String propertyName,
String expectedValue,
String newValue)
Checks if property contains concrete string.
|
protected void |
checkAndModifyPropertyValue(InstallContext ctx,
Content node,
String propertyName,
String expectedCurrentValue,
String newValue)
Deprecated.
since 5.2.2, use
instead . |
protected void |
checkAndModifyPropertyValue(InstallContext ctx,
javax.jcr.Node node,
String propertyName,
Collection<String> expectedCurrentValues,
String newValue)
Checks that the given String property has one of the expected values.
|
protected void |
checkAndModifyPropertyValue(InstallContext ctx,
javax.jcr.Node node,
String propertyName,
String expectedCurrentValue,
String newValue)
Checks that the given String property has the expected value.
|
protected void |
checkOrCreateProperty(InstallContext ctx,
Content node,
String propertyName,
String expectedValue)
Deprecated.
since 5.2.2, use
checkOrCreateProperty(InstallContext, Node, String, String) instead. |
protected void |
checkOrCreateProperty(InstallContext ctx,
javax.jcr.Node node,
String propertyName,
String expectedValue) |
protected String |
format(String pattern,
Object arg0,
Object arg1,
Object arg2) |
protected String |
format(String pattern,
Object arg0,
Object arg1,
Object arg2,
Object arg3) |
protected String |
format(String pattern,
Object arg0,
Object arg1,
Object arg2,
Object arg3,
Object arg4) |
protected void |
newProperty(InstallContext ctx,
Content node,
String propertyName,
String value)
Deprecated.
|
protected void |
newProperty(InstallContext ctx,
javax.jcr.Node node,
String propertyName,
Object value)
Checks that the given property does not exist and creates it with the given value, logs otherwise.
|
getDescription, getName, toString
protected void checkAndModifyPropertyValue(InstallContext ctx, Content node, String propertyName, String expectedCurrentValue, String newValue) throws javax.jcr.RepositoryException
instead
.javax.jcr.RepositoryException
protected void checkAndModifyPropertyValue(InstallContext ctx, javax.jcr.Node node, String propertyName, String expectedCurrentValue, String newValue) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void checkAndModifyPropertyValue(InstallContext ctx, javax.jcr.Node node, String propertyName, Collection<String> expectedCurrentValues, String newValue) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void checkAndModifyPartOfPropertyValue(InstallContext ctx, javax.jcr.Node node, String propertyName, String expectedValue, String newValue) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void checkOrCreateProperty(InstallContext ctx, javax.jcr.Node node, String propertyName, String expectedValue) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void checkOrCreateProperty(InstallContext ctx, Content node, String propertyName, String expectedValue) throws javax.jcr.RepositoryException
checkOrCreateProperty(InstallContext, Node, String, String)
instead.javax.jcr.RepositoryException
@Deprecated protected void newProperty(InstallContext ctx, Content node, String propertyName, String value) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void newProperty(InstallContext ctx, javax.jcr.Node node, String propertyName, Object value) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String format(String pattern, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4)
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.