Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.client.script
Class ScriptTemplateHelper

java.lang.Object
  extended by oracle.stellent.wcm.client.script.ScriptTemplateHelper


public abstract class ScriptTemplateHelper
extends java.lang.Object

Helper methods for working with templates


Constructor Summary
ScriptTemplateHelper()
           

 

Method Summary
static ContentURI getContentUri(ClientApplication clientApplication, java.lang.String velocityPath)
          Retrieve the ContentURI for the given external velocity path.
static boolean isTemplateApplicationPath(ClientApplication clientApplication, java.lang.String templatePath)
          Determine if the template path is an application template (i.e.
static java.lang.String normalizePath(ClientApplication clientApplication, java.lang.String velocityPath)
          Normalize the path by removing the '/wcm/app' prefix

 

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

 

Constructor Detail

ScriptTemplateHelper

public ScriptTemplateHelper()

Method Detail

getContentUri

public static ContentURI getContentUri(ClientApplication clientApplication,
                                       java.lang.String velocityPath)
                                throws oracle.stellent.ridc.IdcClientException,
                                       java.io.IOException
Retrieve the ContentURI for the given external velocity path.
Parameters:
clientApplication - the client application
velocityPath - the velocity path
Returns:
the normalized path
Throws:
oracle.stellent.ridc.IdcClientException
java.io.IOException

isTemplateApplicationPath

public static boolean isTemplateApplicationPath(ClientApplication clientApplication,
                                                java.lang.String templatePath)
Determine if the template path is an application template (i.e. starts with '/wcm/app')
Parameters:
clientApplication - the client application
templatePath - the path
Returns:
true if this is a template path

normalizePath

public static java.lang.String normalizePath(ClientApplication clientApplication,
                                             java.lang.String velocityPath)
Normalize the path by removing the '/wcm/app' prefix
Parameters:
clientApplication - the client application
velocityPath - the velocity path
Returns:
the normalized path

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.