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
Portal Developer
https://killexams.com/pass4sure/exam-detail/LRP-614
The method to set the value of a custom field for a BlogsEntry object ("blog") is:
PortalUtil.setExpando(blog)
blog.getExpandoBridge().setAttribute()
ExpandoLocalServiceUtil.setAttribute(blog)
blog.setExpandoQ
The default variables in a theme are defined in:
portal_normal.vm
init.vm
main.vm
variables.vm
As a best practice, a portlet plugin imports classes from:(Please select all correct answers.)
portal-impl.jar
portal-service.jar
portlet.jar
ext-impl.jar
The recommended way to override the updateLastLogin() method and create a new method called updateLastlmpersonation()for the User service is to:
Create a hook plugin and implement a service wrapper that overrides the updateLastLogin() method and creates the updatel_astImpersonation() method in the User service
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
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
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.
After adding new functionality to an Ext plugin, the recommended way to deploy in a development environment is to:
Stop the server, redeploy the plugin and restart the server
Undeploy the original plugin and deploy the updated plugin
Undeploy the original plugin, clean the server and deploy the updated plugin
Undeploy all plugins and deploy the updated plugin prior to redeploying the other plugins
When a hook overrides a core JSP named view.jsp:
The new view.jsp overwrites the original file and the original view.jsp is no longer available
The original view.jsp is moved to a temporary folder
The original view.jsp is renamed to view.portal.jsp
The contents of the original view.jsp and the new view.jsp are merged automatically
Liferay's core local services:(Please select all correct answers.).
Contain the business logic of the service
Enforce permission checking
Are required if using remote services
Communicate to the database through the persistence layer
Beta-portlet.war requires services that are in alpha-portlet.war. To guarantee beta- portlet.war deploys after alpha-portlet.war:
Add the following to portletxml in beta-portlet.war:
< init-pa ram>
<name>required-deployment-contexts</name>
<value>alpha-portlet</value>
</init-param>
Add the following to liferay-plugin-package.properties in beta-portlet.war:required- deploy ment-contexts=alpha-portlet
Add the following to liferay-portlet.xml in beta-portlet.war:
<required-deployment-contexts>alpha-portlet</required-deployment-contexts>
It is not possible to declare this type of dependency
Public render parameters are of the type:
List
RenderParameter
String
Object
RenderRequest
Service Builder does not generate:
SQL statements to create tables
Hibernate and Spring configuration files
Axis web services
The view layer
The recommended way to modify theWiki portlet configuration to recognize a new public render parameter defined in a portlet plugin:
Create a hook plugin and add the public render parameter definition to portlet- custom.xml
Create an Ext plugin and add the public render parameter definition to portlet-ext.xml
Create a portlet plugin and re-implement the logic of the Wiki portlet and define the new public render parameter in portlet.xml
Create an Ext plugin and add the public render parameter definition to portlet- custom.xml
The element that defines a database table in service.xml is:
<entity>
<table>
<db-table>
<object>
If the expiration cache in portlet.xml is set to "-1":
The finder cache does not expire
Ehcache does not expire
The portlet cache does not expire
All of the above
Answer: C
Question: 138
To define a primary key named''bookld" in service.xml:
<primary-column name= bookld" />
<column name = bookld primary = true" />
<primary name= "bookld" />
<column primary="bookId" />
The method to retrieve a list of users that have been added directly to a site is:
SiteLocalServiceUtil.getSiteUsers()
UserLocalServiceUtil.getSiteUsers()
UserLocalServiceUtil.getGroupUsers()
SiteLocalServiceUtil. getGroupUsers ()
Portlet application security roles are mapped to Liferay roles in:
portlet.xml
liferay-portlet.xml
liferay-role.xml
liferay-display.xml
The service() method in GenericPortlet handles all requests for a particular portlet and dispatches to the appropriate method based on the portlet mode.
True
False
The recommended way to escape text is:
StringUtil.escape()
HtmlUtiI.escape()
DisplayUtil.escape()
JSPUtil.escape()
FormUtil.escape()
GetterUtil.escape()
The Classic theme is built using:
HTML 4
XHTML
HTML 5
HTML 6
WML
The descriptor liferay-portlet.xml defines:
Events
The portlet class
The CSS class wrapper
Resource bundles