Tuesday, December 2, 2014

Liferay
have introduced portal developer certification for Liferay 6.2 and its
almost similar to Liferay 6.1 and Liferay 6.2 Portal Developer
Certification covered the topics which are related to New Features in
Liferay 6.2 too.

The
exam consist following types of Questions.

Single
Selection (Radio Button)

Multiple Answers Selection (Check Boxes)

Boolean
Type Single Selection (Radio Button)

Single
Selection (radio button):

This
type of question there is only one statement is correct answers so we
need select the radio button out of given choices.

Multiple Answers Selection (Check boxes)

We
need to select multiple statements to give complete answers by
clicking on check boxes it may be 2 or more statements we need to
select from given choises.

Boolean
Type Single Section (Radio Button)

Here
we have two option like True/False so we need to select correct
choice from given two option.

My sincere request
is please follow the developer guide,other liferay resources and
don't depend only on the model question paper ,there are many
questions we can expect from above topics but topics weightage is
sample and they questions always similar to the question which
specified in model paper.

set
JVM system variable like -Dexternal-properties=
portal-developer.properties

Explanation/Reference:

Liferay
in Developer Mode on a Tomcat application server, you’d add
-Dexternal-properties=portal-developer.properties to the list of
options for your CATALINA_OPTS variable, in your setenv.sh file
(setenv.bat in Windows).

If
we use session with application scope then the values available to?

All
portlet in same page,

All
portlets in portal application,

None
of these,

Answer:

All
portlets in portal application

Explanation/Reference:

A
Portlet Session is created for each user per portlet application.
This makes the Portlet Session useful for communicating all user
related information among different portlets in the same portal
application.

Hooks
can do Override JSP pages,Overrideportla properties, create filters but it cant do override
deployment descriptors of portal portlets here
we need exts.

Application
display implementation steps?

Answer:

Follow
the below all steps

Explanation/Reference

Create
and register your custom PortletDisplayTemplateHandler class.

Now
that we’ve created the template handler, declare it with the
<template-handler>...</template-handler> tags in the
Location Listing Portlet’s <portlet> element of your
liferay-portlet.xml file:

Since
the ability to add ADTs is new to your portlet, we need to configure
permissions so that administrative users can grant permissions to the
roles that will be allowed to create and manage display templates.
Just add the action key ADD_PORTLET_DISPLAY_TEMPLATE to your
portlet’s docroot/WEB-INF/src/resource-actions/default.xml file:

Now
that your portlet officially supports ADTs, you’ll want to expose
the ADT option to your users. Just include the
liferay-ui:ddm-template-selector taglib in the JSP file you’re
using to control your portlet’s configuration mode (e.g.,
config.jsp if you choose to have it created through Liferay Developer
Studio’s New Portlet wizard), providing the required information.
We’ll add the display settings to the Location Listing Portlet’s
configuration.jsp file

You’re
almost finished, but you still have to extend your view code to
render your portlet with the selected ADT. Here is where you decide
exactly which part of your view will be rendered by the ADT and what
will be available in the template context. To do this, add the
following code outlined below to your Location Listing Portlet’s
view.jsp file

They
will give multiple check boxes for answers we need to select all
relevant statement check boxes.

When
use newly create in my account page can see

"users.form.update.main=details,password,organizations"
if override this property form hook as follows
"users.form.update.main=details,password,organizations,sites,roles"
it can be changed the use my account page sections ?

True

False,

Answer:

False

Explanation/Reference:

From
hook we cannot modify users.form.update.main portal property
.we should use ext .

Best
practice to override “UserLocalServiceUtil.authenticateByuserName()”
we will use wrapper service “MyUserLocalServiceImpl”

Defined
service in liferay-hook.xml as follows <service><service-type>com.liferay.portal.service.UserLocalService</service-type><service-impl>com.liferay.sample.hook.MyUserLocalServiceImpl</service-impl></service>.

What
are the default services which injected in each Plugin Portlet
Services?

Assests

WorkFlow

Counter
Service

Resource
Service

Answer:

Counter
Service

Resource Service

Explanation
And Reference

When
we implement services for plugin portlet using SB then each entity
serivce depend on some required portal services that is why in each
plguin portlet service by default it will be injected by some
important services .

This
information we can see in each plugin portlet XXXServiceBaseImpl.java