Latest LRP-614 Practice Tests with Actual Questions

Get Complete pool of questions with Premium PDF and Test Engine

Exam Code : LRP-614
Exam Name : Portal Developer
Vendor Name : "Liferay"







LRP-614 Dumps LRP-614 Braindumps

LRP-614 Real Questions LRP-614 Practice Test LRP-614 Actual Questions


Liferay


LRP-614


Portal Developer


https://killexams.com/pass4sure/exam-detail/LRP-614



Question: 125

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


  1. PortalUtil.setExpando(blog)

  2. blog.getExpandoBridge().setAttribute()

  3. ExpandoLocalServiceUtil.setAttribute(blog)

  4. blog.setExpandoQ




Answer: B



Question: 126

The default variables in a theme are defined in:


  1. portal_normal.vm

  2. init.vm

  3. main.vm

  4. variables.vm




Answer: B



Question: 127

As a best practice, a portlet plugin imports classes from:(Please select all correct answers.)


  1. portal-impl.jar

  2. portal-service.jar

  3. portlet.jar

  4. ext-impl.jar




Answer: B, C



Question: 128

The recommended way to override the updateLastLogin() method and create a new method called updateLastlmpersonation()for the User service is to:


  1. Create a hook plugin and implement a service wrapper that overrides the updateLastLogin() method and creates the updatel_astImpersonation() method in the User service

  2. Create a portlet plugin and implement a service wrapper hook that overrides the updatel_astLogin() method in the User service and build a new service in the plugin that references the User service and creates the updatel_astImpersonation() method

  3. Create an Ext plugin that modifies portal-spring.xml to replace the User service with a new service that overrides the updatel_astLogin() method and creates the updatel_astImpersonation() method

  4. Create a hook plugin and implement a service wrapper that overrides the updatel_astLogin() method and create an Ext plugin that builds a new service to implement the updateLastImpersonation() method for the User service.




Answer: B



Question: 129

After adding new functionality to an Ext plugin, the recommended way to deploy in a development environment is to:


  1. Stop the server, redeploy the plugin and restart the server

  2. Undeploy the original plugin and deploy the updated plugin

  3. Undeploy the original plugin, clean the server and deploy the updated plugin

  4. Undeploy all plugins and deploy the updated plugin prior to redeploying the other plugins




Answer: A



Question: 130

When a hook overrides a core JSP named view.jsp:


  1. The new view.jsp overwrites the original file and the original view.jsp is no longer available

  2. The original view.jsp is moved to a temporary folder

  3. The original view.jsp is renamed to view.portal.jsp

  4. The contents of the original view.jsp and the new view.jsp are merged automatically




Answer: C



Question: 131

Liferay's core local services:(Please select all correct answers.).


  1. Contain the business logic of the service

  2. Enforce permission checking

  3. Are required if using remote services

  4. Communicate to the database through the persistence layer




Answer: A, D



Question: 132

Beta-portlet.war requires services that are in alpha-portlet.war. To guarantee beta- portlet.war deploys after alpha-portlet.war:


  1. Add the following to portletxml in beta-portlet.war:

    < init-pa ram>

    <name>required-deployment-contexts</name>

    <value>alpha-portlet</value>

    </init-param>

  2. Add the following to liferay-plugin-package.properties in beta-portlet.war:required- deploy ment-contexts=alpha-portlet

  3. Add the following to liferay-portlet.xml in beta-portlet.war:

    <required-deployment-contexts>alpha-portlet</required-deployment-contexts>

  4. It is not possible to declare this type of dependency




Answer: B



Question: 133

Public render parameters are of the type:


  1. List

  2. RenderParameter

  3. String

  4. Object

  5. RenderRequest




Answer: C



Question: 134

Service Builder does not generate:


  1. SQL statements to create tables

  2. Hibernate and Spring configuration files

  3. Axis web services

  4. The view layer




Answer: D



Question: 135

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


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

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

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

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




Answer: B



Question: 136

The element that defines a database table in service.xml is:


  1. <entity>

  2. <table>

  3. <db-table>

  4. <object>




Answer: A



Question: 137

If the expiration cache in portlet.xml is set to "-1":


  1. The finder cache does not expire

  2. Ehcache does not expire

  3. The portlet cache does not expire

  4. All of the above

    Answer:
    C
    Question:
    138

To define a primary key named''bookld" in service.xml:


  1. <primary-column name= bookld" />

  2. <column name = bookld primary = true" />

  3. <primary name= "bookld" />

  4. <column primary="bookId" />




Answer: B



Question: 139

The method to retrieve a list of users that have been added directly to a site is:


  1. SiteLocalServiceUtil.getSiteUsers()

  2. UserLocalServiceUtil.getSiteUsers()

  3. UserLocalServiceUtil.getGroupUsers()

  4. SiteLocalServiceUtil. getGroupUsers ()




Answer: C



Question: 140

Portlet application security roles are mapped to Liferay roles in:


  1. portlet.xml

  2. liferay-portlet.xml

  3. liferay-role.xml

  4. liferay-display.xml




Answer: B



Question: 141

The service() method in GenericPortlet handles all requests for a particular portlet and dispatches to the appropriate method based on the portlet mode.


  1. True

  2. False




Answer: B



Question: 142

The recommended way to escape text is:


  1. StringUtil.escape()

  2. HtmlUtiI.escape()

  3. DisplayUtil.escape()

  4. JSPUtil.escape()

  5. FormUtil.escape()

  6. GetterUtil.escape()




Answer: B



Question: 143

The Classic theme is built using:


  1. HTML 4

  2. XHTML

  3. HTML 5

  4. HTML 6

  5. WML




Answer: C



Question: 144

The descriptor liferay-portlet.xml defines:


  1. Events

  2. The portlet class

  3. The CSS class wrapper

  4. Resource bundles




Answer: C