cancel
Showing results for 
Search instead for 
Did you mean: 

Namespace Prefix/URI Mappings

buge
Champ in-the-making
Champ in-the-making
Is there any way to access the namespace prefix / URI mappings via the Web Service API?
1 REPLY 1

rliu
Champ in-the-making
Champ in-the-making
If you haven't done so yet, you should review org.alfresco.service.namespace.NamespaceService.java. There are out-of-box namespace prefix and URIs.

You can also use the following in your Java-backed webscript controller to obtain both Alfresco and any custom content model that you may have registered:


Collection<String> prefixes = serviceRegistry.getNamespaceService().getPrefixes();
Collection<String> uris = serviceRegistry.getNamespaceService().getURIs();