留言板
Use PrefsPropsUtil inside hook
How do I reference PrefsPropsUtil within a hook plugin?
This class is found in portal-impl which is not supposed to be packaged with the hook.
My hook is already using the portal-service.jar file. But, this .jar file does not contain the PrefsPropsUtil class.
Am I supposed to use a different class from within the hook? If so, which class might that be?
This class is found in portal-impl which is not supposed to be packaged with the hook.
My hook is already using the portal-service.jar file. But, this .jar file does not contain the PrefsPropsUtil class.
Am I supposed to use a different class from within the hook? If so, which class might that be?
Raymond Gardner,修改在7 年前。
RE: Use PrefsPropsUtil inside hook
Regular Member 帖子: 118 加入日期: 11-7-15 最近的帖子
Nevermind!
I found it in the Liferay source under portal-service at: com.liferay.portal.kernel.util.PrefsParamUtil.
Previously, I was using it in the ext plugin as package: com.liferay.portal.util.PrefsPropsUtil.
This is where it is defined in portal-impl.jar. It is ok for an ext plugin to reference the portal-impl.jar file but it is not ok for a hook plugin to reference the portal-impl.jar file.
I suspect there is no difference in behavior between these two implementations.
I found it in the Liferay source under portal-service at: com.liferay.portal.kernel.util.PrefsParamUtil.
Previously, I was using it in the ext plugin as package: com.liferay.portal.util.PrefsPropsUtil.
This is where it is defined in portal-impl.jar. It is ok for an ext plugin to reference the portal-impl.jar file but it is not ok for a hook plugin to reference the portal-impl.jar file.
I suspect there is no difference in behavior between these two implementations.
Raymond Gardner,修改在7 年前。
RE: Use PrefsPropsUtil inside hook
Regular Member 帖子: 118 加入日期: 11-7-15 最近的帖子Raymond Gardner:
I found it in the Liferay source under portal-service at: com.liferay.portal.kernel.util.PrefsParamUtil.
Correction: I found it at com.liferay.portal.kernel.util.PrefsPropsUtil