mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
First-cut dynamic Dictionary & Namespaces - updated caches to be cluster-aware & tenant-aware
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6675 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,9 +27,9 @@ package org.alfresco.repo.dictionary;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.repo.tenant.TenantDeployer;
|
||||
import org.alfresco.service.cmr.dictionary.AspectDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.AssociationDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.ClassDefinition;
|
||||
@@ -48,7 +48,7 @@ import org.alfresco.util.ParameterCheck;
|
||||
*
|
||||
* @author David Caruana
|
||||
*/
|
||||
public class DictionaryComponent implements DictionaryService
|
||||
public class DictionaryComponent implements DictionaryService, TenantDeployer
|
||||
{
|
||||
private DictionaryDAO dictionaryDAO;
|
||||
|
||||
@@ -339,6 +339,26 @@ public class DictionaryComponent implements DictionaryService
|
||||
}
|
||||
return props;
|
||||
}
|
||||
|
||||
public void init()
|
||||
{
|
||||
dictionaryDAO.init();
|
||||
}
|
||||
|
||||
public void destroy()
|
||||
{
|
||||
dictionaryDAO.destroy();
|
||||
}
|
||||
|
||||
public void onEnableTenant()
|
||||
{
|
||||
dictionaryDAO.reset(); // to initialise empty dictionary and re-populate
|
||||
}
|
||||
|
||||
public void onDisableTenant()
|
||||
{
|
||||
dictionaryDAO.destroy();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user