Black Friday Special Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Liferay > Liferay Certified Professional Developer > LRP-614

LRP-614 Portal Developer Question and Answers

Question # 4

A Struts action hook cannot define new Struts actions.

A.

True

B.

False

Full Access
Question # 5

The method to define a column in a layout template is:

A.

$layout.createColumn()

B.

$layout.defineColumn()

C.

$processor.processColumn()

D.

$layout.addColumn()

Full Access
Question # 6

The Ant target that removes compiled class files from the plugin is:

A.

obliterate

B.

destroy

C.

remove

D.

clean

E.

reset

F.

terminate

Full Access
Question # 7

The recommended way to strip content from the outgoing response is to:

A.

Create a hook plugin that implements a service post action to strip content from the response

B.

Create an Ext plugin that implements a servlet filter to strip content from the response

C.

Create a hook plugin that implements a servlet filter to strip content from the response

D.

Create a hook that implements a request post processor to strip content from the response

Full Access
Question # 8

The method to send a redirect response and prevent resubmitting a form when a user refreshes the page is:

A.

clearRequ estPara mete rs ()

B.

removeDuplicates()

C.

removeParameters()

D.

send Red irect()

Full Access
Question # 9

The hooks that can import classes from the plugin class loader are: (Please select all correct answers.)

A.

Auto login hooks

B.

JSP hooks

C.

Service wrapper hooks

D.

Servlet filter hooks

E.

Struts action hooks

F.

Indexer post processor hooks

Full Access
Question # 10

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:

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

Full Access
Question # 11

The standard JSR-286 portlet modes are: (Please select all correct answers.)

A.

Help

B.

Configuration

C.

Print

D.

Edit

E.

View

F.

About

Full Access
Question # 12

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

A.

B.

C.

D.

E.

Full Access
Question # 13

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

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

Full Access
Question # 14

To map a Service Builder entity to an existing database table in service.xml the entity name must match the database table name.

A.

True

B.

False

Full Access
Question # 15

Service Builder entities are defined in:

A.

portlet.xml

B.

liferay-portlet.xml

C.

service, xml

D.

web.xml

Full Access
Question # 16

The method to get theme settings in a theme is:

A.

$portalUtil.getSetting()

B.

$theme.getSetting()

C.

$layout.getSetting()

D.

$themeDisplay.getSetting()

Full Access
Question # 17

Given the service.xml:

The generated classes include: (Please select all correct answers.)

A.

AcmeltemServiceUtil

B.

AcmeltemModel

C.

AcmeltemLocalServiceUtil

D.

AcmeltemJSONSerializer

E.

AcmeltemPersistencelmpI

Full Access
Question # 18

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

Full Access
Question # 19

The recommended way to implement a service wrapper hook that customizes the authenticateByScreenName() method of the User service using a class called com.sample.MyUserLocalServicelmpI is to: (Please select all correct answers.)

A.

Add the following to liferay-hook.xml:

com.liferay.portal.service.UserLocalService

com.sample.MyUserLocalServiceImpl

B.

Copy all of the methods from UserLocalServicelmpI to MyUserLocalServicelmpI

C.

Override the authenticateByScreenName() method in MyUserLocalServicelmpI

D.

Add the following to liferay-plugin-package.properties:required -deployment-contexts=UserLocalServ ice

E.

Implement custom logic and call super.authenticateByScreenNameQ if applicable

Full Access
Question # 20

The settings in portal-developer.properties:

A.

Enable faster deployment of plugins

B.

Disable minification of CSS and JavaScript

C.

Assist deployment from a development to a production environment

D.

Precompile Velocity and FreeMarker templates

Full Access
Question # 21

An Expando is:

A.

A tool for writing newportlets in Liferay

B.

A code generator which generates services based on service.xml

C.

A service in Liferay which allows you to dynamically define a collection of data

D.

A new administrative interface in 6.1

Full Access