Skip to Content
Former Member
Dec 05, 2007 at 02:14 PM

IResourceACLManager.getAcl(resource) is returning NULL: why????


Hi Experts,

I am using the following ode in my portal service

IResourceFactory factory = ResourceFactory.getInstance();

RID rid = RID.getRID("/documents/New text.txt");

IResourceContext context = new ResourceContext(mm_user);

IResource resource = factory.getResource(rid,context);

IAclSecurityManager iAclSecManager = (IAclSecurityManager)resource.getRepositoryManager().getSecurityManager(resource);

IResourceAclManager resAclManager = iAclSecManager.getAclManager();

IResourceAcl resAcl = resAclManager.getAcl(resource);

I m getting everything correct except at the last statement "IResourceAcl resAcl = resAclManager.getAcl(resource);". In this statement resAclManager.getAcl(resource); is returning null to me.

Can anyone suggest what m i doing wrong?

Why i m getting null?

Please help me

good answers will be rewarded!!! 😊