public class ImportObject extends XMLRequest
Keep in mind that the size of the XML file must not exceed 30000 KB. Values below this limit may also be defined in the UC4 Variable UC_SYSTEM_SETTINGS.
The importing and exporting functionality is not suitable for mass transports! Use the UC4 Transport Case instead for this purpose.
Constructor and Description |
---|
ImportObject(java.io.File export,
IFolder folder,
boolean overwriteObject,
boolean keepFolderLinks)
Creates a request to import UC4 Objects.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
exportDocument()
Returns an XML DOM which represents the exported object if this instance was created using the
ExportObject.getImportRequest() method. |
java.lang.String |
getImportMessages()
Returns import messages.
|
java.util.Iterator<UploadBinary> |
getResourceList()
|
getMessageBox, getRequestID, handleResponse, send
public ImportObject(java.io.File export, IFolder folder, boolean overwriteObject, boolean keepFolderLinks) throws org.xml.sax.SAXException, java.io.IOException
export
- File (XML) containing the objectsfolder
- Folder in which the objects should be createdoverwriteObject
- If true an existing object with this name will be replacedkeepFolderLinks
- If true, existing folder links will be keptjava.io.IOException
- In case of an I/O Errororg.xml.sax.SAXException
- In case of an invalid file contentpublic org.w3c.dom.Document exportDocument()
ExportObject.getImportRequest()
method.public java.lang.String getImportMessages()
public java.util.Iterator<UploadBinary> getResourceList()
Iterator
with items of UploadBinary
objects after invoking the ImportObject
instance.
Use this Iterator
to additionally upload all related resource items of each STORE object containing within the import.Iterator
containing all resource items of each imported STORE object.