Objects stored in the portlet application scope session are available to:
A. Any portlet on the same page
B. Any portlet in the same portlet application
C. Any portlet within the portal application
D. Only the portlet that stored the object in the session - answer-B. Any portlet in the same
portlet application
To start Liferay with developer properties:
A. Set the porta I.developer, mode property in portal-ext.properties to ''true"
B. Include portal-developer.properties during Java startup, or in portal-ext.properties
C. Navigate to Server Administration in the Control Panel and set the portal.developer.mode
property to "true"
D. Copy portal-developer.properties from the portal's classes directory to the Liferay home
directory and restart the server - answer-B. Include portal-developer.properties during Java
startup, or in portal-ext.properties
The method to get the value of a custom field for a User object named "user" is:
A. ExpandoLocalServiceUtil.getAttribute(user)
B. user.getExpandoBridge().getAttribute()
C. user.getExpando()
D. PortalUtil.getExpando(user) - answer-B. user.getExpandoBridge().getAttribute()
In portal.properties:login,events.post=\com.liferay.portal.events.ChannelLoginPostActionA,\
com.liferay.portal.events.Defaultl_andingPageAction,\
com.liferay.portal.events.LoginPostActionA hook plugin can insert a new class between
DefaultLandingPageAction andLoginPostAction.
A. True
B. False - answer-B. False
The descriptor liferay-portlet.xml:
A. Defines Liferay-specific portlet features
B. Defines the categories of the Add Application menu
C. Identifies portlets that only run onLiferay
D. All of the above - answer-A. Defines Liferay-specific portlet features
Not all of the fields in the User object are searchable out of the box. The recommended way to
make these fields searchable is to:
A. Create a hook plugin that overrides the User service to index the required fields
B. Create a hook plugin that overrides the edit user Struts action to index the required fields
C. Create an Ext plugin that extends the User indexer to index the required fields
, D. Create a hook plugin that implements an indexer post processor to index the required fields -
answer-D. Create a hook plugin that implements an indexer post processor to index the
required fields
Events supported by JSR-286 portlets for inter portlet communication are:(Please select all
correct answers.)
A. Publishing events
B. Processing events
C. Global events
D. Lifecycle events - answer-A. Publishing events
B. Processing events
The recommended way to display a web content article in a theme:
A. Use the AssetEntry service in portal_normal.vm to get the desired article
B. Embed the Web Content Display portlet, passing in the desired article ID to the portlet URL
C. Embed the Web Content Display portlet, passing in portlet preferences set to the desired
article
D. Create a JSP hook that gets the desired article from the JournalArticle service - answer-C.
Embed the Web Content Display portlet, passing in portlet preferences set to the desired article
After removing a customization from an Ext plugin, the recommended way to redeploy in a
development environment is to:
A. Redeploy the plugin and restart the server
B. Undeploy the original plugin and deploy the updated plugin
C. Start with a clean instance of the server and deploy all plugins
D. Redeploy all plugins and restart the server - answer-C. Start with a clean instance of the
server and deploy all plugins
The following statements about plugins are true:(Please select all correct answers.)
A. All plugins are hot-deployable
B. Plugins can be used to modify core portal behavior
C. Plugins can be used to modify the layout of a page
D. Liferay supports six different types of plugins
E. Plugins are the preferred development approach - answer-B. Plugins can be used to modify
core portal behavior
C. Plugins can be used to modify the layout of a page
D. Liferay supports six different types of plugins
E. Plugins are the preferred development approach
The "companyId" is a(n):
A. Portal instance
B. Organization
C. Site
D. Team - answer-A. Portal instance