我正在寻找转换
的简单方法com.liferay.portal.model.PortletPreferences
到
javax.portlet.PortletPreferences
答案 0 :(得分:0)
public javax.portlet.PortletPreferences convert(long companyId, com.liferay.portal.model.PortletPreferences obj) throws Exception { long ownerId = obj.getOwnerId(); int ownerType = obj.getOwnerType(); long plid = obj.getPlid(); String portletId = obj.getPortletId(); return PortletPreferencesLocalServiceUtil.getPreferences(companyId, ownerId, ownerType, plid, portletId);