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:
- info.magnolia.module.delta.Task
- Direct Known Subclasses:
- RemoveHardcodedI18nPropertiesFromDialogsTask, RemoveHardcodedI18nPropertiesFromSubappsTask
public abstract class AbstractRemoveHardcodedI18nPropertiesTask
- extends info.magnolia.module.delta.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.
Fields inherited from class info.magnolia.module.delta.AbstractTask |
log |
Methods inherited from class info.magnolia.module.delta.AbstractRepositoryTask |
execute |
Methods inherited from class info.magnolia.module.delta.AbstractTask |
getDescription, getName, toString |
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(info.magnolia.module.InstallContext installContext)
throws javax.jcr.RepositoryException,
info.magnolia.module.delta.TaskExecutionException
- Specified by:
doExecute
in class info.magnolia.module.delta.AbstractRepositoryTask
- Throws:
javax.jcr.RepositoryException
info.magnolia.module.delta.TaskExecutionException
getAppRelativePaths
protected abstract String[] getAppRelativePaths()
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.