/* * Copyright (C) 2005-2010 Alfresco Software Limited. * * This file is part of Alfresco * * Alfresco is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Alfresco is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Alfresco. If not, see . */ package org.alfresco.repo.dictionary; import org.alfresco.service.namespace.NamespacePrefixResolver; /** * Namespace DAO Interface. * * This DAO is responsible for retrieving and creating Namespace definitions. * * @author David Caruana */ public interface NamespaceDAO extends NamespacePrefixResolver { /** * Add a namespace URI * * @param uri the namespace uri to add */ public void addURI(String uri); /** * Remove the specified URI * * @param uri the uri to remove */ public void removeURI(String uri); /** * Add a namespace prefix * * @param prefix the prefix * @param uri the uri to prefix */ public void addPrefix(String prefix, String uri); /** * Remove a namspace prefix * * @param prefix the prefix to remove */ public void removePrefix(String prefix); /** * Initialise Namespaces */ public void init(); public void afterDictionaryInit(); /** * Destroy Namespaces */ public void destroy(); /** * Register with the Dictionary */ public void registerDictionary(DictionaryDAO dictionaryDAO); }