Description Syntax Example exportWebCenterResource

Oracle WebCenter Custom WLST Commands 10-201

10.22.5.3 Example

The following example imports Spaces or Space templates from a WebCenter archive named myExport.ear to a WebCenter Spaces application named webcenter. wls:weblogicserverConfig importGroupSpacesappName=webcenter, fileName=myExport.ear

10.22.6 exportWebCenterResource

Module: Oracle WebCenter Use with WLST: Online

10.22.6.1 Description

Exports a single portal resource to a WebCenter export archive .EAR, using the filename specified.

10.22.6.2 Syntax

exportWebCenterResourceappName, fileName, resourceType, resourceGUID, [spaceName, server, applicationVersion] importData Optional. Indicates whether to import data from the WebCenter export archive. Valid values are 1 and 0. When set to 1, Space-related data stored in the WebCenter Spaces database for various WebCenter services Activity Streams, Events, Feedback, Lists, Links, Message Boards, People Connections, Profiles, and Tags is imported. When set to 0, this data is not imported. This option is useful when migrating between stage and production environments and where test data is no longer required. This argument defaults to 1. forceOffline Optional. Takes the Spaces offline before import. Valid values are 1 and 0. When set to 1, all Spaces are taken offline. This argument defaults to 0. parentSpace Optional. Name of the parent Space under which to place Spaces in the WebCenter archive. If specified, imported Spaces become children of the parent Space. This argument defaults to null. When no parent is specified, archived Spaces are imported as root Spaces. Note: If the WebCenter archive contains Space templates, this argument is ignored. server Optional. Name of the managed server where the WebCenter application is deployed. For example, WC_Spaces. Required when applications with the same name are deployed to different servers and also when you have a cluster. applicationVersion Optional. Version number of the deployed application. Required if more than one version of the WebCenter application is deployed. Argument Definition appName Name of the WebCenter application in which to perform this operation. Argument Definition 10-202 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

10.22.6.3 Example

The following example exports a page template from MySpace to a local file named myPageTemplateExport.ear: wls:weblogicserverConfig exportWebCenterResourceappName=webcenter, fileName=myPageTemplateExport.ear, resourceType=pageTemplate, resourceGUID=gsr47d9a5ac_7398_439a_97d2_8b54ce905f7e, spaceName=MySpace The following example exports a skin from a WebCenter Portal application named myPortalApp to a local file named mySkinExport.ear: wls:weblogicserverConfig exportWebCenterResourceappName=myPortalApp, fileName=mySkinExport.ear, resourceType=skin, resourceGUID=gsr47d9a5ac_7398_439a_97d2_8b54ce905f7e

10.22.7 importWebCenterResource