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?


 

Wednesday, 9 December 2015

Liferay Interview Quesitions

Can we have multiple Exts in one portal?
How to work with multiple data bases?
Explain process of Spring portlet?
How to expose services as remote?
Let us take I have 2 databases now i want to make them as read for one and write for another one,Which property I need to add
Uses of Wrapper classes?
structures and templates?
Theme structure, what are the vm files available in structure,what portal_normal.vm contains?
Integrate portlet into Theme?
What is diff b/w portlet.xml and liferay-portlet.xml?
can we have more than one render methods in liferay mvc portlet,If yes how?
Have you worked on any clustering?
have you worked on CAS integration?

Wednesday, 4 November 2015

Liferay Interview Quesitions

 1. what is a portlet and what are life-cycle methods?

 2. How do you change css in theme?

 3. what is the purpose of recycle-bin portlet?

 4. what is the difference between hook and ext?

 5. what is service builder in liferay?

 6. what is the difference between local service=true and remote service=true?

 7. what is the resource url?

 8. what are the problems you have faced in developing hook and ext?

 9. How to access selectors in jquery?

 10. what is SSO?

 11. what is Clustering?

 12. tell me about work-low?

 13. what are the new features in 6.2?

 14. what is ADT?

 15. what is the use of Documents and Media portlet?

 16. how to add color-schemas to theme?

 17. what is wiki-portlet?

Liferay Interview quesitions



1.    What do you mean by portal instances?
2.    Diff b/w personalization and customization?
3.    Diff b/w Authentication and Authorization?
4.    When you use ext plugin give few examples?
5.    Can liferay struts actions are overridden by the hook?
6.    Can we override all portal.properties file?
7.    How can we read the portal properties file in liferay?
8.    How can we do LDAP integration with Liferay?
9.    How liferay authenticate the user when its credential is present in both database as well as LDAP?
10.  What is internationalization? How it is achieved using liferay?
11.  What is site and community and organization in liferay?
12.  What is the difference between HttpServletRequest and RenderRequest?
13.  What are the different modes of portlet?
14.  What is WSRP?
15.  How to create indexes in liferay?
16.  What are 'users' and 'Users Group' in liferay?
17.  How to create SpringMVC portlet in liferay?
18.  How to customize liferay services?
19.  Can an organization have multiple site?
20.  Can a site be accesses by multiple organization?
21.  What is the purpose of portal-ext.properties?
22.  Community Vs Site in Liferay?
23.  How you'll upgrade 6.0.6 to .6.2 version of liferay?
24.  What is the difference between RenderRequest and ActionRequest?
25.  When a request is made in liferay, what are the attributes or param are visible in the URL?
26.  Why the core jsp files are not modified instead of creating custom jsp using hook?
27.  What is PortletRequest?
28.  What are the parameters present in a PortletRequest?

Liferay Quesitions

