Cheng is a registered user of his company's intranet portal. He accesses the portal by a web browser with a valid RememberMe cookie but he has not logged into the portal during the current session. How does the portal treat Cheng?
A. Identified and authenticated
B. Unidentified and authenticated
C. Identified and unauthenticated
D. Unidentified and unauthenticated
正解:C
質問 2:
Which of the following is a false statement about limitations for a WSRP producer portlet?
A. WSRP producer portlets cannot use IBM WebSphere Portal internals in portlets such as engine objects or engine tags.
B. WSRP producer portlets cannot access portlet render parameters.
C. WSRP producer portlets do not support edit_defaults_compatibility portlet mode.
D. WSRP producer portlets cannot use PUMA SPI for accessing user information.
正解:B
質問 3:
The following code defines the selectEmployee() method in a portlet: @processAction(name=select) void selectEmployee(ActionRequest, ActionResponse) throws PortletException, java.io.IOException { } To use the portlet action dispatching, which of the following key-value pairs must be set as a parameter in the HTML form?
A. javax.portlet.action / select
B. processAction / select
C. javax.portlet.action / selectEmployee
D. processAction / selectEmployee
正解:A
質問 4:
The following code sample is an excerpt from an implementation of a custom ExplicitLoginFilter.
Evan needs to implement custom logic to check whether the user needs to accept an updated user agreement. Which one of the following lines of code allows the user to be sent the friendly IBM WebSphere Portal URL 'acceptAgreement,' if the checkUser method returns true?
A. RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.forward(req, resp);
B. resp.sendRedirect("/wps/myportal/acceptAgreement");
C. portalLoginContext.setRedirectURL("/wps/myportal/acceptAgreement");
D. RequestDispatcher rd = req.getRequestDispatcher("/wps/myportal/acceptAgreement"); rd.include(req, resp);
正解:C
質問 5:
Hershel wants to programmatically check if specific users have access to his company's new portlet application, in order to show a message in another portlet asking them to purchase a subscription. He is trying to do so with the least amount of performance overhead. What would be the best way for Hershel to accomplish this?
A. He should use AccessControlRuntimeModel or AccessControlGlobalRuntimeModel to verify explicit role assignments.
B. He should use the com.ibm.portal.ac.UserRoles interface to verify explicit role assignments.
C. He should read role assignments using the com.ibm.portal.ac.RoleData interface and ensure portlet caching is enabled.
D. He should use the com.ibm.portal.ac.RoleData interface to verify explicit role assignments.
正解:A
質問 6:
Usha has developed a JSR 286 compliant portlet. She wants to use it on a WSRP producer so that it can be consumed by a remote IBM WebSphere Portal server. What changes if any should be made?
A. She does not have to make any changes.
B. She should change her portlet class to implement ServiceDescription and Markup interface.
C. She must set the enable WSRP portlet initialization parameter to true in the portlet.xml file.
D. She should change her portlet class to implement ServiceDescription, Markup, Registration and PortletManagement interface.
正解:A