First, we start by locating the user we want to update – probably the test user or the current admin. select password_, passwordEncrypted, screenName, passwordReset from User_; This should give you an output like the following. password_passwordEncryptedscreenNamepasswordReset AAAAoAAB9ABnotruefbhewLALA1test0 Then, we update the table with the new password (please note that it is unencrypted). UPDATE ... Read More AboutLiferay 7: how to reset user password in database »

A digital revolution has transformed the entire world by converging the whole globe into one ecosystem. The term globalization is getting close to a notion similar of what "Digital world" brings about, where people are connected through the Internet via laptops, websites, mobile phones and diverse applications. Digitization isn’t only about internet and cloud connectivity but it has transformed the multiple definitions of... Read More AboutDigital Experience Platform »

Liferay has several repositories for different purposes. The one we will build in this post is the liferay/liferay-portal, where the main source code resides. https://github.com/liferay/liferay-portal.git Just a heads up, this repository is quite big, so it might be useful to keep a local copy around. git clone https://github.com/liferay/liferay-portal.git Or if you already have done this before, you can just sync your local ... Read More AboutCompiling Liferay from GitHub »

Substituting Liferay implementations small image

Swapping up Liferay implementations in a Linux server could not be easier, if you followed some installation procedure that seems like the one we described here: https://www.e-systems.tech/blog/-/blogs/installing-liferay-on-linux In this post we show how to swap a Liferay implementation when it does not require the use of the database upgrade tool. This usually translates into situations where versions are close to each other, or... Read More AboutSubstituting Liferay implementations »

Would you like to lag behind your competitors in the race to win over the people who concern you the most? Believe us, you will if you are still not convinced to use a content management system for your website. Content management system has already proved to be a game changer for so many clients of ours. It certainly has been one of the best investments that they have made on their website mostly because the benefits outweighs the... Read More AboutCMS: The New Road to the Way Forward »

Validating a Brazilian CPF number in Java small image

CPFs are in Brazil what SSNs are in US, so you know how important it is to validate them before using in your systems. This is an example of how to validate those numbers, which are represented by Strings in most systems. /******************************************************************************* * Copyright © 2016 Victor Soares (www.e-systems.tech) All rights reserved. * * Redistribution and use in source and binary forms,... Read More AboutValidating a Brazilian CPF number in Java »

In this post I would like to speak about something funny that have been happing now with OSGi in the very core of our plugin architectures in Liferay. And that is the way we configure properties for the system. First, let’s see how a StrutsAction can be declared. @Component( immediate = true, property = { "path=" + AuthPublicPath.CONSTANT_URL , "service.ranking:Integer=" + Integer.MAX_VALUE }, service =... Read More AboutConfiguration Styles in Liferay »

Java Application Architecture: Modularity Patterns with Examples Using OSGi small image

Series: Robert C. Martin Series Paperback: 384 pages Publisher: Prentice Hall; 1 edition (March 25, 2012) Language: English ISBN-10: 0321247132 In summary: definitely a must-have book. I first came across this book when I was searching for further education to understand the concepts behind the OSGi technology, I was seeking to adapt my methodologies to produce better plugins for the newest generation of Liferay platforms. After a... Read More AboutJava Application Architecture: Modularity Patterns with Examples Using OSGi »

login.events.post Dependencies some are just in case you need it.. import javax.servlet.http.HttpSession; import org.osgi.service.component.annotations.Component; import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.LifecycleAction; import com.liferay.portal.kernel.events.LifecycleEvent; Component @Component( immediate = true, property = { "key=login.events.post" }, ... Read More AboutSession events »

Dependencies some are just in case you need it.. import javax.servlet.http.HttpSession; import org.osgi.framework.BundleContext; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Deactivate; Component @Component(immediate = true, service = MyService.class) or service={} Code @Component(immediate = true, service = MyService.class) public class TrueNTHSessionManagerImpl implements... Read More AboutAction on Module Deactivation »

Dependencies some are just in case you need it.. import org.osgi.framework.BundleContext; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import... Read More AboutAction on Module Activation »

Dependencies import org.osgi.service.component.annotations.Component; import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.LifecycleAction; import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; Component @Component( immediate = true, property = { "key=application.startup.events" }, ... Read More AboutActions on Startup »

Dependencies import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.osgi.service.component.annotations.Component; import com.liferay.portal.kernel.servlet.BaseFilter; Component @Component( immediate = true, property = { ... Read More AboutFilters in Liferay 7 »

Dependencies some are just in case you need it.. import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; import com.liferay.portal.kernel.exception.NoSuchUserException; import com.liferay.portal.kernel.exception.PortalException; import... Read More AboutAutoLogin in Liferay 7 »

Dependencies import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; import com.liferay.portal.kernel.struts.BaseStrutsAction; import com.liferay.portal.kernel.struts.StrutsAction; Component @Component( immediate = true, property = { "path=" + AuthPublicPath.CONSTANT_URL , "service.ranking:Integer=" + Integer.MAX_VALUE }, service = StrutsAction.class... Read More AboutStrutsAction in Liferay 7 »

Dependencies import javax.servlet.http.HttpSession; import org.osgi.service.component.annotations.Component; import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.LifecycleAction; import com.liferay.portal.kernel.events.LifecycleEvent; Component @Component( immediate = true, property = { "key=login.events.post" }, service = LifecycleAction.class ) Code @Component( ... Read More AboutCustom Post Login Action "Hook" in Liferay 7 »

Liferay 7 came with several changes that need some getting used to. A major modification in the way we see the platform and develop plugins was brought about by the developers, who enhanced the stack and enriched it with amazing features; among them, the most exiting one is definitely the OSGi support. Although it is still possible to code using the old methodologies and tools, we are thrilled to build with OSGi. And that is why we... Read More AboutLiferay 7, how to get a session object after login? »

Installing Liferay on Linux small image

For an easy way:  https://www.e-systems.tech/web/guest/liferay/-/knowledge_base/docker-images/installing-liferay  https://store.docker.com/images/esystemstech We know quite well why one would like to install Liferay inside Linux, so we will not go about this but just discuss an easy way to do so. Furthermore, we will just show here, in this post, a simple way to use the most of the package management systems, as... Read More AboutInstalling Liferay on Linux »

Gradle Dependency Management small image

Author: Hubert Klein Ikkink ISBN: 1784392782 Publisher: Packt Publishing (June 17, 2015) Publication Date: June 17, 2015 If you have met Gradle before and want to go into a fast track to learn more, this book is for you. In addition to being well written, it is full of easy to grasp examples. Nevertheless, this book goes too fast in a small amount of pages, which could make life hard for beginners. However, its vast number of ... Read More AboutGradle Dependency Management »

— 20 Items per Page
Showing 41 - 59 of 59 results.