1) What are the various ways in which you can customize the default behavior of Liferay that ships to you?
2) What is the difference between a Liferay Hook and Liferay EXT?
3) Suppose I want to customize the behavior of Calendar portal that comes out of the box with Liferay, how can I do that?
4) How will you configure Liferay to authenticate users from LDAP?
5) What is inter portlet communication and how can that be achieved?
6) What is the difference between view and edit modes of a portlet?
7) What is service.xml and how will you use Liferay service builder?
8 ) Suppose I have a portlet written for Liferay 5.2.3 and I want to run it on Liferay 6, how can I do that? What if I get some spring and hibernate related exceptions with Liferay 6?
9) There is a requirement from the client that out of 4 portlets that you have written only 2 should be visible to a particular category of users. How will you achieve that? What if some fields in the remaining 2 portlets have also to be controlled based on user role?
10) What is the purpose of portal-ext.properties?
11) What steps will you follow to change the layout and theme of the portal pages?
12) Suppose I want to change the background color of the footer in Liferay, what steps should I follow?
13) Which JSR is being implemented by Liferay?
14) What improvements would you like to see in Liferay 6 portal?
15) There are 1000 users using the portlet developed by you, how will you take care of transaction management.
16) A client has two different portal applications for Sales and HR department. The client wants to run these portal applications on same server but with separate URL’s like http://:/sales and http://:/hr. How will you achieve that?
17) What are the minimum Java methods one needs to override in order to write a portlet?
18) How will you make the user to go from one JSP to another JSP page in a portlet?
19) While building a service using service builder, what is the purpose of specifying remoteservice=true in service.xml?
20) How to control the category in which the liferay portlet created by me will be displayed?
21) What is hot deployment feature of Liferay? Where will you place your portlets for them to be deployed without server restart?
22) Does Liferay support email notifications out of the box for portlets involving workflow?
23) What is the purpose of mode and persistence packages which are created by the Liferay service builder?
24) If there are 3 portlets and all of them need to talk to different database systems (say MysSQL, Oracle and SQL Server) because of some legacy appliation requirements. How will you make them connect to different databases?
25) Can you configure the database connection pool created by Liferay?
26) Can you list down various tools and frameworks used by Liferay? e.g. It uses Lucene for search
27) Suppose a client is pursuing a Liferay based solution to their requirements, what non-functional clarifications will you ask from the customer?
28) Is there a build number associated to a portlet assigned by the service builder? Where can we find the current build number?
29) Have you tried the Liferay 6 Eclipse plugin? What all limitations have you found?
30) How do you log events in a portlet? Do I need to configure Log4J for every portlet or is there a common place where one can configure Log4J so that all Liferay portlets can use logging API?
31) Do you know how to update your setup of Liferay 5.2.3 to Liferay 6?
32) Can I run my Struts 1.3 based legacy application as a portlet application? How?
33) Is it a good design to meet the customer requirements by creating a single portlet or splitting them into multiple portlets? What criteria will you use to split the functionality into multiple portlets?
34) What advantages do you see in running the Liferay portal application on a application server like JBoss than running it on a web server like Tomcat?

35) What all other portals have you heard of? How do you compare them to Liferay?
36) How will you implement i18 in a portal application? What if you want the user to choose his language preference?
37) There is a portlet application for managing images similar to Flickr. The user wants to see the images in full screen. Will Liferay allow you to do that?
38) I have a war file of the portlet which is created using service builder, what is the difference between pasting this war file in the deploy folder of Liferay and application folder of server (like webapps in case of Tomcat)?
39) How will you setup a clustered Liferay portal on 5 servers available to you?
40) How much user base can Liferay support without affecting performance?
41) There is a JRE shipped with Liferay package, do we not need a JDK and what is the purpose of bundled JRE?
42) Suppose there is a requirement from client to implement search functionality in Liferay portlet, does Liferay provides any API out of the box to support search?
43) What are the various ways in which one can override the default behaviour of Liferay?
44) The service builder can also build WSDL for you. What is the benefit of this feature provided by Liferay?
45) How will you build a portlet that can be added only single or multiple times in to the portal application?
46) Is it possible to set a session time out for a portlet which is different from other portlets and the Liferay portal?
47) What is the flow of HTTP request in Liferay?
48) The JSPPortlet.java extends  the MVCPortlet.java class. What purpose does MVCPortlet.java fulfill?
49) How do you perform Junit tests on your portlet? How do tackle the dependency on the MVCPortlet.java?
50) Is it mandatory to have the view logic in view.jsp? Can one configure some other JSP (say MyJSP.jsp) to be default view page than view.jsp?

Liferay Interview quesitions



What is a Liferay Portal?
What is a Portlet?
What is a Portlet Life cycle?
What Is Portal-ext.properties File? How This Can Be Configured And Used In Liferay?
Why do we need Hook?
How to deploy a Hook?
What is the final artifact for Hook?
Is Liferay Hooks are hot deploy able?
Once Hook deployed can it be undeployed?
For Hook development is any tools necessary?
Can we use Eclipse to develop Hook?
 Yes. Your eclipse need Liferay IDE plugin.
Can we customize anything in Liferay by Hook?
 No. There are some limitations.
Can we deploy multiples Hook in one portal server?
What can we customize by Liferay Hook?
Full List: What we can customize by Liferay Hook (based on 6.2)
How would I know which JSP I need customize?
Do I need to customize always JSP inside JSP Hook?
How many hook do I need to create to customize multiple JSPs?
I customized a JSP by JSP Hook and its deployed. Now I want to roll back my changes to original.