Massive Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

Liferay LRP-614 Portal Developer Exam Practice Test

Demo: 21 questions
Total 144 questions

Portal Developer Questions and Answers

Question 1

The recommended way to add new functionality in Liferay is to:

Options:

A.

Create Ext plugins

B.

Createportlet, theme, layout template or hook plugins

C.

Modify Liferay's source code directly

D.

All of the above

Question 2

The method to set the value of a custom field for a BlogsEntry object ("blog") is:

Options:

A.

PortalUtil.setExpando(blog)

B.

blog.getExpandoBridge().setAttribute()

C.

ExpandoLocalServiceUtil.setAttribute(blog)

D.

blog.setExpandoQ

Question 3

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

Options:

A.

True

B.

False

Question 4

ThemeDisplay.getUserId() returns a value of -1 for the Guest user.

Options:

A.

True

B.

False

Question 5

Default RSS feeds are set as portlet preferences. To make all new instances of the RSS poitlet display a single custom RSS feed, it is recommended to:

Options:

A.

Create a hook plugin to add a model listener to the layout to update the portlet preferences of any RSS portlet added to the page

B.

Create an Ext plugin that contains the desired configuration in portlet-ext.xml

C.

Create a JSP hook that overrides the RSS portlet's default configuration settings

D.

Navigate to System Defaults in the Control Panel and update the portlet preferences

Question 6

Creating a Struts action hook requires the following elements in liferay-hook.xml: (Please select all correct answers.)

Options:

A.

B.

C.

D.

E.

Question 7

To allow more than one instance of a portlet on the same page setinstanceabletotrue" in:

Options:

A.

liferay-portlet.xml

B.

liferay-display.xml

C.

liferay-plugin-package.xml

D.

liferay-layout-template.xml

E.

portlet.xml

F.

web.xml

Question 8

All Service Builder entities contain a local reference to: (Please select all correct answers.)

Options:

A.

CounterLocaISe rv ice

B.

AssetLocaIService

C.

ResourceLocalService

D.

SocialLocalService

E.

WorkflowLocaISe rvice

Question 9

Advantages of hook plugins over Ext plugins include: (Please select all correct answers.)

Options:

A.

A hook plugin is hot deployable, while an Ext plugin is not

B.

A hook plugin has direct access to the portal class loader, while an Ext plugin does not

C.

A hook plugin provides an easier upgrade path for overriding core services and JSPs

D.

A hook plugin can modify service layer classes, while an Ext plugin cannot

Question 10

The recommended way to automatically add tags when creating web content is to:

Options:

A.

Create a model listener in a hook plugin and implement the onAfterCreate() method

B.

Create a model listener in a hook plugin and implement the onBeforeCreate() method

C.

Create an Ext plugin to extend and override JournalArticleLocalServicelmpI

D.

Create a hook plugin and use a service wrapper to extend JournalArticleLocalService

Question 11

The Plugins SDK uses:

Options:

A.

portal-service.jar

B.

JAR files from the user's home directory

C.

portal-impl.jar

D.

portal-plugin.jar

Question 12

A solution that requires modifying the Blogs portlet by overriding several core JSPs and a Struts action is best developed as:

Options:

A.

A single hook plugin

B.

A Struts hook plugin and a JSP hook plugin

C.

A single Ext plugin

D.

A Struts hook plugin and several JSP hook plugins

Question 13

In portal.properties, the following property lists portlets that can be embedded on any page:

portlet.add(default.resource.check.whitelist=3,56_INSTANCE_0000,5S,S2,S6,87,88/103,113,145,164,

The property is listed in liferay-hook_6_l_0.dtd as a property that can can be overridden with a hook.

The recommended way to prevent embedding the Search portlet ("3") is to create a hook plugin.

Options:

A.

True

B.

False

Question 14

The recommended way to modify the Wiki portlet configuration to recognize a new public render parameter defined in a portlet plugin:

Options:

A.

Create a hook plugin and add the public render parameter definition to portlet-custom.xml

B.

Create an Ext plugin and add the public render parameter definition to portlet-ext.xml

C.

Create a portlet plugin and re-implement the logic of the Wiki portlet and define the new public render parameter in portlet.xml

D.

Create an Ext plugin and add the public render parameter definition to portlet-custom.xml

Question 15

All render logic must be implemented in the JSP when using MVCPortlet:

Options:

A.

True

B.

False

Question 16

Hook plugins can only override core JSPs, services, language keys and Struts actions.

Options:

A.

True

B.

False

Question 17

Methods for retrieving the current users ID include: (Please select all correct answers.)

Options:

A.

ThemeDisplay.getUserId()

B.

PortaIUtil.getUserld(renderRequest)

C.

request.getRemoteUser()

D.

Liferay.getUserld(renderRequest)

E.

Page.getUserld()

Question 18

The recommended way to make an isolated change to a core JSP is to:

Options:

A.

Create an Ext plugin to create a backup of the original JSP and extend the backup JSP

B.

Create a hook plugin to override the original JSP using the tag to copy the contents of the JSP

C.

Create a hook plugin to override the original JSP using the -override.jsp pattern

D.

Create an Ext plugin to override the original JSP using the tag to copy the contents of the JSP

Question 19

To hide the default success message in a portlet that extends MVCPortlet:

Options:

A.

Add the following when creating an action URL:

name="addRecord"

var="addRecordURL"

add-process-action-success-action="false" />

B.

Add the following to liferay-portletxml:

false

C.

Add the following to portlet.xml:

< in it-pa ram>

< na me >add -process-action -success-action

false

D.

The default success message can only be overridden by supplying a customized success message using:

SessionMessages.add(actionRequest, "custom-success-message");

Question 20

The method to embed the non-instanceable Language portlet with the name "82" in a theme is:

Options:

A.

$theme.include("82")

B.

$theme.runtime("82")

C.

$theme.runtime("82_INSTANCE_abcl23")

D.

$theme.include("82_INSTANCE_abcl23")

Question 21

Service Builder is able to: (Please select all correct answers.)

Options:

A.

Generate Hibernate configuration files

B.

Generate base implementations of models, services, persistence and basic finders

C.

Generate struts-config.xml and tiles-defs.xml

D.

Generate web services

Demo: 21 questions
Total 144 questions