Show the user data of every response for the current Quick Poll in the campaign in a Flex Client, 2nd part
Only we'll review the main part of the method "getVotesPerCampaingResponse(Map map)" in the SearchService class. Before to begin we need to consider the following items: com.sapportals.wcm.control.quickpoll.extension.QPResourceManager. com.sapportals.wcm.repository.IResourceContext. com.sap.security.api.IUser. In this operation we must take into account that the quick polls will be processed in according to the quick poll state: current and historical. Therefore, first we need to process the current quick poll and after to process the historical rapid quick polls of the requested campaign. The main class is " QPResourceManager ", internally it works with the com.sapportals.wcm.control.quickpoll.extension.QPBaseService class. For to get one instance of the QPResourceManager class, previously we need to get an instance of the com.sapportals.portal.security.usermanagement.IUser class, it'll reference to the portal service user " cmadmin_service "...