Liferay Interview Questions (2024)
What is the use of Liferay?
What is Liferay DXP?
What is service builder in Liferay?
What version of Liferay are you currently using?
What are the differences between Liferay 7 CE Community Edition and Liferay 7 DXP enterprise Edition?
What is a Liferay portlet?
What is portlet mode in Liferay DXP?
What is DTD in Liferay?
What are the key features of Liferay DXP?
What version of Portlets is Liferay DXP compatible with?
What is the purpose of OSGi in Liferay?
What is Modules in Liferay?
What is the use of Services in Liferay?
What are Components in Liferay?
What is Liferay MVC Portlet framework?
What is the Portlet Lifecycle?
Q: What is the use of Liferay?
Ans:
Liferay is an open source enterprise portal that allows both corporate intranet and extranet access. This Java-based web application platform includes a toolset for creating customizable portals and webpages.
Q: What is Liferay DXP?
Ans:
The Digital Experience Platform (DXP) is intended to operate within your existing business processes and technologies to create a personalized solution that is tailored to your specific requirements.
Liferay DXP offers multiple portlet methods that enable extensive support for several programming languages such as C++,.NET, Java, PHP, and others.
Q: What is service builder in Liferay?
Ans:
Liferay Service Builder is a model-driven code generation tool for creating custom object models known as entities. Service Builder produces a service layer using object-relational mapping (ORM) technology, which provides a clean separation between your object model and database code.
Take a look at our Suggested Posts :
Q: What version of Liferay are you currently using?
Ans:
I'm using Liferay Portal 6.2 for the JSF portlet.
Q: What are the differences between Liferay 7 CE Community Edition and Liferay 7 DXP enterprise
Edition?
Ans:
Liferay DXP and Community Edition (CE) essentially give the same portal capabilities. However, the Liferay DXP version has some EE-only capabilities (like Audit, advanced search customization, and workflow builder).
Q: What is a Liferay portlet?
Ans:
Portlets are web apps in Liferay DXP. Portlets, like many web applications, handle requests and provide responses. The portlet returns content (e.g., HTML, XHTML) for display in browsers in the response.
Q: What is portlet mode in Liferay DXP?
Ans:
The Portlet Mode of a Portlet specifies the function that a portlet performs and generates different content dependent on the function.
Q: What is DTD in Liferay?
Ans:
The DTD (Document Type Declaration) file liferay-service-builder_7_1_0.dtd
defines the XML format and specifications.
Q: What are the key features of Liferay DXP?
Ans:
- Creating a new full-fledged web application. Because portlets integrate nicely with other current applications, they are the most commonly used method for developing web applications for Liferay DXP. If you don't need to integrate your apps with others, you aren't bound to portlets.
- Making changes to an existing web application or functionality.
- Developing a new online service for a third-party system, a mobile app, an IoT device etc.
- Creating a mobile app that uses Liferay as its backend, which you can do in a relatively short time with Liferay Screens and Liferay Mobile SDK.
- Creating a custom theme that optimizes the platform's appearance and feel to the visual requirements of your project.
Q: What version of Portlets is Liferay DXP compatible with?
Ans:
Any portlet that adheres to the Portlets 1.0 (JSR-168)
and Portlets 2.0
(JSR-286)
of the
specification can be run by Liferay DXP. Additionally, Liferay has a significant role in the
future Portlets 3.0 specification.
Q: What is the purpose of OSGi in Liferay?
Ans:
A framework called OSGi (Open Services Gateway initiative) is used to create modular Java applications. A comprehensive and dynamic component model is implemented by OSGi. Bundles, which are OSGi components, can be remotely installed, launched, paused, updated, and deleted without needing to restart the OSGi runtime.
Q: What is Modules in Liferay?
Ans:
Every new application, extension, and customization created using Liferay is modular in design. In a modular architecture, a module is the single unit of distribution and deployment.
Q: What is the use of Services in Liferay?
Ans:
- Services are independently running program that execute when called upon to perform a specified task.
- The services offered by Liferay comply with OSGi Alliance standards. Writing anything and implementing it as an OSGi service is simple, whether it's an application, a database interface, or even a "service" as you define it.
- A class in the services model asks for the service that offers the functionality it requires. The appropriate implementation automatically provides (often injects) this functionality. With one significant difference from Spring or EJBs, implementations can be updated in-place without having to restart the system.
Q: What are Components in Liferay?
Ans:
- Declarative Services (DS) is simplest approach to create services in OSGi.
- A Component is a Java class that offers an implementation of a Service and is identified by the @Component annotation. DS handles the automatic creation of the Component.
- Additionally, dependency injection is offered by DS via annotations (@Reference). This is practical since the container does the component "wiring," yet changes can be made even while the server is running (unlike Spring).
- Modules can have as many service declarations and components as they needed (or zero).
Q: What is Liferay MVC Portlet framework?
Ans:
The Liferay MVC portlet framework is lightweight, hides some of portlets' complexity, and simplifies the majority of tasks. Each portlet mode has its own JSP in the default MVCPortlet project: Consider editing. JSP is used for help and edit mode.
Q: What is the Portlet Lifecycle?
Ans:
The Lifecycle of a Portlet is defined as the following ways.
init()
When a portlet is deployed and created by a portlet container, this function will be invoked.render()
The content will be rendered using this manner. Render phase representation.processAction()
Any time an action is taken, this method will be called.processEvent()
Any event that is triggered will call this function.serveResource()
When a resource with a resource URL is served, this method will be invoked.destroy()
When the portlet container un-deploys the portlet, this function will be invoked.