Publication 2.0 Copy [deprecated]
Creates a publication object and version with a baseline that is copied from the given baseline.
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
| psAuthContext | String | InOut | Deprecated proprietary authentication context only used by .ASMX web services based on internal username/password authentication. Claims based security standards drive all the WCF .SVC web services making this parameter redundant. |
| psSourceBaseline | String | In | The element name or label of the source baseline |
| psFolderId | String | In | The id of the folder under which the object has to be created |
| psDocId | String | InOut | The logical identifier of the object |
| psVersion | String | In | The version of the object. This version number has to be an exact number. |
| psXMLMetaData | String | In | Metadata XML structure with the metadata that will be set on the current object |
Requirements are:
- The user has write access to the folder in which the Publication object is going to be created.
- The content type of the folder must be Publication.
Note that:
- You cannot create a logical level only, since we need a version to store the copied baseline.
- Currently, the version is mandatory and needs to be an exact version (meaning "new" is not supported).
- When creating a new version, the parameter
psDocIdhas to be the logical identifier of an existing Publication object. - A language level cannot be created using this API. To create a language the PublicationOutput class must be used. The parameter
psXMLMetaDatacan only contain fields of the logical and version level. - The folder id can be set to '' when the logical object is already present in the repository. When the object is already present and a folder id is provided, then the provided identifier has to match the identifier of the folder that contains the object.
- All logical identifiers within Content Manager are in uppercase.
- The parameter
psXMLMetaDatahas to specify all mandatory metadata for the object that is created. - If the parameter
psXMLMetaDatadoes not contain a value for the FISHBASELINE field on the version level or if the supplied value for this field is empty than the source baseline is copied to a new baseline with a name that is formated asPublication title-vversion number-logical identifier - If the parameter
psXMLMetaDatacontains a none empty value for the FISHBASELINE field on the version level than:- If the given baseline already exist, an error is given
- If the given baseline does not exist, the source baseline is copied to a new baseline with the given name.
- The ownership for an object in the repository is inherited from the folder that contains the object.