Monday, 25 August 2014

Liferay dumps



  1. Liferay Portal only supports the use of AlloyUI JavaScript in portlet plugins.
True
False
Answer:  False
  1. The following attributes are defined in liferay-portlet.xml:
(Please select all correct answers.)
A. If the portlet is instanceable
B. If the portlet appears in the Control Panel
C. If the portlet appears in the Content Management category in the Add Application menu
D. If the portlet supports the Edit mode
Answer:  A and B
  1. The standard methods of the portlet lifecycle in the JSR-286 portlet specification include:
(Please select all correct answers.)
A. init
B. service
C. render
D. destroy
E. notify
Answer: A, C, D
  1. The recommended use for a hook plugin is to:
A. Add a new portlet to the portal
B. Add a new theme to the portal
C. Add a new language key to the portal
D. Add a new layout template to the portal
Answer: C
  1. The recommended location to define custom velocity variables in a theme plugin is in:
A. init.vm
B. init_ext.vm
C. portal_normal.vm
D. init_custom.vm
Answer: D
2
NO.1 An administrator would like to add a new travel preferences section in the Miscellaneous
section of the user form.
The travel preferences are stored as custom fields.
The recommended way to implement the solution using a hook plugin is to:(Please select all correct
answers.)
A. Modify html/portlet/users_admin/edit_user.jsp to add the travel preferences section to
theMiscellaneous section
B. Set the portal property "users.form. my.account, miscellaneous"to "travel-preferences" and add
the corresponding JSP
C. Create a Struts action hook to persist the Expando value to the database
D. Add the custom fields to the relevant JSP using <liferay-ui;custom-attribute>
Answer: B,D
NO.2 Service Builder does not generate:
A. SQL statements to create tables
B. Hibernate and Spring configuration files
C. Axis web services
D. The view layer
Answer: D
NO.3 The recommended way to add new functionality in Liferay is to:
A. Create Ext plugins
B. Createportlet, theme, layout template or hook plugins
C. Modify Liferay's source code directly
D. All of the above
Answer: B
NO.4 When adding new users to Liferay, the form will display the Details, Organizations and
Personal Site sections based on the following property in portal.properties:
users.form.add.main =detaiIs,organizations,personal-site The "users.form.add.main" property is
listed in the liferay-hook_6_l_0.dtd as a portal property that can be overridden with a hook.
Deploying a hook with the following property in the portal.properties file will remove the Personal
Site section: users.form.add.main =details,organizations
A. True
B. False
Answer: B
NO.5 Public render parameters are of the type:
A. List
B. RenderParameter
C. String
D. Object
E. RenderRequest
Answer: C
IT Certification Guaranteed, The Easy Way!
3 / 4
NO.6 The recommended way to add support for a new locale is to:
A. Create an Ext plugin that adds a language properties file for the desired locale
B. Create an Ext plugin that adds a language properties file for the desired locale and implements a
servlet filter mapping using IlSnFilter
C. Create a hook plugin that adds a language properties file for the desired locale and implements a
servlet filter hook to invoke IlSnFilter through PortalClassLoaderFilter
D. Create a portlet plugin that overrides the core language filter to recognize the desired locale
Answer: C
NO.7 A hook plugin can extend and override:(Please select all correct answers.)
A. Core portal Struts actions
B. CoreportletStruts actions
C. Portletplugin Struts actions
D. Layout template Struts actions
Answer: A,B
NO.8 The descriptor liferay-portlet.xml:
A. Defines Liferay-specific portlet features
B. Defines the categories of the Add Application menu
C. Identifies portlets that only run onLiferay
D. All of the above
Answer: A
NO.9 The best way to add a new language key to the portal is through:
A. The Control Panel
B. A hook plugin
C. An Ext plugin
D. Modifying Liferay's source
Answer: B
NO.10 Liferay's core JavaScript framework is:
A. jQuery
B. Dojo
C. MooTools
D. AlloyUI
E. YUI
Answer: D
NO.11 To display a success message in a JSP use:
A. <liferay-ui:success message="part-deleted-successfully" />
B. <liferay-ui:success key= "part-deleted-successfully" />
C. <alloy-ui:success key="part-deleted'' message="part-deleted-successfully" />
D. <liferay-ui:success key= "part-deleted" message="part-deleted-successfully" />
IT Certification Guaranteed, The Easy Way!
4 / 4
Answer: D
NO.12 In portal.properties:
login,events.post=\ com.liferay.portal.events.ChannelLoginPostActionA,\
com.liferay.portal.events.Defaultl_andingPageAction,\ com.liferay.portal.events.LoginPostAction
A hook plugin can insert a new class between DefaultLandingPageAction and LoginPostAction.
A. True
B. False
Answer: B

Wednesday, 20 August 2014

CIGNEX Interview Questions


How to render portlet in webcontent ?
explain about permission system?
what are requirements to run the portal?
how to make normal tomcat as a liferay tomcat?
explain dynamic query?
where you used hook  and exts in your project?
how to create a our own custom permission?
what is page template and site template?
About <portlet:namespace/>
What is MVC portlet
If no controller in portlet then what will happen - will portlet will deploy or not?
In Ajax call, after executing the serveresource method - doView() method will execute or not?
how to undeploy the hook?
Customize the page type options- portlet, link to page..etc
About server admnistrator options
PDF file generator
Custom attributes
Namespace use in service.xml
Namespace is for all entities or single entity in service.xml
Difference b/w 6.0.6 and 6.2
When tavle will create - at the time of build service or deploy
how many types of pages are available
What the difference b/w MVC and struts portlet
What are the tags are available in portlet.xml
what are the configuration files will create  at the time of creation of portlet.
How tables will create in DB - How it will connect to particular configured DB ?

Monday, 18 August 2014

Liferay Interview Quesitions

Liferay Interview Quesitions:



1.what is the main difference b/w hooks and exts?

2.when to go for  exts and hooks and y?
3)Diff b/w 6.0.6 and latest version?
4)Can we override portal.properties using hook?

5.which one is preferred one when I am going change 4 functionality of portal like Ext or Hook?
6.which one preferred one for writing one finder method in userlocal services like Ext or Hook?
7.How to integreate portlets in themes?

8.How to integrate portlets in layouts?

9.How to integrate LDAP in liferay?

10.Have you write any build scripts like maven and ANT?

11.Have you created any webservices?

12.Have you worked on any json webservices?

13.what is purpose of portlet.vm file in themes?

14.How many types of hooks are available in liferay?

15.Have you done portal performance tunup test?

16.Is there any specific reason to use liferay MVC instead of spring mVC.(If your using liferay MVC)

17.Diff b/w portlet session and http session?

18.What is the purpose of portal-ext.properties?
19.what is uuid column in user table?
20.What is the use of "datasource" attribute for entity in service.xml?