liferay - Create contact without user -
i try create contact not associated user. "real" users imported ldap. want show global contact list different purposes birthday-list , phone book. not entries in these lists imported users. want create these contacts contactlocalserviceutil class programmatically. there advices how this? there no method needs neither user-id nor contact-id.
a contact, contained in liferay's api, contact data of user. because name describes need, not mean underlying concept matches well. need different data general purpose phone book anyways , it's easier introduce own contact class adjusting existing model (you can't add fields api classes anyway - way of extending liferay's contactmodel through expando fields)
therefor advice is: create own contact class. if want react user data changes when ldap updated, you'll need import user data , example create model listener on liferay's contact updates custom contacts whenever update ldap coming in.
Comments
Post a Comment