Forums de discussion

How to programmatically get license info in portlet.

Kamil Ruszczyk, modifié il y a 6 années.

How to programmatically get license info in portlet.

New Member Publications: 3 Date d'inscription: 16/12/15 Publications récentes
Hi,
I'm trying to get license info in my portlet. I am trying to use class LicenseUtil, but using its functions causes this exception:

Caused by: java.lang.ClassNotFoundException: org.apache.http.auth.Credentials

I'm guessing that it is caused because I am using this class outside the Admin Panel?
If you know how to obtain license data programmatically, please share your knowledge.
thumbnail
Olaf Kock, modifié il y a 6 années.

RE: How to programmatically get license info in portlet.

Liferay Legend Publications: 6396 Date d'inscription: 23/09/08 Publications récentes
Can you provide a (minimal) code sample (giving the actual method you call), and include the version that you're referring to?
thumbnail
Amos Fong, modifié il y a 6 années.

RE: How to programmatically get license info in portlet.

Liferay Legend Publications: 2047 Date d'inscription: 07/10/08 Publications récentes
Are you referring to the license info in control panel > license manager?