mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user