1 17 package org.alfresco.repo.dictionary; 18 19 import java.util.Collection ; 20 21 import org.alfresco.service.namespace.NamespaceService; 22 23 24 29 public class DictionaryNamespaceComponent implements NamespaceService 30 { 31 32 35 private NamespaceDAO namespaceDAO; 36 37 38 43 public void setNamespaceDAO(NamespaceDAO namespaceDAO) 44 { 45 this.namespaceDAO = namespaceDAO; 46 } 47 48 49 52 public Collection <String > getURIs() 53 { 54 return namespaceDAO.getURIs(); 55 } 56 57 58 61 public Collection <String > getPrefixes() 62 { 63 return namespaceDAO.getPrefixes(); 64 } 65 66 67 70 public String getNamespaceURI(String prefix) 71 { 72 return namespaceDAO.getNamespaceURI(prefix); 73 } 74 75 76 79 public Collection <String > getPrefixes(String namespaceURI) 80 { 81 return namespaceDAO.getPrefixes(namespaceURI); 82 } 83 84 85 88 public void registerNamespace(String prefix, String uri) 89 { 90 throw new UnsupportedOperationException (); 92 } 93 94 95 98 public void unregisterNamespace(String prefix) 99 { 100 throw new UnsupportedOperationException (); 102 } 103 104 } 105 | Popular Tags |