info.magnolia.module.delta
Class NewPropertyTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.PropertyValuesTask
info.magnolia.module.delta.NewPropertyTask
- All Implemented Interfaces:
- Task
public class NewPropertyTask
- extends PropertyValuesTask
Creates a new property. Outputs a warning if the property already exists.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Constructor Summary |
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
BigDecimal value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
javax.jcr.Binary value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Boolean value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Calendar value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Double value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
InputStream value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Long value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
javax.jcr.Node value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
String value)
|
NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
javax.jcr.Value value)
|
Method Summary |
void |
execute(InstallContext ctx)
A good-citizen task should execute itself responsibly: it should know
what to do in case of problems: for instance, fixable or irrelevant
issues should usually just be logged used the InstallContext methods,
when the user can fix them later on. |
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
String value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
javax.jcr.Value value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
javax.jcr.Node value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
javax.jcr.Binary value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Calendar value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
BigDecimal value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Long value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Double value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
Boolean value)
NewPropertyTask
public NewPropertyTask(String name,
String description,
String workspaceName,
String nodePath,
String propertyName,
InputStream value)
execute
public void execute(InstallContext ctx)
- Description copied from interface:
Task
- A good-citizen task should execute itself responsibly: it should know
what to do in case of problems: for instance, fixable or irrelevant
issues should usually just be logged used the InstallContext methods,
when the user can fix them later on. The task could also potentially
do backups of nodes it needs to modify extensively, so the user could
refer to the backups in case of problem. In the event of an unrecoverable
issue, the Task could also throw a TaskExecutionException, knowing that
will cancel the whole module's installation, update and startup. If
a TaskExecutionException must be thrown, keep in mind that the exception
message will still be shown to the end user, so try to keep them human
readable.
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.