public class DuplicateObject extends XMLRequest
Constructor and Description |
---|
DuplicateObject(UC4ObjectName name,
UC4ObjectName newName,
IFolder folder)
Creates a new
DuplicateObject request. |
DuplicateObject(UC4Object object,
UC4ObjectName newName,
IFolder folder)
Creates a new
DuplicateObject request. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getID()
Returns the ID (OH_IDNR) of the created object.
|
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send
public DuplicateObject(UC4ObjectName name, UC4ObjectName newName, IFolder folder)
DuplicateObject
request.name
- Name of the UC4 Object which should be duplicatednewName
- Name of the created copyfolder
- Destination folderpublic DuplicateObject(UC4Object object, UC4ObjectName newName, IFolder folder) throws java.lang.IllegalArgumentException
DuplicateObject
request.
This request closes the given UC4Object
, duplicates its representation in the database and opens the duplicated object.
The given UC4Object
will be replaced by the duplicated.
Be aware that changes made on the given UC4Object
but not saved will not be duplicated. Therefore you have to save the duplicated object as well.object
- UC4 Object which should be duplicatednewName
- Name of the created copyfolder
- Destination folderjava.lang.IllegalArgumentException
- if object is null