Marking of AVM Nodes with Aspects works (according to some minimal tests).

Schema has been updated, DAO written, garbage collection updated to clean
out aspects.  Also some seemingly unnecessary changes in visibility 
declarations to deal with strange intermittent Spring wiring failures in 
one of my tests.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3560 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-08-22 01:22:01 +00:00
parent 26877f6105
commit d67b926589
16 changed files with 716 additions and 17 deletions

View File

@@ -4,6 +4,7 @@
package org.alfresco.repo.avm;
import org.alfresco.repo.content.ContentStore;
import org.alfresco.service.cmr.dictionary.DictionaryService;
import org.alfresco.service.cmr.repository.ContentService;
import org.alfresco.service.cmr.repository.MimetypeService;
import org.springframework.context.ApplicationContext;
@@ -81,6 +82,11 @@ public class AVMContext implements ApplicationContextAware
*/
public AVMStorePropertyDAO fAVMStorePropertyDAO;
/**
* The AVMAspectNameDAO
*/
public AVMAspectNameDAO fAVMAspectNameDAO;
/**
* The ContentService.
*/
@@ -101,6 +107,11 @@ public class AVMContext implements ApplicationContextAware
*/
private ContentStore fContentStore;
/**
* The DictionaryService
*/
private DictionaryService fDictionaryService;
/**
* The application context.
*/
@@ -193,6 +204,11 @@ public class AVMContext implements ApplicationContextAware
fAVMStorePropertyDAO = avmStorePropertyDAO;
}
public void setAvmAspectNameDAO(AVMAspectNameDAO avmAspectNameDAO)
{
fAVMAspectNameDAO = avmAspectNameDAO;
}
/**
* Get the Content Service.
* @return The ContentService object.
@@ -244,4 +260,18 @@ public class AVMContext implements ApplicationContextAware
}
return fContentStore;
}
/**
* Get the DictionaryService.
* @return The dictionary service.
*/
public DictionaryService getDictionaryService()
{
if (fDictionaryService == null)
{
// TODO Should this be DictionaryService or dictionaryService.
fDictionaryService = (DictionaryService)fAppContext.getBean("dictionaryService");
}
return fDictionaryService;
}
}