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,
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,
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,
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, 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 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–2020 Magnolia International Ltd.. All rights reserved.