Package org.eurekastreams.commons.server.service

Examples of org.eurekastreams.commons.server.service.ActionController


            T newDomainEntity = null;

            if (actionBean instanceof ServiceAction || actionBean instanceof TaskHandlerServiceAction)
            {
                SaveImageRequest currentRequest = new SaveImageRequest(uploadItem, domainEntity.getId(), imageId);
                ActionController serviceActionController = (ActionController) springContext
                        .getBean("serviceActionController");
                DefaultPrincipal principal = new DefaultPrincipal(userDetails.getUsername(),
                        ((ExtendedUserDetails) userDetails).getPerson().getOpenSocialId(),
                        ((ExtendedUserDetails) userDetails).getPerson().getId());
                ServiceActionContext currentContext = new ServiceActionContext(currentRequest, principal);

                if (actionBean instanceof ServiceAction)
                {
                    newDomainEntity = (T) serviceActionController.execute(currentContext, (ServiceAction) actionBean);
                }
                else
                {
                    newDomainEntity = (T) serviceActionController.execute(currentContext,
                            (TaskHandlerServiceAction) actionBean);
                }
            }
            else
            {
View Full Code Here

TOP

Related Classes of org.eurekastreams.commons.server.service.ActionController

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.