Lifeary Development

Liferay code snippets for my Reference might be useful for others :)

Pages

▼
Thursday, April 2, 2015

Portlet preferences in Liferay

›
To set preference for a portlet we need to follow below steps 1.Add below entries in liferay-portlet.xml file <configuration-ac...

Localize the portlet in liferay

›
Localize the portlet in liferay 1.Add the below property in Portlet.xml file <resource-bundle>content.Language</resource-...
Wednesday, April 1, 2015

Store document media files in diffrent location in Liferay

›
To store document media files in different Location,We need to overite the below properties with our new location where we need the files t...

Access a file from document media in Liferay

›
If the requirements to access files from document media and do some operaions on that file ,then the below code snippet will help us. lo...

Create folders in Document Media programatically in Liferay

›
long folderId = 0; try { ThemeDisplay themeDisplay = (ThemeDisplay) request .getAttribute(WebKeys.THEME_DISPLAY); ServiceC...
Saturday, March 28, 2015

IPC through events Mechanism Liferay

›
Sender Portlet 1.Add below parameter in Portlet.xml  <supported-publishing-event>            <qname xmlns:x="http://lifer...

Create Roles and assign Users programatically in Liferay

›
try { String[] roleNames={"Role A","Role B"}; ThemeDisplay themeDisplay=(ThemeDisplay) req.getAttribute(W...
›
Home
View web version
Powered by Blogger.