Show TOC

XML Script for Admin Studio ConfigurationLocate this document in the navigation structure

Use

Each admin studio instance contains an admin studio configuration object, whose object class is com.sap.portal.admin.studio.config . The configuration object contains <context> elements for defining the following sections:

  • Entry Points

  • Actions

  • Toolbar Actions

  • Startup Actions

  • Action Providers

Procedure

XML Outline

The XML script for creating and configuring an admin studio instance has the following structure:

  • <Context> - Delta link to admin studio template

    • <Context> - Delta link to admin studio configuration

      • <Attribute> - Specify action providers

      • <Context> - Start of entry points

        • <Context> - Delta links to entry points

          • <Attribute> - Object types to display

          • <Attribute> - A list of specific objects to exclude

      • <Context> - Start of actions

        • <Context> - Delta links to actions

        • <Attribute> - Configure action (object types, required permissions)

        • <Context> - Submenus

          • <Context> - Delta links to actions

      • <Context> - Start of startup actions

        • <Context> - Delta links to startup actions

      • <Context> - Start of toolbar actions

        • <Context> - Delta links to toolbar actions

      • <Context> - Define action

    Note

    The order of sections within the <context> elements for the admin studio instance in the script is not significant.

Example

The following is a sample XML script for creating and configuring an admin studio instance.

            <?xml version="1.0" encoding="utf-8"?>
 
<!-- Root GenericCreator tag -->
<GenericCreator mode="execute" createMode="3" report.level="success" 
   default.responsible="I027573" default.locale="en" ignore="false">
 
<Property name="namespace" value="com.sap.portal" />
<Property name="locale" value="en" />
<Property name="adminStudioNs" value="com.sap.portal.admin.studio.config" />
<Property name="pcdFolder" value="com.sap.portal.pcd.gl.GlContext" />
<Property name="pcmFolder" value="com.sap.portal.pcm.admin.PlainFolderConverter" />
<Property name="collection" value="IP_PTL_INITIAL_CONTENT" />
 
<!-- Specifies folder in which to create admin studio instance -->
<Context name="portal_content" objectClass="com.sap.portal.pcd.gl.GlContext"
title="Portal Content">
 
<!-- ****************************************************** -->
<!-- Creates a delta link to the admin studio page template -->
<!-- ****************************************************** -->
<Context name="${namespace}.wd_portal_content" template="portal_content/com.sap.pct/admin.templates/pages/com.sap.portal.admin_studio_page" objectClass="com.sapportals.portal.page" create_as="1" 
title="My Admin Studio">
 
<!-- Specifies properties for new object -->
<Attributes>
   <Attribute name="com.sap.portal.navigation.Invisible" type="string" 
   isOrdered="true">
   <AttributeValue value="false" />
   </Attribute>
 
   <!-- ... Other attributes -->
 
</Attributes>
 
<!-- ********************************************************* -->
<!-- Specifies the configuration for the admin studio instance -->
<!-- ********************************************************* -->
 
<Context name="${namespace}.admin.studio.configuration"
objectClass="${adminStudioNs}.adminstudio" 
title="Administration Studio Configuration" create_as="0"
collection="${collection}" domain="EP" originalLocale="${locale}">
 
<!-- ****************************** -->
<!-- Specifies the action providers -->
<!-- ****************************** -->
<Attributes>
   <Attribute name="${adminStudioNs}.action.wdActionProviders">
   <AttributeValue value="sap.com/tc~pp~adm~tls~advop_actions/com.sap.portal.adminstudio.AdvOpActio   nProvider" />
   <AttributeValue value="sap.com/tc~pp~adm~tls~gpal_actions/com.sap.portal.gpal.adminstudio.action   s.GpalActionProvider" />
   </Attribute>
</Attributes>
 
<!-- ************************** -->
<!-- Specifies the entry points -->
<!-- ************************** -->
<Context name="pcmEntryPoints" objectClass="${pcdFolder}">
 
<Context name="${namespace}.PortalContent" template="portal_content/com.sap.pct/admin.templates/adminstudio.pcmentrypoints/${namespace}.PortalContent" objectClass="${adminStudioNs}.pcmentrypoint" create_as="1">
<Attributes>
   <Attribute name="${adminStudioNs}.pcmentrypoint.structureFilter">
   <AttributeValue value="${pcmFolder}=${pcmFolder}" />
   <AttributeValue value="${pcmFolder}=com.sapportals.portal.iview" />
   <AttributeValue value="${pcmFolder}=com.sapportals.portal.page" />
   <AttributeValue value="${pcmFolder}=com.sapportals.portal.role" />
 
   <!-- ... Other object types-->
   </Attribute>
 
<!- Specific objects to exclude and not display in the catalog-- >
   <Attribute name="${adminStudioNs}.pcmentrypoint.excludedObjects">
   <AttributeValue
value="30:pcd:portal_content/com.sap.pct40:pcd:portal_content/every_user/PCCAuthors41:pcd:portal_content/pcc_portal_application32:pcd:portal_content/templates/pcc"/>
   </Attribute>
 
</Attributes>
</Context>
 
<!-- ... Other entry points-->
 
</Context>
 
<!-- ***************************** -->
<!-- Specifies the startup actions -->
<!-- ***************************** -->
 
<Context name="startupActions" title="Startup Actions"
objectClass="${pcdFolder}" responsible="I123456">
 <Context name="${namespace}.action.MyAction"
objectClass="${adminStudioNs}.action" create_as="1"
template="portal_content/MyContent/${namespace}.MyAction" /> 
</Context>
 
<!-- ********************* -->
<!-- Specifies the actions -->
<!-- ********************* -->
<Context name="actions" title="Actions" objectClass="${pcdFolder}">
 
<Context name="new" title="New" objectClass="${pcdFolder}">
<Context name="${namespace}.action.newPage" title="Page" objectClass="${adminStudioNs}.action" create_as="1" template="portal_content/com.sap.pct/admin.templates/adminstudio.actions/${namespace}.action.page_wizard" />
<Context name="${namespace}.action.newIView" title="iView" objectClass="${adminStudioNs}.action" create_as="1" template="portal_content/com.sap.pct/admin.templates/adminstudio.actions/${namespace}.action.iview_wizard" />
</Context>
<Context name="open" title="Open" objectClass="${pcdFolder}">
 <Context name="${namespace}.action.pageeditor_editdefault" title="Page" objectClass="${adminStudioNs}.action" create_as="1" template="portal_content/com.sap.pct/admin.templates/adminstudio.actions/${namespace}.action.pageeditor" />
<Context name="${namespace}.action.tracedeltalinks" title="Delta Link Tracer" objectClass="${adminStudioNs}.action" create_as="1" template="portal_content/com.sap.pct/admin.templates/adminstudio.actions/${namespace}.action.tracedeltalinks">
 
<Attributes>
   <Attribute name="${adminStudioNs}.action.required.objectTypes">
   <AttributeValue value="com.sapportals.portal.page" />
   <AttributeValue value="com.sapportals.portal.iview" />
   <AttributeValue value="com.sap.portal.workcenter" />
   <AttributeValue value="com.sap.portal.controlcenter" />
   <AttributeValue value="com.sapportals.portal.workset" />
   <AttributeValue value="com.sapportals.portal.role" />
   <AttributeValue value="com.sapportals.portal.layout" />
    </Attribute>
</Attributes>
</Context>
 
<!-- ... Other actions -->
 
</Context>
</Context>
</Context>
</Context>
</Context>
</GenericCreator>