info.magnolia.module.delta
Class PropertyValuesTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.PropertyValuesTask
- All Implemented Interfaces:
- Task
- Direct Known Subclasses:
- CheckAndModifyPropertyValueTask, CheckOrCreatePropertyTask, I18nMenuPoint, NewPropertyTask
public abstract class PropertyValuesTask
- extends AbstractTask
A tasks that offers helper methods to check on certain properties.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Constructor Summary |
PropertyValuesTask(java.lang.String name,
java.lang.String description)
|
Method Summary |
protected void |
checkAndModifyPropertyValue(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String expectedCurrentValue,
java.lang.String newValue)
Checks that the given String property has the expected value. |
protected void |
checkOrCreateProperty(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String expectedValue)
|
protected java.lang.String |
format(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
|
protected java.lang.String |
format(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
protected java.lang.String |
format(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
|
protected void |
newProperty(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String value)
Checks that the given property does not exist and creates it with the given value, logs otherwise. |
protected void |
newProperty(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String value,
boolean log)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface info.magnolia.module.delta.Task |
execute |
PropertyValuesTask
public PropertyValuesTask(java.lang.String name,
java.lang.String description)
checkAndModifyPropertyValue
protected void checkAndModifyPropertyValue(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String expectedCurrentValue,
java.lang.String newValue)
throws javax.jcr.RepositoryException
- Checks that the given String property has the expected value. Changes it if so, logs otherwise.
- Throws:
javax.jcr.RepositoryException
checkOrCreateProperty
protected void checkOrCreateProperty(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String expectedValue)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
newProperty
protected void newProperty(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String value)
throws javax.jcr.RepositoryException
- Checks that the given property does not exist and creates it with the given value, logs otherwise.
- Throws:
javax.jcr.RepositoryException
newProperty
protected void newProperty(InstallContext ctx,
Content node,
java.lang.String propertyName,
java.lang.String value,
boolean log)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
format
protected java.lang.String format(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
format
protected java.lang.String format(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
format
protected java.lang.String format(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.