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

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


     * @return null
     */
    @Override
    public Integer execute(final PrincipalActionContext inActionContext)
    {
        UpdateAppDataRequest parameters = (UpdateAppDataRequest) inActionContext.getParams();
        long applicationId = parameters.getApplicationId();
        String personId = parameters.getOpenSocialId();

        AppData outputAppData = null;
        AppData currentAppData = mapper.findOrCreateByPersonAndGadgetDefinitionIds(applicationId, personId);
        if (currentAppData != null)
        {
            HashMap<String, String> inputAppDataVals = parameters.getAppDataValues();
            if (inputAppDataVals != null)
            {
                Map<String, String> appDataVals = new HashMap<String, String>(currentAppData.getValues());
                for (Entry<String, String> currentAppDataValue : inputAppDataVals.entrySet())
                {
View Full Code Here


        try
        {
            String userOpenSocialId = userId.getUserId(token);

            // create the request
            UpdateAppDataRequest params = new UpdateAppDataRequest(Long.parseLong(appId), userOpenSocialId,
                    new HashMap<String, String>(values));

            // create the context
            ServiceActionContext context = new ServiceActionContext(params,
                    openSocialPrincipalDao.execute(userOpenSocialId));
View Full Code Here

TOP

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

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.