Documentation Center

Publication 2.0 Copy [deprecated]

Creates a publication object and version with a baseline that is copied from the given baseline.


Parameters

NameTypeDirectionDescription
psAuthContextStringInOutDeprecated 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.
psSourceBaselineStringInThe element name or label of the source baseline
psFolderIdStringInThe id of the folder under which the object has to be created
psDocIdStringInOutThe logical identifier of the object
psVersionStringInThe version of the object. This version number has to be an exact number.
psXMLMetaDataStringInMetadata 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 psDocId has 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 psXMLMetaData can 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 psXMLMetaData has to specify all mandatory metadata for the object that is created.
  • If the parameter psXMLMetaData does 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 as Publication title -v version number-logical identifier
  • If the parameterpsXMLMetaData contains 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.