Examples of wasDisplayNameUpdated()


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

        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.wasDisplayNameUpdated()

        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);
    }

    /**
     * Test updating with new last name.
View Full Code Here

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

        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();

        Person resultPerson = (Person) getEntityManager().createQuery("FROM Person WHERE id = :id")
View Full Code Here

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

        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();

        Person resultPerson = (Person) getEntityManager().createQuery("FROM Person WHERE id = :id")
View Full Code Here

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

            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(
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.