public class CreateObject extends XMLRequest
Constructor and Description |
---|
CreateObject(UC4ObjectName name,
Template template,
IFolder folder)
Creates an UC4 Object.
|
Modifier and Type | Method and Description |
---|---|
IFolder |
getFolder()
Returns the
IFolder where the object should be created. |
UC4ObjectName |
getName()
Returns the name of the object.
|
Template |
getTemplate()
Returns the template which is used to create the object in UC4.
|
java.lang.String |
getTitle()
Returns the title of the FOLD object, never
null . |
void |
setMessageBox(MessageBox box)
Used in
XMLRequestSet to move the Message Box from a child request to the XMLRequestSet object. |
void |
setTitle(java.lang.String title)
With this method the title of a new folder can be set.
|
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send
public CreateObject(UC4ObjectName name, Template template, IFolder folder)
If a client (type CLNT) should be created, the name of the new object should not be client number.
For example C0123 for client 123. After the CLNT object has been created it can be renamed to the client number using the
RenameObject
class.
name
- Name of the new Objecttemplate
- Template
If the required Template constant is not defined in the com.uc4.api.Template
class the request TemplateList
can be used to get a Template object.folder
- Folder where the object should be storedpublic IFolder getFolder()
IFolder
where the object should be created.
This is the instance supplied in the CreateObject
contructor.IFolder
where the object should be created.public java.lang.String getTitle()
null
.public void setTitle(java.lang.String title)
title
- Title of the new Object (only supported for type FOLD).public UC4ObjectName getName()
UC4ObjectName
or a subclass.public Template getTemplate()
public void setMessageBox(MessageBox box)
XMLRequest
XMLRequestSet
to move the Message Box from a child request to the XMLRequestSet
object.box
- Message Box