Show TOC

portalapp.xmlLocate this document in the navigation structure

Use

The portalapp.xml file (deployment descriptor) provides configuration information for your application, and defines the components and services in your application. For each component and service, you specify the implementing Java class and configuration information.

For more information on the format of the portalapp.xml , see Deployment Descriptor (portalapp.xml) .

Procedure

When you created the mySiteMapProject project via the SAP NetWeaver Developer Studio wizard, a default portalapp.xml file was created. And when you created the mySiteMap.java class via the wizard, the <component> element for the component was automatically added, along with a ClassName property that specifies the implementing Java class.

Modify this portalapp.xml file as follows:

  1. This tutorial uses various navigation services, so you must add references to the following portal applications that define these services:

    • com.sap.portal.navigation.service

    • com.sap.portal.navigation.api_mimeservice

    • com.sap.portal.navigation.helperservice

  2. In the <application-config> section, create the following properties that help to define the security zone for all components and services in this application:

    • Vendor : String identifying the company or organization that provided the application, for example, sap.com .

    • SecurityArea : String identifying the security area for the application, for example, NetWeaver.portal .

  3. In the <component-config> section for the mySiteMap component, create the property SecurityZone to define the specific security zone for the component.

For more information on security zones and permissions, see Permission Model .

Result

The following is the portalapp.xml for this tutorial:

<application>
  <application-config>
    <property name="SharingReference" value="com.sap.portal.navigation.service, com.sap.portal.navigation.api_mimeservice, com.sap.portal.navigation.helperservice"/>
    <property name="Vendor" value="myComponent.com"/>
    <property name="SecurityArea" value="CustomComponents"/>
  </application-config>
  <components>
    <component name="SimpleNavigationExample">
      <component-config>
        <property name="ClassName" value="mySiteMap"/>
        <property name="SecurityZone" value="no_safety"/>
      </component-config>
      <component-profile/>
    </component>
  </components>
  <services/>
</application>