# com.bea.jsptools.portal
PortalChildNodesHelper Class

public class PortalChildNodesHelper
extends `Object`

Helper class for getting and potentially caching .portal file template list. Templates will be cached by web app if the enterprise app is EAR'd or if running in production mode. This is because that's the only time that you can be sure that .portal files won't be added or deleted unless there is a redeploy or server restart. If all .portal files are located in the same directory, more efficient way of attaining this list can be used. To do this, a context-param needs to be added to the web.xml of the web app. For example: portalFileDirectory / In the above example, the .portal files for that particular web app, would be located in the root dir of the web app.

Hierarchy
  `Object`
  `PortalChildNodesHelper`

## Constructor Summary

PortalChildNodesHelper()

## Method Summary

`public static `String`[]` | `getPortalTemplates`(`HttpServletRequest` request, `String` currentWebAppInc) Get list of .portal files for a particular web app, caching it if enterprise app is deployed as EAR file, or if app is running in production mode.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Detail

### PortalChildNodesHelper

    public PortalChildNodesHelper()

## Method Detail

### getPortalTemplates(HttpServletRequest, String) Method

    public static String[] getPortalTemplates(HttpServletRequest request,
                                            String currentWebAppInc)

Get list of .portal files for a particular web app, caching it if enterprise app is deployed as EAR file, or if app is running in production mode.

#### Returns

String[] containing list of .portal file names