public interface Registry
| Modifier and Type | Method and Description |
|---|---|
Match |
findWebScript(String method,
String uri)
Gets a Web Script given an HTTP Method and URI
|
Map<String,String> |
getFailedPackageDescriptionsByPath()
Gets all package description documents that fail to register
|
Map<String,String> |
getFailedSchemaDescriptionsByPath()
Gets all schema description documents that fail to register
|
Map<String,String> |
getFailures()
Gets all Web Script definitions that failed to register
|
Path |
getFamily(String familyPath)
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 packagePath)
Gets a Web Script Package
|
PackageDescriptionDocument |
getPackageDescriptionDocument(String scriptPackage)
Gets a package description document given a webscript package
|
Collection<PackageDescriptionDocument> |
getPackageDescriptionDocuments()
Returns the whole list of package description documents
|
SchemaDescriptionDocument |
getSchemaDescriptionDocument(String schemaId)
Gets a schema description document given a schema id
|
Collection<SchemaDescriptionDocument> |
getSchemaDescriptionDocuments()
Returns the whole list of schema description documents
|
TypeDescription |
getSchemaTypeDescriptionById(String typeId)
Gets a schema type description given a schema type id
|
Path |
getUri(String uriPath)
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
|
Path getPackage(String packagePath)
packagePath - StringPath getUri(String uriPath)
uriPath - StringPath getFamily(String familyPath)
familyPath - StringPath getLifecycle(String lifecyclePath)
lifecyclePath - StringCollection<WebScript> getWebScripts()
Map<String,String> getFailures()
WebScript getWebScript(String id)
id - web script idMatch findWebScript(String method, String uri)
method - http methoduri - urivoid reset()
PackageDescriptionDocument getPackageDescriptionDocument(String scriptPackage)
scriptPackage - webscript packageSchemaDescriptionDocument getSchemaDescriptionDocument(String schemaId)
schemaId - schema idCollection<PackageDescriptionDocument> getPackageDescriptionDocuments()
Collection<SchemaDescriptionDocument> getSchemaDescriptionDocuments()
TypeDescription getSchemaTypeDescriptionById(String typeId)
typeId - schema type idMap<String,String> getFailedPackageDescriptionsByPath()
Copyright © 2005–2021 Alfresco Software. All rights reserved.