public class DeclarativeRegistry extends Object implements Registry, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
WEBSCRIPT_DESC_XML
Filename extension for webscript descriptor paths
|
| Constructor and Description |
|---|
DeclarativeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Match |
findWebScript(String method,
String uri)
Gets a Web Script given an HTTP Method and URI
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the Application Context
Changed from protected to public is for Dev Tools FreeMarker Editor plugin
|
Map<String,String> |
getFailedPackageDescriptionsByPath()
Returns list of package description documents that fail to register
|
Map<String,String> |
getFailedSchemaDescriptionsByPath()
Returns list of schema description documents that fail to register
|
Map<String,String> |
getFailures()
Gets all Web Script definitions that failed to register
|
Path |
getFamily(String scriptUri)
Gets a Web Script Family
NOTE:
- To get all families, pass /
- To get a specific family, pass /{familyName}
|
Path |
getLifecycle(String lifecyclePath)
Gets a Lifecycle Family, for example, all deprecated web scripts
NOTE:
- To get all lifecycles, pass /
- To get a specific lifecycle, pass /{lifecycleName}
|
Path |
getPackage(String scriptPackage)
Gets a Web Script Package
|
PackageDescriptionDocument |
getPackageDescriptionDocument(String scriptPackage)
Returns package description document with the given webscript package
|
Collection<PackageDescriptionDocument> |
getPackageDescriptionDocuments()
Returns list of package description documents
|
SchemaDescriptionDocument |
getSchemaDescriptionDocument(String schemaId)
Returns schema description document with the given id.
|
Collection<SchemaDescriptionDocument> |
getSchemaDescriptionDocuments()
Returns list of schema description documents
|
TypeDescription |
getSchemaTypeDescriptionById(String typeId)
Returns schema type description document with given id
|
Path |
getUri(String scriptUri)
Gets a Web Script URL
|
WebScript |
getWebScript(String id)
Gets a Web Script by Id
|
Collection<WebScript> |
getWebScripts()
Gets all Web Scripts
|
void |
reset()
Resets the Web Script Registry
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setContainer(Container container) |
void |
setDefaultWebScript(String defaultWebScript) |
void |
setSearchPath(SearchPath searchPath) |
void |
setUriIndex(UriIndex uriIndex) |
public static final String WEBSCRIPT_DESC_XML
public void setDefaultWebScript(String defaultWebScript)
defaultWebScript - Stringpublic void setUriIndex(UriIndex uriIndex)
uriIndex - UriIndexpublic void setSearchPath(SearchPath searchPath)
searchPath - SearchPathpublic void setContainer(Container container)
container - Containerpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic org.springframework.context.ApplicationContext getApplicationContext()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void reset()
Registrypublic Path getPackage(String scriptPackage)
RegistrygetPackage in interface RegistryscriptPackage - Stringpublic Path getUri(String scriptUri)
Registrypublic Path getFamily(String scriptUri)
Registrypublic Collection<WebScript> getWebScripts()
RegistrygetWebScripts in interface Registrypublic Map<String,String> getFailures()
RegistrygetFailures in interface Registrypublic WebScript getWebScript(String id)
RegistrygetWebScript in interface Registryid - web script idpublic Match findWebScript(String method, String uri)
RegistryfindWebScript in interface Registrymethod - http methoduri - uripublic Path getLifecycle(String lifecyclePath)
RegistrygetLifecycle in interface RegistrylifecyclePath - Stringpublic PackageDescriptionDocument getPackageDescriptionDocument(String scriptPackage)
getPackageDescriptionDocument in interface RegistryscriptPackage - webscript packagepublic SchemaDescriptionDocument getSchemaDescriptionDocument(String schemaId)
getSchemaDescriptionDocument in interface RegistryschemaId - schema idpublic Collection<PackageDescriptionDocument> getPackageDescriptionDocuments()
getPackageDescriptionDocuments in interface Registrypublic Collection<SchemaDescriptionDocument> getSchemaDescriptionDocuments()
getSchemaDescriptionDocuments in interface Registrypublic TypeDescription getSchemaTypeDescriptionById(String typeId)
getSchemaTypeDescriptionById in interface RegistrytypeId - id for schema description documentpublic Map<String,String> getFailedPackageDescriptionsByPath()
getFailedPackageDescriptionsByPath in interface Registrypublic Map<String,String> getFailedSchemaDescriptionsByPath()
getFailedSchemaDescriptionsByPath in interface RegistryCopyright © 2005–2019 Alfresco Software. All rights reserved.