zberentey/liferay-portal — pull request #152 by vilmospapp (2012-10-10 12:22:02+00:00)
Title: [TECHNICAL SUPPORT] LPS-30255

Hi Zsolt,

This issue is originated from not publishing ContactService methods to remote interfaces, but based on my discussion with Ray and Jorge add* and delete* method shouldn't be exposed to not break User and Contact objects' 1:1 relationships.

Julio reviewed my original fix, and realized, that I used UserPremissionUtil what is not enough as now we can have other objects related to Contact based on classNameId and classPK, so based on this and Máté's guide, I refactored the code to user CommonPermissionUtil instead. Additionally I added User.class for the accepted classes by the CommonPermissionUtil, as if the related object to the Contact object is User then I got an exception because of the permission check.

If you have any concerns, please ask me or Máté who is familiar with the original fix and Julio's comments.

Regards,
Vilmos