Posts

Password Encrypt and decrypt in Liferay

Liferay is using Hashing algorthim , not encrypt and decrypt . so you cannot decrypt the password. But there is 2 ways to get the password 1.In this way you can get password of only logged user.   Add the following properties in portal-ext.properties so that we can get the pssword in session. # # Set this to true to store the user's password in the session. # session.store.password=true # # Explicitly exclude attributes that are shared from the portal to portlets. # session.shared.attributes.excludes= 2.Storing the password in DB as Plain Text Add the following properties in portal-ext.properties passwords.encryption.algorithm=NONE

Liferay Portal Window States

By Default portal contains 3 window states 1.NORMAL 2.MINIMIZED 3.MAXIMIZED By default  portal state will be NORMAL. Liferay Supports 2 other states. 1.exclusive 2.pop_up

Liferay Portlet Modes

 By Default Portlet Supports 3 types of modes   1.VIEW   2.EDIT   3.HELP In additional to it Liferay conatins  1.About 2. Config 3. Preview 4.Print 5.Edit Defaults 6.Edit Guests

Portlet Container

The lifecycle of a portlet is managed by the portlet container.    A portlet container runs portlets and provides them with the required runtime environment. A portlet container contains portlets and manages their lifecycle. It also provides persistent storage for portlet preferences. A portlet container receives requests from the portal to execute requests on the portlets hosted by it.      A portlet container is not responsible for aggregating the content  produced by the portlets. It is the responsibility of the portal to handle the aggregation

Portlet LifeCycle

Image
init(PortletConfig config)             It  is called once, immediately after a new portlet instance is created. It can be used to perform startup tasks and is akin to a servlets init method. PortletConfig represents read-only configuration data, specified in a portlet's descriptor file, portlet.xml(more on this file later). For example, PortletConfig provides access to initialization parameters. processAction(ActionRequest request, ActionResponse response)               It is called in response to a user action such as clicking a hyperlink or submitting a form. In this method, a portlet may invoke business logic components, such as JavaBeans, to accomplish its goal. The ActionRequest and ActionResponse Interfaces are subinterfaces of PortletRequest and PortalRequest. In processAction, a portlet may modify its own state as well as persistent information about a portlet. render(RenderRequest request, RenderR...

SERVICE BULIDER

I have referred the some of the documents and materials about service Bulider. Here is some of the statments.  ServiceBuilder will create models, services, and service persistence first in the folder ext/ext-service , which will form ext-service.jar and it goes to the $CATALINA_HOME/lib/ext in Ext deployment. Here are the packages of the services for the portlet, Reports : com.ext.portlet.reports.model com.ext.portlet.reports.service com.ext.portlet.reports.service.persistence Then ServiceBuilder will create implementations of models, services and service persistence in the folder, ext/ext-impl . This will form ext-impl.jar and it goes to $CATALINA_HOME/webapps/ROOT/WEB-INF/lib in Ext deployment. Here are packages of the implementations of the services for the portlet, Reports : com.ext.portlet.reports.model.impl com.ext.portlet.reports.service.base com.ext.portlet.reports.service.http com.ext.portlet.reports.service.impl com.ext.portle...

Connecting to different database using Liferay Service Builder

The below Blog Explains connecting the databases in liferay. It is well explained have a look! http://liferaytrends.blogspot.in/2012/05/blog-post.html