Class ReplaceResourcePropertyValues
- java.lang.Object
-
- de.valtech.aecu.core.groovy.console.bindings.actions.resource.ReplaceResourcePropertyValues
-
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
ReplaceResourcePropertyValuesRegex
public class ReplaceResourcePropertyValues extends Object implements Action
Replaces strings in resource properties.- Author:
- Roland Gruber
-
-
Constructor Summary
Constructors Constructor Description ReplaceResourcePropertyValues(String oldValue, String newValue, List<String> propertyNames)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdoAction(org.apache.sling.api.resource.Resource resource)Runs an action.protected StringgetNewValue(String propertyValue)Returns the new property value.protected booleanvalueMatches(String value)Checks if the value matches the searched value.
-
-
-
Method Detail
-
doAction
public String doAction(@Nonnull org.apache.sling.api.resource.Resource resource) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:ActionRuns an action.
-
valueMatches
protected boolean valueMatches(String value)
Checks if the value matches the searched value.- Parameters:
value- content property value- Returns:
- matches condition
-
-