Liferay DXP Interview Questions
Answer - A Display Context is a Java class that controls access to a portlet screen's UI elements .
Answer - In Liferay DXP, the
ServiceContext is an object that provides information about the environment in which a service is being called. It can be used to pass information to the service about the current user, the locale, the timezone, and other contextual information. This information can be used by the service to tailor its behavior to the current context.For example, a service that creates a new asset in the portal might use the ServiceContext to set the asset's creator and create date based on the current user and the current time, as well as to associate the asset with a particular group or site based on the current context.
The ServiceContext is often passed as an argument to service methods when they are called, and it is typically created using the ServiceContextFactory, which is a utility class that provides a convenient way to create ServiceContext objects with the appropriate values for the current context.
Answer - If you’re able to use DS and leverage the @Component and @Reference annotations, you should. DS handles much of the complexity of handling service dynamism for you transparently.
If you can’t use DS to create a Component, keep reading to learn how to implement a Service Tracker to look up services in the service registry.What scenarios might require using a service tracker? Keep in mind we’re focusing on scenarios where DS can’t be used. This typically involves a non-native (to OSGi) Dependency Injection framework.
Calling OSGi services from a Spring MVC portlet
Calling OSGi services from a JSF portlet
Calling OSGi services from a WAR-packaged portlet that’s been upgraded to run on Liferay DXP 7.0, but not fully modularized and made into an OSGi moduleR
https://help.liferay.com/hc/en-us/articles/360017847231-Managing-Distributed-Cache-in-Liferay-DXP
- how to workflow implementing steps ?
- What exactly annotations component and references do ?
Reference
- Steps to do clustering . (https://help.liferay.com/hc/en-us/articles/360018175191-Liferay-DXP-Clustering)
All nodes should be pointing to the same Liferay DXP database or database cluster.
Documents and Media repositories must have the same configuration and be accessible to all nodes of the cluster.
Search should be on a separate search server that is optionally clustered.
Cluster Link must be enabled so the cache replicates across all nodes of the cluster.
Hot deploy applications to each node individually.
- What is Code less OR Theme-less approach in LR.
- How to create configurations in Liferay DXP ?
- https://help.liferay.com/hc/en-us/articles/360029316311-Resolving-Bundle-Requirements
Question
Question
Question
Question
Question
public class UpgradeSchema extends UpgradeProcess {- p_p_id
- p_p_col_id – page column id
- p_p_col_count
- p_p_lifecycle – 0 -> render, 1->action, 2->resource
- p_p_state – window state (ex normal)
- p_p_mode – edit, view, help,print, preview,config,edit guest, edit defaults
Comments
Post a Comment