0
我嘗試使用liferay的API爲某些用戶添加其他電子郵件地址。 根據文檔,我覺得這一點:如何在liferay中使用EmailAddressLocalService
addEmailAddress(long userId, String className, long classPK, String address, int typeId, boolean primary)
但我有點失落,我不知道如何以正確的方式 我有這個使用這個方法。
EmailAddressLocalServiceUtil.addEmailAddress(user.getUserId(),className, classPK, emailAddress2, typeId, false)
我不知道怎麼去: -className -classPK -typeId
是有一些方法來獲得這個參數或者我需要手動指定該參數?
有幫助嗎?
謝謝你幫助我很多,最後我得到了正確的方法來使用這種方法 – 2014-10-06 16:07:30