public class SearchPath extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
| Constructor and Description |
|---|
SearchPath() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getDocument(String documentPath)
Gets a document from anywhere on the search path.
|
Store |
getStore(String storePath)
Gets the Web Script Store for the given Store path
|
Collection<Store> |
getStores()
Gets all Web Script Stores
|
boolean |
hasDocument(String documentPath)
Determines if the document exists anywhere on the search path
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setSearchPath(List<Store> searchPath) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListenerpublic Collection<Store> getStores()
public Store getStore(String storePath)
storePath - Stringpublic boolean hasDocument(String documentPath) throws IOException
documentPath - document pathIOExceptionpublic InputStream getDocument(String documentPath) throws IOException
documentPath - document pathIOExceptionCopyright © 2005–2019 Alfresco Software. All rights reserved.