public class CachingDynamicPageServiceImpl extends java.lang.Object implements DynamicPageService
| Constructor and Description |
|---|
CachingDynamicPageServiceImpl(PortalManager portalManager,
VelocityService velocityService)
Constructs and configures the service.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getResource(java.lang.String resourcePath)
Deprecated.
|
java.io.InputStream |
getResource(java.lang.String portalId,
java.lang.String resourceName)
Deprecated.
|
static java.lang.String |
getURL(javax.servlet.http.HttpServletRequest req,
com.googlecode.fascinator.common.JsonSimpleConfig config) |
java.lang.String |
render(java.lang.String portalId,
java.lang.String pageName,
java.io.OutputStream out,
FormData formData,
JsonSessionState sessionState)
Renders the Velocity template with the specified form data.
|
java.lang.String |
renderObject(org.apache.velocity.context.Context context,
java.lang.String template,
com.googlecode.fascinator.common.IndexAndPayloadComposite metadata) |
java.lang.String |
renderObject(org.apache.velocity.context.Context context,
java.lang.String template,
com.googlecode.fascinator.common.solr.SolrDoc metadata)
Renders a display template.
|
java.lang.String |
resourceExists(java.lang.String portalId,
java.lang.String resourceName)
Deprecated.
|
public CachingDynamicPageServiceImpl(PortalManager portalManager, VelocityService velocityService)
portalManager - PortalManager instancevelocityService - VelocityService instance@Deprecated public java.io.InputStream getResource(java.lang.String resourcePath)
getResource in interface DynamicPageServiceresourcePath - valid Velocity resource path@Deprecated
public java.io.InputStream getResource(java.lang.String portalId,
java.lang.String resourceName)
getResource in interface DynamicPageServiceportalId - the portal to get the resource fromresourceName - the resource to get@Deprecated
public java.lang.String resourceExists(java.lang.String portalId,
java.lang.String resourceName)
resourceExists in interface DynamicPageServiceportalId - the portal to get the resource fromresourceName - the resource to checkpublic java.lang.String render(java.lang.String portalId,
java.lang.String pageName,
java.io.OutputStream out,
FormData formData,
JsonSessionState sessionState)
render in interface DynamicPageServiceportalId - the portal to get the template frompageName - the page template to renderout - render results will be written to this output streamformData - request form datasessionState - current sessionpublic java.lang.String renderObject(org.apache.velocity.context.Context context,
java.lang.String template,
com.googlecode.fascinator.common.IndexAndPayloadComposite metadata)
renderObject in interface DynamicPageServicepublic java.lang.String renderObject(org.apache.velocity.context.Context context,
java.lang.String template,
com.googlecode.fascinator.common.solr.SolrDoc metadata)
renderObject in interface DynamicPageServicecontext - Velocity contexttemplate - display template namemetadata - Solr metadatapublic static java.lang.String getURL(javax.servlet.http.HttpServletRequest req,
com.googlecode.fascinator.common.JsonSimpleConfig config)
Copyright © 2009-2019. All Rights Reserved.