The idea was clicked while checking Liferay *PersiatanceImpl classes which do a lot of query firing on this basis. Following classes are involved in this: import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; import com.liferay.portal.kernel.dao.jdbc.MappingSqlQuery; import com.liferay.portal.kernel.dao.jdbc.MappingSqlQueryFactoryUtil; import com.liferay.portal.kernel.dao.jdbc.RowMapper; import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; where MappingSqlQuery is used for “Select” queries and SqlUpdate is used for “Insert and Update” queries. Following code […]

Many times we are in great need of adding some more configurations in asset publisher portlet. But we generally skip this as we think that we cannot do it with any hook. But there is easy possibility to do the same. You just need to hook configuration.jsp of assetpublisher and you can add more input […]

You may use liferay way of document conversions. How liferay do it? – You just need to install open office and setup liferay to use it http://www.liferay.com/community/wiki/-/wiki/Main/Document+Conversion+with+OpenOffice How you may use the same? – Generally, you will be needing it to do in either some hook or in a portlet plugin. – Some scenarios of […]

Follow

Get every new post delivered to your Inbox.