Examples of wasUserUpdated()


Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse.wasUserUpdated()

        Person p = new Person("fordp", "Ford", "X", "Prefect", "Volgon-Swatter");
        assertTrue(p.getDisplayNameSuffix().equals(""));
        p.setAdditionalProperties(additional);
       
        UpdatePersonResponse response = sut.execute(p);       
        assertFalse(response.wasUserUpdated());
        assertFalse(response.wasDisplayNameUpdated());
    }

    /**
     * Test where additional properties are no longer specified on ldap person so db person needs to be updated.
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse.wasUserUpdated()

        Person p = new Person("fordp", "Ford", "X", "Prefect", "Volgon-Swatter");

        UpdatePersonResponse response = sut.execute(p);

        assertTrue(response.wasUserUpdated());
        assertFalse(response.wasDisplayNameUpdated());
        assertTrue(dbPerson.getAdditionalProperties() == null);
    }

    /**
 
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse.wasUserUpdated()

        assertTrue(dbPerson.getLastName().equals("Prefect"));

        Person p = new Person("fordp", "Ford", "X", newLastName, "Volgon-Swatter");

        UpdatePersonResponse response = sut.execute(p);
        assertTrue(response.wasUserUpdated());
        assertTrue(response.wasDisplayNameUpdated());

        getEntityManager().flush();
        getEntityManager().clear();
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse.wasUserUpdated()

        Person p = new Person("fordp", "Ford", "X", newLastName, "Volgon-Swatter");
        p.setDisplayNameSuffix(" FOO");

        UpdatePersonResponse response = sut.execute(p);
        assertTrue(response.wasUserUpdated());
        assertTrue(response.wasDisplayNameUpdated());

        getEntityManager().flush();
        getEntityManager().clear();
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse.wasUserUpdated()

        // execute
        UpdatePersonResponse result = sut.execute(ldapPerson);

        // verify
        assertTrue(result.wasUserUpdated());
        getEntityManager().flush();
        getEntityManager().clear();
        Person resultPerson = (Person) getEntityManager().createQuery("FROM Person WHERE id = :id")
                .setParameter("id", PERSON_ID).getSingleResult();
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse.wasUserUpdated()

        // execute
        UpdatePersonResponse result = sut.execute(ldapPerson);

        // verify
        assertTrue(result.wasUserUpdated());
        getEntityManager().flush();
        getEntityManager().clear();
        Person resultPerson = (Person) getEntityManager().createQuery("FROM Person WHERE id = :id")
                .setParameter("id", PERSON_ID).getSingleResult();
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdatePersonResponse.wasUserUpdated()

    {
        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()));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.