Class CopyPasteTools
- java.lang.Object
-
- de.aristaflow.adept2.core.activityrepository.CopyPasteTools
-
public class CopyPasteTools extends Object
These tool methods are used for the copy/paste and duplicate functionality of the activity repository.- Author:
- Marco Waimer
-
-
Constructor Summary
Constructors Constructor Description CopyPasteTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deepCopyECD(SessionToken session, ActivityRepository rep, ActivityModelFactory amf, String oldName, String newName, long branch)
This tool method will search the activity repository for the child operations of the executable component description (ECD) with the previous name and copy them to the ECD with the new name.static void
deepCopyOperation(SessionToken session, ActivityRepository rep, ActivityModelFactory amf, String ecName, String oldName, String newName, long branch)
This tool method will search the activity repository for the child activity template definitions (ATD) of the operation with the previous name and copy them to the operation with the new name.
-
-
-
Method Detail
-
deepCopyECD
public static void deepCopyECD(SessionToken session, ActivityRepository rep, ActivityModelFactory amf, String oldName, String newName, long branch)
This tool method will search the activity repository for the child operations of the executable component description (ECD) with the previous name and copy them to the ECD with the new name. The child activity template definitions (ATD) of the operation will also be copied to the new parent ECD.- Parameters:
session
- The session token needed for the repository access.rep
- The activity repository that will be used for the deep copy.amf
- The activity model factory that will be used to 'clone'.oldName
- The old name of the ECD.newName
- The new name of the ECD.branch
- The branch that will be used.
-
deepCopyOperation
public static void deepCopyOperation(SessionToken session, ActivityRepository rep, ActivityModelFactory amf, String ecName, String oldName, String newName, long branch)
This tool method will search the activity repository for the child activity template definitions (ATD) of the operation with the previous name and copy them to the operation with the new name.- Parameters:
session
- The session token needed for the repository access.rep
- The activity repository that will be used for the deep copy.amf
- The activity model factory that will be used to 'clone'.ecName
- The name of the parent executable component description.oldName
- The old name of the operation.newName
- The new name of the operation.branch
- The branch that will be used.
-
-