Package org.eurekastreams.server.action.request.opensocial

Examples of org.eurekastreams.server.action.request.opensocial.GetAppDataRequest


                oneOf(appData).getValues();
                will(returnValue(values));
            }
        });

        AppDataDTO result = sut.execute(new GetAppDataRequest(5L, "9"));

        assertEquals(5L, result.getGadgetDefinitionId());
        assertEquals("9", result.getOpenSocialId());
        assertEquals(values, result.getKeyValuePairs());
View Full Code Here


    {
        log.debug("Entering getPerson data with " + userIds.size() + " userIds, appId " + appId + ", " + fields.size()
                + ", token appId " + token.getAppId());

        AppDataDTO currentAppData = null;
        GetAppDataRequest currentRequest = new GetAppDataRequest();
        ServiceActionContext currentContext;
        Map<String, Map<String, String>> results = new HashMap<String, Map<String, String>>();
        try
        {
            log.debug("Retrieve userIds");
            List<String> currentUserIds = SPIUtils.getUserList(userIds, token);
            currentRequest.setApplicationId(new Long(appId));

            // TODO add in group implementation when Friends list is available.
            // switch(groupId.getType())
            // {
            // case all:
            // //TODO Assemble specialized parameters for all Group
            // break;
            // case deleted:
            // //TODO Assemble specialized parameters for deleted Group
            // break;
            // case friends:
            // //TODO Assemble specialized parameters for deleted Group
            // break;
            // case groupId:
            // //TODO Assemble specialized parameters for deleted Group
            // break;
            // default:
            // //Self group
            // break;
            // }

            log.debug("Loop through userIds");
            for (String currentUserId : currentUserIds)
            {
                currentRequest.setOpenSocialId(currentUserId);
                currentContext = new ServiceActionContext(currentRequest,
                        openSocialPrincipalDao.execute(currentUserId));
                currentAppData = (AppDataDTO) serviceActionController.execute(currentContext, getAppDataAction);
                if (currentAppData != null)
                {
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.opensocial.GetAppDataRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.