|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.delta.AbstractTask info.magnolia.module.delta.PropertyValuesTask
public abstract class PropertyValuesTask
A tasks that offers helper methods to check on certain properties.
Field Summary |
---|
Fields inherited from class info.magnolia.module.delta.AbstractTask |
---|
log |
Constructor Summary | |
---|---|
PropertyValuesTask(String name,
String description)
|
Method Summary | |
---|---|
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)
Checks that the given String property has the expected value. |
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)
|
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. |
Methods inherited from class info.magnolia.module.delta.AbstractTask |
---|
getDescription, getName, toString |
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 |
Constructor Detail |
---|
public PropertyValuesTask(String name, String description)
Method Detail |
---|
protected void checkAndModifyPropertyValue(InstallContext ctx, Content 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, 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, Content node, String propertyName, String expectedValue) throws javax.jcr.RepositoryException
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)
protected String format(String pattern, Object arg0, Object arg1, Object arg2, Object arg3)
protected String format(String pattern, Object arg0, Object arg1, Object arg2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |