Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse


     */
    @Override
    public Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext)
    {
        Person ldapPerson = (Person) inActionContext.getActionContext().getParams();
        UpdatePersonResponse response = personMapper.execute(ldapPerson);

        // Queue async action to update cache if necessary
        if (response.wasUserUpdated())
        {
            log.debug("Person " + ldapPerson.getAccountId() + " was updated - updating cache");
            inActionContext.getUserActionRequests().add(
                    new UserActionRequest("cachePerson", null, response.getPersonId()));
        }

        if (response.wasDisplayNameUpdated())
        {
            log.debug("Person " + ldapPerson.getAccountId()
                    + " display name was updated - updating display name everywhere");

            inActionContext.getUserActionRequests().addAll(
                    personActivityCacheUpdater.getUpdateCacheRequests(null, response.getPersonId()));
        }

        return Boolean.TRUE;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse

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.