org.alfresco.wcm.preview
Class URITemplatePreviewURIService
java.lang.Object
org.alfresco.wcm.preview.AbstractPreviewURIServiceProvider
org.alfresco.wcm.preview.URITemplatePreviewURIService
- All Implemented Interfaces:
- PreviewURIServiceProvider
public class URITemplatePreviewURIService
- extends AbstractPreviewURIServiceProvider
A PreviewURIService that takes a URI template and replaces the following parameters per request:
- {storeId} - the store Id of the preview request
- {pathToAsset} - the full path and filename of the asset being previewed (including a leading '/')
- Since:
- 3.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uriTemplate
protected java.lang.String uriTemplate
URITemplatePreviewURIService
public URITemplatePreviewURIService()
setUriTemplate
public void setUriTemplate(java.lang.String uriTemplate)
getPreviewURI
public java.lang.String getPreviewURI(java.lang.String storeId,
java.lang.String pathToAsset,
PreviewContext ignored)
- Specified by:
getPreviewURI
in interface PreviewURIServiceProvider
- Specified by:
getPreviewURI
in class AbstractPreviewURIServiceProvider
- Parameters:
storeId
- The sandbox store id to generate the preview URI for.pathToAsset
- The path to the asset to generate the preview URI for (can be null or empty, to return preview URL to store).ignored
- Additional preview context
- Returns:
- The Preview URI for the given sandbox and/or asset (may be null).
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.