Class UserTransactionTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.UserTransactionTask
-
- All Implemented Interfaces:
SubTask
public class UserTransactionTask extends AbstractBaseTask
A Rhino management sub task that allows its own subtasks to be executed in the context of a single client-demarcated transaction.
This task starts a user transaction then executes the nested subtasks. If all the subtasks complete successfully, the user transaction is committed. If any tasks fails with a fatal BuildException, or fails with a NonFatalBuildException but its failonerror flag is set to
true
, the user transaction is rolled back.The following sub task elements can be provided in any number and in any order. The User Transaction task will execute these sub tasks in the specified order until a sub task fails by throwing a
BuildException
which will be re-thrown to Ant with some contextual information regarding the sub task that caused it.Sub-tasks specifiable as nested elements Create Profiles inside tables.
Remove a Profile from a table.
Modify profile attributes.
Import profile XML data.
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description UserTransactionTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCreateProfile(CreateProfileTask task)
void
addImportProfilesTask(ImportProfilesTask task)
void
addRemoveProfile(RemoveProfileTask task)
void
addSetProfileAttributes(SetProfileAttributesTask task)
protected void
execute()
protected void
validateParameters()
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
Method Detail
-
addCreateProfile
public void addCreateProfile(CreateProfileTask task)
-
addRemoveProfile
public void addRemoveProfile(RemoveProfileTask task)
-
addSetProfileAttributes
public void addSetProfileAttributes(SetProfileAttributesTask task)
-
addImportProfilesTask
public void addImportProfilesTask(ImportProfilesTask task)
-
execute
protected void execute() throws org.apache.tools.ant.BuildException
- Specified by:
execute
in classAbstractBaseTask
- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException
- Specified by:
validateParameters
in classAbstractBaseTask
- Throws:
org.apache.tools.ant.BuildException
-
-