Monday 22 August 2016

Liferay Interview Quesitions ITC infotech

What is use of Model listeners and how to implement them?
How to Overriding Liferay Startup Events?
What is diff b/w global.startup.events and application.startup.events?
What is diff b/w ant deploy and ant direct deploy?
Explain workflow and kalio work flow?
Integration with Solr and LDAP?
How to achieve custom authentication instead of liferay default login?
Explain AUto login functionality in liferay?
What WSRP?
Explain steps tp connect multiple data bases in liferay?
What is diff web content portlet and Asset publisher portlet?
Where did you used hook in your project?
Page rendering flow in Liferay?

Ans: 1.  Request comes in through MainServlet.Various attributes are stored in the session and request. The request attribute   WebKeys.CURRENT_URL holds the currently requested path (stripped of protocol,host, and port).
     2.The "service pre action" handler com.liferay.portal.events.ServicePreAction(servicePre() method) is called, where the layout and theme to display are determined. The following values are stored as a below request attributes.
         WebKeys.LAYOUT key     :  To store current Layout.
         WebKeys.LAYOUTS key   : The other available layouts.
         WebKeys.THEME key       : To store the theme to display
         WebKeys.COLOR_SCHEME key: color scheme to use .
         The theme and color scheme are usually determined by querying the layout once it has been determined.
     3.Struts is called to handle the request, and Liferay uses the custom Struts request processor com.liferay.portal.struts.PortalRequestProcessor.The PortalRequestProcessor.getLastPath() method computes the last path visited, and supplies a default path for the first entry into the portal. The default path upon entry into the portal is ://:/portal/layout.
     4.This initial request for /portal/layout is handled by com.liferay.portal.action.LayoutAction. /html/common/themes/portal.jsp is the "top level" display page.
     5.It selects the portal_normal.jsp or portal_pop_up.jsp based on the current state of the theme's display, and includes it using the custom tag, implemented by com.liferay.taglib.theme.IncludeTag, which in turn calls com.liferay.taglib.util.ThemeUtil.include() method.
     6.Eventually, for each portlet, the method com.liferay.portal.util.PortalUtil.renderPortlet() gets called, which calls /portal/portal-web/docroot/html/portal/render_portlet.jsp to render the contents of an individual portlet.
     7.That in turn calls /portal/portal-web/docroot/html/common/themes/portlet.jsp, which ends up calling /portal/portal-web/docroot/html/common/themes/portlet_content.jsp


Request flow in Liferay:
   1.The initial request comes into the portal server from the browser, and hits the service() method of the classcom.liferay.portal.servlet.MainServlet. Here, a variety of objects are created and added to the request for use by code downstream (such as company Id, user objects, etc.)
   2.Code passes through the servicePre() method of the class com.liferay.portal.events.ServicePreAction. Here is where the ThemeDisplay object is created and populated for downstream code use.
   3.The theme infrastucture code will call into the class com.liferay.taglib.util.ThemeUtil to render the content of a theme. It will call either the mehod includeJSP() to include JSP rendered content, or inclu   deVM() to include Velocity rendered content.
   4.When using a Velocity based theme, the request will flow thru the class com.liferay.portal.velocity.VelocityVariablesand the method insertVariables(). That method is where various Velocity variables for use by the theme system is added to the Velocity context.
   5.For each column in the page's layout, the PortletColumnLogic class processes each portlet using the processContent()method. In this method, the HTML that surrounds every portlet is generated. Further processing is then delegated to the RuntimePortletUtil via the processPortlet() method. Then on to the actual rendering..
   6.An individual portlet is rendered by the render_portlet.jsp code located (in Tomcat) in the webapps/ROOT/html/portaldirectory. This JSP is called to render each portlet on the page. Debug code can be added to this file to see exactly what is going on just before and just after the code in your custom portlet is executed.
   7.As will be found by looking through the JSP code, render_portlet.jsp uses InvokerPortletImpl's render() method to render portlets. The primary function of this method is to check if a portlet's expiration-cache has been set or has expired. If the expiration-cache has been set, InvokerPortletImpl then checks whether the portlet's most recently cached content is fresh enough to us


Saturday 30 July 2016

Liferay Interview Questions From CTS # 2016

