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 ScriptFactory

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


public class ScriptFactory
extends java.lang.Object

Handle the creation of the script template objects


Constructor Summary
ScriptFactory(ClientApplication clientApplication)
           

 

Method Summary
 ScriptTemplate createTemplate(RequestContext requestContext, java.lang.String path)
          Create the remote template for the given request context and path.
 ScriptProvider getScriptProvider(java.lang.String extension)
          Retrieve the script provider mapped to the given extension
 boolean isScriptEnabled()
           
 boolean isSupportedExtension(java.lang.String extension)
          Determine if the file name is a support script type
 void registerProvider(ScriptProvider scriptProvider, java.lang.String... extensions)
          Register a script provider with the given list of extensions

 

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

 

Constructor Detail

ScriptFactory

public ScriptFactory(ClientApplication clientApplication)

Method Detail

registerProvider

public void registerProvider(ScriptProvider scriptProvider,
                             java.lang.String... extensions)
Register a script provider with the given list of extensions
Parameters:
scriptProvider - the script provider
extensions - the list of extensions

isScriptEnabled

public boolean isScriptEnabled()
Returns:
true if remote scripting is enabled

isSupportedExtension

public boolean isSupportedExtension(java.lang.String extension)
Determine if the file name is a support script type
Parameters:
extension - the file extension
Returns:
if there is a mapping from the extension to the script type

getScriptProvider

public ScriptProvider getScriptProvider(java.lang.String extension)
Retrieve the script provider mapped to the given extension
Parameters:
extension - the extension
Returns:
the script provider or null

createTemplate

public ScriptTemplate createTemplate(RequestContext requestContext,
                                     java.lang.String path)
                              throws ApplicationException
Create the remote template for the given request context and path.
Parameters:
requestContext - the request context
path - the web path to the remote template
Returns:
the template object
Throws:
ApplicationException - if the template cannot be created

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.