public class JCRResourceResolver
extends org.exoplatform.resolver.ResourceResolver
| Modifier and Type | Field and Description |
|---|---|
protected String |
propertyName |
protected String |
repository |
protected String |
workspace |
| Constructor and Description |
|---|
JCRResourceResolver(String workspace)
Instantiates a new jCR resource resolver to load template that stored as a
property of node in jcr
|
| Modifier and Type | Method and Description |
|---|---|
String |
createResourceId(String url) |
org.exoplatform.resolver.ResourceKey |
createResourceKey(String url) |
InputStream |
getInputStream(String url) |
List<InputStream> |
getInputStreams(String url) |
URL |
getResource(String url) |
List<URL> |
getResources(String url) |
String |
getResourceScheme() |
boolean |
isModified(String url,
long lastAccess) |
protected String repository
protected String workspace
protected String propertyName
public JCRResourceResolver(String workspace)
workspace - the workspacepublic URL getResource(String url) throws Exception
getResource in class org.exoplatform.resolver.ResourceResolverExceptionpublic InputStream getInputStream(String url) throws Exception
getInputStream in class org.exoplatform.resolver.ResourceResolverurl - URL must be like jcr:path with path is node pathExceptionResourceResolver.getInputStream(java.lang.String)public List<URL> getResources(String url) throws Exception
getResources in class org.exoplatform.resolver.ResourceResolverExceptionpublic List<InputStream> getInputStreams(String url) throws Exception
getInputStreams in class org.exoplatform.resolver.ResourceResolverExceptionpublic boolean isModified(String url, long lastAccess)
isModified in class org.exoplatform.resolver.ResourceResolverpublic String createResourceId(String url)
createResourceId in class org.exoplatform.resolver.ResourceResolverpublic org.exoplatform.resolver.ResourceKey createResourceKey(String url)
createResourceKey in class org.exoplatform.resolver.ResourceResolverpublic String getResourceScheme()
getResourceScheme in class org.exoplatform.resolver.ResourceResolverCopyright © 2003–2019 eXo Platform SAS. All rights reserved.