Skip to Content
0
Former Member
May 01, 2006 at 11:03 PM

IMetaContext is always null

16 Views

Hi,

I need to develop a metadata extension to show categories, this categories are folders in KM. If I use the service user I have not problems:

ResourceContext rc = new ResourceContext(WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"));

But I need to use the current user context to read km structure.

The IMetaContext has a method to get the current context, but I always get null in my code.

public IMetaValueList getAllowedValues(
		IMetaName metaName,
		IMetaContext metaContext)

metaContext.getResourceContext()

Any idea? Can I do that?

Thanks in advance...