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

Examples of org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo


    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);
    affilBo.setId(String.valueOf(entityAffilId));
    affilBo.setAffiliationTypeCode(affiliationCode);
    affilBo.setEntityId(entityBo.getId());
   
    List<EntityTypeContactInfoBo> entityTypes = new ArrayList<EntityTypeContactInfoBo>();
    EntityTypeContactInfoBo entityType = new EntityTypeContactInfoBo();
    entityType.setEntityId(entityBo.getId());
    entityType.setEntityTypeCode(KimConstants.EntityTypes.PERSON);
View Full Code Here


   
    Map<String, String> criteria = new HashMap<String, String>();
    criteria.put("entityId", entity.getEntityId());
    Collection<EntityAffiliationBo> results = getBoSvc().findMatching(EntityAffiliationBo.class, criteria);
    assertEquals("number of affiliations differ", 1, results.size());
    EntityAffiliationBo affilBo = results.iterator().next();
    assertNotNull("affiliation type code should not be null", affilBo.getAffiliationTypeCode());
    assertEquals("affiliation code differs", expectedAffilCode, affilBo.getAffiliationTypeCode());
    assertTrue("affiliation should be active", affilBo.isActive());
    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();
View Full Code Here

    entity.setAffiliations(affils);
    expected = "You are not affiliated as a staff :(";
    assertEquals("no affilitiations", expected, successHandler.getActivationMessage());
   
    // test that only active, affiliated users can log in
    EntityAffiliationBo affil = new EntityAffiliationBo();
    EntityAffiliationTypeBo affilType = mock(EntityAffiliationTypeBo.class);
    when(affilType.isEmploymentAffiliationType()).thenReturn(true);
    when(affilType.isActive()).thenReturn(true);
    affil.setAffiliationType(affilType);
    affils.add(affil);
    entity.setActive(false);
    expected = "Your account is not active :(";
    assertEquals("account inactive", expected, successHandler.getActivationMessage());
   
View Full Code Here

TOP

Related Classes of org.kuali.rice.kim.impl.identity.affiliation.EntityAffiliationBo

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.