sergiogonzalez/liferay-portal — pull request #309 by matethurzo (2012-07-24 09:46:59+00:00)
Title: [TECH SUPPORT] LPS-28703

Hey Sergio, this is basically adding a new method to the User services. I've slightly refactored Vilmos' code: I've changed the method name, I think this is more descriptive than the original, and I've slightly changed the implementation of it as well. I've looked up the patterns elsewhere and I've seen that that much null checking is not really applied in other places, so I removed them. Thanks, Mate