You can import Workbench content from specified folders. The imported Workbench content overwrites any existing Workbench content.

The credentials key configured for the IFCR component in the WorkbenchConfig.xml is used to determine which user is running the import process. If this user does not have, or loses, administrator rights on Workbench, any import that this user attempts to run will fail with the error AccessDeniedException. For example, if you create a new user, "smith", with admininstrator rights on Workbench, and also change the user in the credentials store to "smith", the last modified by fields of any imported types of content are subsequently set to "smith". If "smith" attempts to run an import after losing administrator rights on Workbench, the import fails with the error AccessDeniedException. You can override this behavior by specifying the ecr:lastModifiedBy property in the JSON file of a content-item or a page.

Importing Workbench Content from a Specified Directory

The following command imports Workbench content from a specified folder:

runcommand.sh IFCR importContent  relative_path  
            source 
         

where:

For example, the following command imports thesaurus content from a folder named thesaurus:

runcommand.sh IFCR importContent thesaurus /localdisk/apps/Discover/config/import/thesaurus 

The following example imports configuration for folder2 from a directory called folder2:

runcommand.sh IFCR importContent content/folder1/folder2 /localdisk/foo/content/folder1/folder2 

Recommended relative paths for importing public format content using importContent command

The following table lists the relative paths where public format content imported by the importContent command is best stored:

Importing an Application Configuration

The following command overwrites most Workbench content with the content stored in the folder specified as source:

 runcommand.sh IFCR importApplication source
            

importApplication imports the following types of Workbench content:

If a folder for a particular type of content is not present in the specified source folder or zip, that type of content is deleted from the Workbench upon import. Thus, if the phrases folder is not present in the specified source folder or zip, phrases will be deleted from the Workbench and the phrasing feature will not work.


Copyright © Legal Notices