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