1. Explain about Expando API?
2.Explain about Model Listener in liferay?
3.What is Authenticator class in liferay?
4.Explain about Auto login functionality in liferay?
5.How to configure java bean in jsp?
6.What is Dependency injection in spring?
7.How many ways to achieve the Dependency Injection?
8.Diff b/w hook and Ext?
9.If you say I have worked on Ext then tell me where did you used it in your project?
10.Explain steps for Spring MVC portlet?
11.What is the use View Render servlet in spring mvc configurations?
12.what is the use of View revolvers?
13.Have you worked on any integrations?
14.Explain Life cycle of portlet?
15.New Features of Liferay 7?
16.How to render a portlet of one portal into liferay portal?(WSRP)
17.What is OSGI feature in Liferay 7?
18.Explain about IPC mechanism?
19.Explain JSR 362?
20.How to pass list values to constructor injection?
21.What is use of Annotations?
22.How to do Bean configuration in spring configuration file?
23.How to do Hibernate integration with Spring?
24.How to expose our functionality through Web service?(remote-service=true) and where to generate all these classes?


Liferay interview quesitions from CTS #2015

1.How to embed the portlet in theme level
2.what are implicit objects in theme level
3. If portlet is instanceble then that portlet does it work in theme level or not. If works then where you have to make instanceble and In that scenario how to work that portlet
4.what is use of portal- ext.properties
5.We are having two portlets like p1 and    p2 in the same page but need hide one of the portlet based logged in user ? How to handle this scenario ?
6.In navigation bar we are having two pages like page one and page two  then how we can achive above quesition scenario
7.In my custom portlet having few fields like user name,email etc when ever user clicks save then page need to refresh  then what URL have to create
8.After refreshing the form then page should navigate to my home.jsp or custom jsp page then what you have to do?
9.Without refreshing the page need show some validation success message  in the same page then what way we will do?
10.Explain about action ,render ,resource methods when to go for which URL?
11.How to work with multiple actions or multiple resource URLs in portlet?
12.How to implement spring MVC portlet?
13..Difference between spring MVC portlet & Liferay MVC portlet
14.How to implement JSF portlet?
15.In page refreshing scenario I have spring portlet & mvc portlet & JSF portlet which portlet will call?
16.what is the life cycle of the jsp page?
17.what are the implicit objects in JSP page
18.How to implement thread safe in jsp page
19..How to enable sessions in jsp page
20.Explain about jsp actions & declaratives
21.In liferay how reduce the sessions expiry time
22.Explain about Expando API
23.What is the use of Expando API
24.In which scenario we will use Expando API
25.Did you know how to do Liferay Administration?

Tuesday 21 June 2016

Infosys interview quesitions

1.Write a sql query to get the highest second salary of employee?
2.Write a syntax for uploading file through ajax in liferay?
3.What is spring mvc portlet flow?
4.what is diff b/w function and procedure?
5.What is diff b/w liferay 5 version and latest versions(6,7)?
6.diff b/w StringBuffer and StringBuilder?
7.Why most cases password data type is char array, why not String?
8.What are the exception which you handled in portal level?
9.what happens If you insert same duplicate key to HashMap?
10.Which type of payment gateway is used in you project?(If you integrated any payment gateway) and how it works?
11.What will be output for following java program 1.0/0.0?

Saturday 11 June 2016

Liferay HP interview quesitions

1.What is portlet lifecycle?
2.What is the hook?
3.Have you used any hooks in your project If yes which type of hook?
4.How to support I18N?
5.How to provide a translations?
6.What is diff b/w CE and EE?
7.I have two portlets in page one is showing all department list and another portlet will have the text field for depart name, If we enter department name in portlet B based on that I will display Department list in portlet A (Ans: IPC)
8.How many ways are doing IPC,Which one is better?
9.What is the purpose of servResource  method?
10.what are the steps for IPC event mechanism?
11.What is the database you used in your project If Mysql then what is the common problem with mysql which you observed?
12.How to provide a portlet as multi instance?
13.Can you tell me the any one of liferay out of box portlet which supports multi instance?
14.What is DDL(Dynamic Data list)?
15.What is service.xml?
16.Service builder will create a table in database if table doesn't exist right? Can we stop that functionality?
17.I have action url in jsp and some action methods in portlet, Now when I click on submit I want request go to specific action method in portlet?
18.What are the action methods parameters?what is the use ActionRequest and ActionResponse?
19.Have you configured any external search engine for liferay?
20.What auto login  feature in liferay, how to make it work?


