mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Action web service implementation
- Simple Ruby web service examples - Outstanding work around persiatancy of models in the repository git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2094 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -99,6 +99,28 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
||||
// Publish new Model Definition
|
||||
compiledModels.put(modelName, compiledModel);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.repo.dictionary.DictionaryDAO#removeModel(org.alfresco.service.namespace.QName)
|
||||
*/
|
||||
public void removeModel(QName modelName)
|
||||
{
|
||||
CompiledModel compiledModel = this.compiledModels.get(modelName);
|
||||
if (compiledModel != null)
|
||||
{
|
||||
// Remove the namespaces from the namespace service
|
||||
M2Model model = compiledModel.getM2Model();
|
||||
for (M2Namespace namespace : model.getNamespaces())
|
||||
{
|
||||
namespaceDAO.removePrefix(namespace.getPrefix());
|
||||
namespaceDAO.removeURI(namespace.getUri());
|
||||
namespaceToModel.remove(namespace.getUri());
|
||||
}
|
||||
|
||||
// Remove the model from the list
|
||||
this.compiledModels.remove(modelName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user