mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
77150: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 73977: ACE-1802 "MT / Cloud Restrict namespace URI of dynamic models." ACE-955 "Custom Content Models in Cloud" git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,8 +23,6 @@ import java.util.List;
|
||||
|
||||
import org.alfresco.repo.cache.DefaultSimpleCache;
|
||||
import org.alfresco.repo.cache.SimpleCache;
|
||||
import org.alfresco.repo.dictionary.DictionaryDAOImpl.DictionaryRegistry;
|
||||
import org.alfresco.repo.dictionary.NamespaceDAOImpl.NamespaceRegistry;
|
||||
import org.alfresco.repo.tenant.SingleTServiceImpl;
|
||||
import org.alfresco.repo.tenant.TenantService;
|
||||
|
||||
@@ -81,12 +79,11 @@ public class TestModel
|
||||
// construct dictionary dao
|
||||
TenantService tenantService = new SingleTServiceImpl();
|
||||
|
||||
NamespaceDAOImpl namespaceDAO = new NamespaceDAOImpl();
|
||||
namespaceDAO.setTenantService(tenantService);
|
||||
// NamespaceDAOImpl namespaceDAO = new NamespaceDAOImpl();
|
||||
// namespaceDAO.setTenantService(tenantService);
|
||||
// initNamespaceCaches(namespaceDAO);
|
||||
|
||||
initNamespaceCaches(namespaceDAO);
|
||||
|
||||
DictionaryDAOImpl dictionaryDAO = new DictionaryDAOImpl(namespaceDAO);
|
||||
DictionaryDAOImpl dictionaryDAO = new DictionaryDAOImpl();
|
||||
dictionaryDAO.setTenantService(tenantService);
|
||||
|
||||
initDictionaryCaches(dictionaryDAO);
|
||||
@@ -122,9 +119,9 @@ public class TestModel
|
||||
dictionaryDAO.setDictionaryRegistryCache(dictionaryCache);
|
||||
}
|
||||
|
||||
private static void initNamespaceCaches(NamespaceDAOImpl namespaceDAO)
|
||||
{
|
||||
SimpleCache<String, NamespaceRegistry> namespaceCache = new DefaultSimpleCache<String, NamespaceRegistry>();
|
||||
namespaceDAO.setNamespaceRegistryCache(namespaceCache);
|
||||
}
|
||||
// private static void initNamespaceCaches(NamespaceDAOImpl namespaceDAO)
|
||||
// {
|
||||
// SimpleCache<String, NamespaceRegistry> namespaceCache = new DefaultSimpleCache<String, NamespaceRegistry>();
|
||||
// namespaceDAO.setNamespaceRegistryCache(namespaceCache);
|
||||
// }
|
||||
}
|
Reference in New Issue
Block a user