Entries tagged [liferay]
Liferay 7: deploy module using gradle script
by Stanislav on Monday Jun 01, 2020
In Liferay 7 the task of automatic module deployment can be very useful, especially if you continuously develop your code on daily basis. Starting from 7 version of Liferay, project build framework switched mainly from Maven to Gradle. Gradle’s build procedure consists of subsequent tasks execution, these tasks are defined and generated during new Liferay module creation. But there’s no ‘deploy’ task – a common task that speeds up the dev-process. In this post we’ll get to know how to solve that.
Read MoreTags: liferay
Invoke Liferay service externally
by Stanislav on Tuesday Aug 14, 2018
Hi there, in this post we’ll take a look at the problem of Liferay 7 service invocation from the external app
Read MoreTags: liferay
Liferay 7 DXP + SAML single sign-on (SSO)
by Stanislav on Tuesday May 01, 2018
Hi there, this post dedicated to the topic of SSO authentication within Liferay 7 DXP version. Single sign-on is a pretty popular property that allows users to access multiple applications using same credentials without re-login. And SAML is a language that allows cross-party communications to validate and authenticate a user.
Read MoreTags: liferay
Liferay 7: override Resource Permissions
by Stanislav on Saturday Jul 22, 2017
In Liferay 6 when you needed to change default permission set for some resource, then Ext plugin could be used to override such definitions. The reason of Ext using was the point that all permission definitions were stored in portal-impl.jar and Ext was the only way to override it. Starting from Liferay 7 the portal is moving to OSGi architecture where the other rules take place. Since now each OSGi module (e.g. Calendar) has its permissions defined in its own module, and not in the core of the portal. That’s why a new approach should be applied and this post shows how to achieve this.
Read MoreTags: liferay
How to build Liferay theme using SDK and Ant
by Stanislav on Thursday Mar 23, 2017
Liferay Theming is a very common Liferay technology that widely used to define the look of a portal. It consist of different sets of Javascript, CSS and HTML delivered as a single WAR-file, which should have a special folder structure and configuration files. To create and build such WAR, Liferay SDK can be used that is designed to automate the process of Liferay Theme development. This article describes how to build already existing Theme and customize it using Liferay SDK Ant builder.
Read MoreTags: liferay
Liferay PHP Portlets: a few recommendations prior development
by Stanislav on Wednesday Dec 14, 2016
It’s well known, that Liferay includes special types of portlets called PHP Portlets which allow to use a standard PHP code in order to provide desired functionality. But there are some issues may occur during PHP-portlet development that are not so evident to fix and find a solution on the internet. Such common issues are covered in this post, solutions to them are also provided.
Read MoreTags: liferay
Liferay: Play Video in Popup Window
by Stanislav on Saturday Oct 15, 2016
During Liferay customizations one may need to embed playable videos to portal: to a body of a page or to a popup. There are different posts exist on the internet about how to create a popup in Liferay, but none of them covers this common task – a video within a window. And in this article we’ll see 2 short ways how we can accomplish that.
Read MoreTags: liferay
Liferay 7 embed Language Portlet in Header
by Stanislav on Wednesday Jul 20, 2016
Hey there, the new Liferay 7 is out now. With this version we become a brand new concept (which implements the OSGi specification) of Liferay Plugins development and integration within a portal. Having OSGi implemented, Liferay moves from a hack-like style of Plugin management, where each Plugin is a separate web application stored as a war-file on an app server, to a much cleaner concept. There are many global changes in Liferay 7 and in this post we’ll see how to insert Language Portlet to custom Theme header in accordance with this new architecture.
Read MoreTags: liferay
Liferay 7 alpha/beta ServiceBuilder
by Stanislav on Sunday Jan 31, 2016
Hey, we are all watching with great interest to the first coming stable Liferay 7 release (link). By now alpha and even beta releases are available for testing, they include new cool features and improvements. But still some old functionality is not migrated to the new releases. In this post I’ll talk about ServiceBuilder which is still not officially published and is missing in current alphas and betas. Anyway it is possible to find and use Liferay 7 ServiceBuilder (in liferay-ce repository). In this post I’ll show how to do it.
Read MoreTags: liferay
Invoke an action of core Liferay portlet
by Stanislav on Friday Sep 11, 2015
Liferay is shipped with a bunch of certain preinstalled portlets, such as Documents and Media, Message Boards, Asset Publisher, etc. Each of these portlets has a set of predefined struts actions (definitions can be found under ROOT/WEB-INF/struts-config.xml) which are invoked upon some user action in current portlet. During a custom portlet development there is a need may occur to call any of these actions, for example folder create/update/delete of Documents and Media (Document Library), without copying a core functionality to custom portlet. This article will demonstrate how to make it work, taking as an example Move Folder action of Documents and Media portlet.
Read MoreTags: liferay
Liferay upload files programmatically in java
by Stanislav on Friday Jul 17, 2015
If you have a requirement to implement a file upload form in your Liferay portlet then this article for you. In this post I will provide a simple upload jsp form and java code snippet that handles file upload action and stores uploaded file to Liferay document library.
Read MoreTags: liferay
Liferay: execute java code as administrator user
by Stanislav on Wednesday Jul 01, 2015
During Liferay java code development you may need to run your code as administrator user. This can happen when some user logged in with a restricted role, but it is required to execute an user action with higher privileges (admin or others). The examples of these user actions: grant permissions to some folder or file, search for content in spaces which the user does not belong to, perform system actions (create new role in portal etc.) and many others. In this blog post I’ll show how to make it possible.
Read MoreTags: liferay
Liferay: execute java code as administrator user
by Stanislav on Wednesday Jul 01, 2015
During Liferay java code development you may need to run your code as administrator user. This can happen when some user logged in with a restricted role, but it is required to execute an user action with higher privileges (admin or others). The examples of these user actions: grant permissions to some folder or file, search for content in spaces which the user does not belong to, perform system actions (create new role in portal etc.) and many others. In this blog post I’ll show how to make it possible.
Read MoreTags: liferay
Liferay get administrator user programmatically in Java
by Stanislav on Monday Jun 22, 2015
If you need to retrieve a Liferay User with Administrator role in your Java code, then this article for you.
Read MoreTags: liferay
Liferay Spring MVC Portlet (+JPA, Maven) part.2
by Stanislav on Monday May 18, 2015
In previous post Liferay Spring MVC Portlet (+JPA, Maven) part.1 I wrote how to develop a Liferay Spring Portlet using Maven, in this article I’ll discuss how to inject the JPA ORM in it.
Read MoreTags: liferay