Wednesday 8 June 2016

Liferay Interview Quesitions : KPIT & HP

1.What is the purpose of release_ table in liferya?
2.How many tables effected while creating user?
3.What are the disadvantages of service builder?
4.How to share the data b/w action method to render?
5.Render portlet in theme?
6.Render portlet in web content?
7.Diff b/w servlets and portlet?
8.Have you worked on any work flows?
9.What is purpose of "tags" in control panel?
10.What is purpose of "Categories" in control panel?
11.I have 2 pages(P1 & P2) and 2 users(U1 & U2) in portal now I want show P1 to U1 and P2 to U2 immediately to their login?
12.What is diff b/w hook and EXT?
13.If your application supports I18N then how you handle to save other language data to database?
14.How to enable recaptha in liferay?
15.what is the friendly url and what are steps to implement it?
16,What are tables reflected when you publish content from control panel?
17.Where did you used exts in your project?
18.What are the .tpl files in layout plugin?
19.How to get default liferay servies from theme? Can we get the custom services also?
20.What is the use of generics?
21.What is the diff b/w linked list and array list?
22.What is the use of finally block?
23.Why you want change your job? Be careful about it,If you say There no more projects then they wont give u money which u expected.
                              If you say career growth, They will ask what type of career growth your looking?
                              If you say looking for location then they will ask you like If we ask you to go to some other places then your not ready to go right?.  


24.What is the diff b/w site and organization?
25.How to generate a web services in liferay?
26.What is diff b/w web server and application server?
27.What is structures and templates?
28.Have you done any integrations?
29.What is the purpose of hook,what are the things which we can do with hook?
30.Can we show another portal(web sphere or some other) plugin portlet to our liferay portal?
31.How to move content from one environment to another(dev to QA to UAT to Prod)?
32.What is the tool your using for bugs tracking?
33.How to handle all stories tracking in your projects?
34.What are new features in liferay 7?
35.What is diff b/w liferay CE and EE?
36.Can we write entity info without primary key?
37.What is the use finder tag in service.xml?
38.What is use of services builder?
39.Once we done with servie.xml configuration At what time liferay will create the data table in DB(Ans:war file deployed to server liferay will create table in db)?
40.How to do mapping in sevice.xml?
41.What is the use of "Order" attribute for finder tag in service.xml?
42.How to add portlet to control panel and how to decide their order?
43.Spring portlet in liferay?
44.Connecting multiple dbs?
45.What is the use of annotations?
46.What is the diff b/w union and union all in DB?
47.How to integrate LDAp with liferay?
48.Is there way to handle to XSS issue with url(Ans: Using filters we can get all url parameters and filter finally re frame it)?
49.What is concept of Auto login in liferay?
50.I have one text filed for asking user id  and submit button on guest page, When I click Which allows me to logged in without asking credentials?











Friday 11 December 2015

Nowarth.. Interview quesitions

Services in theme
diff b/w render and action method?
diff b/w liferay mvc and spring mvc portlet?
How to expose services as web services explain everything?
diff b/w genericportlet and mvcportlet?
I have 2 divs like parent div and child div, then j query logic like, child have alert and parent div alert logic so when I click on child div which alert will call?
diff b/w site and organization?
diff b/w vector and array list?
diff b/w HashSet and HashMap?
diff b/w union and union all?
diff b/w delete and truncate?
LDAP configurations in liferay?
How to take backup in liferay?
diff b/w maven and ant?
how to configure maven to work with liferay?
explain custom sql?
diff b/w dynamic query and custom sql,which one is better and alos performance wise, why?
Spring portlet in liferay?
What is use of portlet.xml , liferay-portlet.xml and liferay-display.xml?
Use of portlet-normal.vm file?
render portlet in theme and layout?
diff b/w template and srtucture?
I have employee portal, now when employee login into portal,then we need to show birtheday messages if employee's birthday. how can you do it?
What is layout?
diff b/w hook and ext?
can We have more than one serveResource method in liferay?
how to load jquery to portal?
can we redirect to portlet2 render method from portlet 1 action method.
Ioc in spring?