Package org.kuali.rice.kim.impl.identity.name

Examples of org.kuali.rice.kim.impl.identity.name.EntityNameBo


    entityBo.setActive(true);
    entityBo.setId(String.valueOf(entityId));
   
    Long entityNameId = sas.getNextAvailableSequenceNumber(
        "KRIM_ENTITY_NM_ID_S", EntityNameBo.class);
    EntityNameBo name = new EntityNameBo();
    name.setActive(true);
    name.setId(String.valueOf(entityNameId));
    name.setEntityId(entityBo.getId());
    // must be in krim_ent_nm_typ_t.ent_nm_typ_cd
    name.setNameCode("PRFR");
    name.setFirstName(getFirstName(namesFromUser));
    name.setMiddleName(getMiddleName(namesFromUser));
    name.setLastName(getLastName(namesFromUser));
    name.setDefaultValue(true);

    Long entityAffilId = sas.getNextAvailableSequenceNumber("KRIM_ENTITY_AFLTN_ID_S", EntityAffiliationBo.class);
    EntityAffiliationBo affilBo = new EntityAffiliationBo();
    affilBo.setActive(true);
    affilBo.setDefaultValue(true);
View Full Code Here


    assertTrue("affiliation should be the default", affilBo.isDefaultValue());
   
    Collection<EntityNameBo> names = getBoSvc().findMatching(EntityNameBo.class, criteria);
    assertEquals("number of names differ", 1, names.size());
   
    final EntityNameBo entityName = names.iterator().next();
    assertTrue("name should be active",entityName.isActive());
    assertTrue("name should be default",entityName.isDefaultValue());
    return entityName;
  }
View Full Code Here

    String expected = "Email address '" + emailFromOpenId + "' is not associated with an existing user :(";
    assertEquals("entity should not be found", expected, successHandler.getActivationMessage());
   
    // provide a mock entity object
    EntityBo entity = new EntityBo();
    EntityNameBo defaultName = new EntityNameBo();
    defaultName.setActive(true);
    defaultName.setDefaultValue(true);
    final String firstName = "Karani";
    defaultName.setFirstName(firstName);
    entity.getNames().add(defaultName);
    when(entityInfoSvc.getEntityByEmail(emailFromOpenId)).thenReturn(entity);
    // prepare the entity email to be found and so that the mock entity can be returned
    EntityEmailBo emailBo = new EntityEmailBo();
    final String entityId = "entity1";
View Full Code Here

TOP

Related Classes of org.kuali.rice.kim.impl.identity.name.EntityNameBo

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.