cancel
Showing results for 
Search instead for 
Did you mean: 

IMetaContext is always null

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Here, you can find some examples, perhaps it can help you.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Knowledge%20Ma...

20Collaboration%20Developers%20Guide.html

Patricio.