contentService

Available for: Content Management Server

Task: The procedure makes it possible to use the ContentService interface of the Content Management Server in Tcl scripts. It transmits the contents of a CMS folder to a different CMS instance.

Syntax:

contentService sourceUrl sourceLogin sourcePassword sourcePath destUrl destLogin destPassword destPath

Function parameters:

  • sourceUrl: The URL of the source instance.

  • sourceLogin, sourcePassword: The login credentials of the source instance user used to fetch the source CMS files.

  • sourcePath: The path of the source instance folder to be transmitted.

  • destUrl: The URL of the destination instance.

  • destLogin, destPassword: The login credentials of the user used to modify or create the CMS files in the destination instance.

  • destPath: The path of the destination instance folder that is to receive the CMS files (including sourcePath).

Return value if successful: none

Necessary permissions: The source instance user requires read permission for all the files to be transmitted. The destination instance user requires write permission for these CMS files in case they already exist. To be able to create CMS files not yet present in the destination instance, this user requires the file creation permission in the respective parent folder.

Example:

contentService 
    http://localhost:8080/sourceInstance myUser myPassword /news 
    http://otherServer:8080/destinationInstance otherUser otherPassword /intranet/content