info.magnolia.i18nsystem.setup
Class AbstractRemoveHardcodedI18nPropertiesTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.AbstractRepositoryTask
info.magnolia.i18nsystem.setup.AbstractRemoveHardcodedI18nPropertiesTask
- All Implemented Interfaces:
- Task
- Direct Known Subclasses:
- RemoveHardcodedI18nPropertiesFromDialogsTask, RemoveHardcodedI18nPropertiesFromSubappsTask
public abstract class AbstractRemoveHardcodedI18nPropertiesTask
- extends AbstractRepositoryTask
Removes some well-known deprecated i18n properties whose keys are now generated via the I18nizer
mechanism.
The properties are defined by DEPRECATED_I18N_PROPERTIES
.
Subclasses will need to implement getAppRelativePaths()
to provide the paths relative to the module name under which one wants to remove such properties. All sub nodes under the provided paths will be searched recursively for the deprecated i18n properties.
Method Summary |
void |
doExecute(InstallContext installContext)
|
protected abstract String[] |
getAppRelativePaths()
Subclasses will need to implement this abstract method to provide the paths relative to the module name under which one wants to remove such properties. |
DEPRECATED_I18N_PROPERTIES
public static final List<String> DEPRECATED_I18N_PROPERTIES
AbstractRemoveHardcodedI18nPropertiesTask
public AbstractRemoveHardcodedI18nPropertiesTask(String appName,
String description)
AbstractRemoveHardcodedI18nPropertiesTask
public AbstractRemoveHardcodedI18nPropertiesTask(String appName,
String description,
List<String> additionalDeprecatedProperties)
doExecute
public void doExecute(InstallContext installContext)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Specified by:
doExecute
in class AbstractRepositoryTask
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
getAppRelativePaths
protected abstract String[] getAppRelativePaths()
- Subclasses will need to implement this abstract method to provide the paths relative to the module name under which one wants to remove such properties.
All sub nodes under the provided paths will be searched recursively for the deprecated i18n properties.
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.