mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added aspect cm:mounted, and dispatchers in DbNodeServiceImpl to allow
cross repository type browsing. The Node Browser seems to work happily with this. The UI can traverse a mounpoint but errors out when trying to browse further down into an AVM store, because its being naughty and peeking into NodeRefs. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3649 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -7,6 +7,8 @@ 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.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.security.AuthenticationService;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationContextAware;
|
||||
|
||||
@@ -111,6 +113,13 @@ public class AVMContext implements ApplicationContextAware
|
||||
* The DictionaryService
|
||||
*/
|
||||
private DictionaryService fDictionaryService;
|
||||
|
||||
/**
|
||||
* The Node Service.
|
||||
*/
|
||||
private NodeService fNodeService;
|
||||
|
||||
private AuthenticationService fAuthenticationService;
|
||||
|
||||
/**
|
||||
* The application context.
|
||||
@@ -274,4 +283,26 @@ public class AVMContext implements ApplicationContextAware
|
||||
}
|
||||
return fDictionaryService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the NodeService
|
||||
* @return The Node service.
|
||||
*/
|
||||
public NodeService getNodeService()
|
||||
{
|
||||
if (fNodeService == null)
|
||||
{
|
||||
fNodeService = (NodeService)fAppContext.getBean("NodeService");
|
||||
}
|
||||
return fNodeService;
|
||||
}
|
||||
|
||||
public AuthenticationService getAuthenticationService()
|
||||
{
|
||||
if (fAuthenticationService == null)
|
||||
{
|
||||
fAuthenticationService = (AuthenticationService)fAppContext.getBean("AuthenticationService");
|
||||
}
|
||||
return fAuthenticationService;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user