How to use the method of personalized services in the pace of liferay in speed files, such as init_custom.vm , portal_normal.vm , etc.
I see that liferay provides many helper class variables, such as $portalUtil for PortalUtil , $getterUtil for GetterUtil , etc. inside the init.vm file.
So, is it possible to get an instance of my user services, for example, an instance of com.my.custom.service.MyCustomLocalServiceImpl or liferay services from UserLocalServiceImpl ?
Here is some psuedo code to give an idea of ββwhat I need:
// this code calls method from MyCustomLocalServiceImpl class to fetch items #set ($listOfItems = $myCustomLocalServiceUtil.getAllItems()) // this code calls method from UserLocalServiceImpl class to fetch users #set ($listOfUsers = $userLocalServiceUtil.getUsers(0, 99))
Environment: Liferay 6.1 CE GA1
source share