NewFile
A complex data type that describes a file.
Schema
<xsd:complexType name="NewFile">
<xsd:all>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="VersionName" type="xsd:string"
minOccurs="0"/>
<xsd:element name="ReplaceExisting" type="xsd:Boolean"
minOccurs="0"/>
<xsd:element name="Versioning" type="typens:VersioningOption"
minOccurs="0"/>
<xsd:element name="MaxVersions"type="xsd:long"
minOccurs="0"/>
<xsd:element name="Description" type="xsd:string"
minOccurs="0"/>
<xsd:element name="ArchiveRule" type="typens:ArchiveRule"
minOccurs="0"/>
<xsd:element name="ACL" type="typens:ArrayOfPermission"
minOccurs="0"/>
<xsd:element name="AccessType" type="typens:FileAccess"
minOccurs="0"/>
</xsd:all>
</xsd:complexType>
Elements
Name
The name of the file.
VersionName
The version name of the file.
ReplaceExisting
Deprecated. Use Versioning instead of ReplaceExisting. Specifies whether to overwrite the latest existing version when uploading a file. If the existing file has any dependencies, BIRT iHub does not overwrite the file and creates a new version, regardless of the ReplaceExisting setting.
Versioning

Specifies what to do with the latest existing version when uploading a file. Valid values are:

CreateNewVersion
Always creates a new version. This is the default value.

ReplaceLatestIfNoDependents
Replaces the latest existing version if it does not have any dependent files. If the existing version has any dependants, BIRT iHub creates a new version instead of replacing the existing version.

ReplaceLatestDropDependency
Replaces the latest existing version if it does not have any dependent files. If the existing version has any dependants, BIRT iHub drops the dependency.

ReplaceLatestMigrateDependency
Replaces the latest existing version if it does not have any dependent files. If the existing version has any dependants, BIRT iHub moves the dependency to the new version.
MaxVersions
The maximum number of versions to keep in the Encyclopedia volume.
Description
The description of the file.
ArchiveRule
The autoarchive rules for the file.
ACL
The access rights to the file.
AccessType

The file’s access type. Valid values are:

Private
Only the owner of the file and an administrator can access the file.

Shared
All users and roles specified in the access control list (ACL) for the file can access the file.