Created
August 19, 2017 06:11
-
-
Save adit2787/8f3db278f14475db0d2adcee515179be to your computer and use it in GitHub Desktop.
How to Access Liferay Services in Velocity(VM) files using Service Locator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($userLocalService = $serviceLocator.findService('com.liferay.portal.service.UserLocalService')) | |
=>$userLocalService.getUsersCount() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment