Combination View Flat View Tree View
Threads [ Previous | Next ]
maryam maryam masoudy
call one class in velocity template liferay 6.0.6
September 26, 2012 12:09 AM
Answer

maryam maryam masoudy

Rank: Regular Member

Posts: 149

Join Date: October 30, 2011

Recent Posts

hi friends
i am writing one velocity template in liferay 6.0.6
i want use AssetEntryQuery in my template but template can not use this class
what shall i do?
how can i call a class in template?
i want to use AssetEntryQuery 's methods of AssetEntryLocalService
i use AssetEntryLocalService and get good response for example:
1
2
3#set ($AssetEntryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService" ))
4
5$AssetEntryLocalService.getAssetEntriesCount()


i could get number of assetEntries but i need to use method getEntries(AssetEntryQuery assetEntryQuery) and i must use AssetEntryQuery for variable

1
2#set ($AssetEntryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService" ))
3
4$AssetEntryLocalService.getEntries(AssetEntryQuery assetEntryQuery)

thanks