com.autotrader.rhythmyx
Class AssemblyTools

java.lang.Object
  extended by com.percussion.extension.PSJexlUtilBase
      extended by com.autotrader.rhythmyx.AssemblyTools
All Implemented Interfaces:
com.percussion.extension.IPSExtension, com.percussion.extension.IPSJexlExpression

public class AssemblyTools
extends com.percussion.extension.PSJexlUtilBase

A JEXL tool that provides a quick, simple alternative to using macros that build arbitrary assembly items.


Field Summary
 
Fields inherited from interface com.percussion.extension.IPSExtension
BINARY_ASSEMBLER, DATABASE_ASSEMBLER, DEBUG_ASSEMBLER, DISPATCH_ASSEMBLER, ERROR_INVALID_PARAMETER, KNOWN_ASSEMBLERS, LEGACY_ASSEMBLER, NOT_INITIALIZED, VELOCITY_ASSEMBLER
 
Constructor Summary
AssemblyTools()
           
 
Method Summary
 com.percussion.services.assembly.IPSAssemblyResult assemble(com.percussion.services.assembly.IPSAssemblyItem parentItem, java.util.Map<java.lang.String,java.lang.String[]> params)
          Assembles any arbitrary content item.
 com.percussion.services.assembly.IPSAssemblyResult assemble(com.percussion.services.assembly.IPSAssemblyItem parentItem, java.lang.String params)
          Assembles any arbitrary content item.
 com.percussion.services.assembly.IPSAssemblyItem createAssemblyItem(com.percussion.services.assembly.IPSAssemblyItem parentItem, java.util.Map<java.lang.String,java.lang.String[]> params)
          Creates an assembly item for any arbitrary content item.
 com.percussion.services.assembly.IPSAssemblyItem createAssemblyItem(com.percussion.services.assembly.IPSAssemblyItem parentItem, java.lang.String params)
          Creates an assembly item for any arbitrary content item.
 
Methods inherited from class com.percussion.extension.PSJexlUtilBase
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblyTools

public AssemblyTools()
Method Detail

createAssemblyItem

public com.percussion.services.assembly.IPSAssemblyItem createAssemblyItem(com.percussion.services.assembly.IPSAssemblyItem parentItem,
                                                                           java.util.Map<java.lang.String,java.lang.String[]> params)
                                                                    throws java.lang.Throwable
Creates an assembly item for any arbitrary content item.

Parameters:
parentItem - the parent assembly item, never null. The parent item is cloned for the assembly.
params - the parameters for the new assembly item. These parameters will be combined with the parent item's parameters to make a complete set of parameters. I.e.: you only need to specify parameters that are different.
Throws:
java.lang.Throwable

createAssemblyItem

public com.percussion.services.assembly.IPSAssemblyItem createAssemblyItem(com.percussion.services.assembly.IPSAssemblyItem parentItem,
                                                                           java.lang.String params)
                                                                    throws java.lang.Throwable
Creates an assembly item for any arbitrary content item.

Parameters:
parentItem - the parent assembly item, never null. The parent item is cloned for the assembly.
params - the parameters for the new assembly item as a query-string. These parameters will be combined with the parent item's parameters to make a complete set of parameters. I.e.: you only need to specify parameters that are different.
Throws:
java.lang.Throwable

assemble

public com.percussion.services.assembly.IPSAssemblyResult assemble(com.percussion.services.assembly.IPSAssemblyItem parentItem,
                                                                   java.util.Map<java.lang.String,java.lang.String[]> params)
                                                            throws java.lang.Throwable
Assembles any arbitrary content item.

Parameters:
parentItem - the parent assembly item, never null. The parent item is cloned for the assembly.
params - the parameters for the new assembly item. These parameters will be combined with the parent item's parameters to make a complete set of parameters. I.e.: you only need to specify parameters that are different.
Throws:
java.lang.Throwable

assemble

public com.percussion.services.assembly.IPSAssemblyResult assemble(com.percussion.services.assembly.IPSAssemblyItem parentItem,
                                                                   java.lang.String params)
                                                            throws java.lang.Throwable
Assembles any arbitrary content item.

Parameters:
parentItem - the parent assembly item, never null. The parent item is cloned for the assembly.
params - the parameters for the new assembly item as a query-string. These parameters will be combined with the parent item's parameters to make a complete set of parameters. I.e.: you only need to specify parameters that are different.
Throws:
java.lang.Throwable