mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Early checkpoint of lightweight ACLs.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -9,6 +9,8 @@ import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
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.security.AuthorityService;
|
||||
import org.alfresco.service.simple.permission.CapabilityRegistry;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationContextAware;
|
||||
|
||||
@@ -58,6 +60,16 @@ public class RawServices implements ApplicationContextAware
|
||||
*/
|
||||
private LookupCache fLookupCache;
|
||||
|
||||
/**
|
||||
* The Authority Service.
|
||||
*/
|
||||
private AuthorityService fAuthorityService;
|
||||
|
||||
/**
|
||||
* The CapabilityRegistry.
|
||||
*/
|
||||
private CapabilityRegistry fCapabilityRegistry;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
@@ -135,6 +147,25 @@ public class RawServices implements ApplicationContextAware
|
||||
return fLookupCache;
|
||||
}
|
||||
|
||||
public AuthorityService getAuthorityService()
|
||||
{
|
||||
if (fAuthorityService == null)
|
||||
{
|
||||
// TODO change this back to the unwrapped bean before production.
|
||||
fAuthorityService = (AuthorityService)fContext.getBean("AuthorityService");
|
||||
}
|
||||
return fAuthorityService;
|
||||
}
|
||||
|
||||
public CapabilityRegistry getCapabilityRegistry()
|
||||
{
|
||||
if (fCapabilityRegistry == null)
|
||||
{
|
||||
fCapabilityRegistry = (CapabilityRegistry)fContext.getBean("capabilityRegistry");
|
||||
}
|
||||
return fCapabilityRegistry;
|
||||
}
|
||||
|
||||
public ApplicationContext getContext()
|
||||
{
|
||||
return fContext;
|
||||
|
Reference in New Issue
Block a user