Package org.kuali.rice.kim.api.identity

Examples of org.kuali.rice.kim.api.identity.Person


   
    //prepare the matter and clients
    kase = new CourtCase();
    MatterClient c1 = mock(MatterClient.class);
    when(c1.getPrincipalName()).thenReturn("signum");
    Person cp1 = mock(Person.class);
    when(cp1.getName()).thenReturn("Simon Gitahi");
    when(c1.getPerson()).thenReturn(cp1);
    kase.getClients().add(c1);
    MatterClient c2 = mock(MatterClient.class);
    when(c2.getPrincipalName()).thenReturn("mlaw");
    Person cp2 = mock(Person.class);
    when(cp2.getName()).thenReturn("Martin Mungai");
    when(c2.getPerson()).thenReturn(cp2);
    kase.getClients().add(c2);
   
    // prepare consideration
    consideration = new MatterConsideration();
View Full Code Here


  public String getDocumentInitiatorNetworkId() {
    String initiatorNetworkId = "";
    DocumentHeader tmpDocumentHeader = getDocumentHeader();
    if (tmpDocumentHeader != null && !StringUtils.isEmpty(tmpDocumentHeader.getDocumentNumber())) {
      String initiatorPrincipalId = tmpDocumentHeader.getWorkflowDocument().getInitiatorPrincipalId();
      Person initiator = KimApiServiceLocator.getPersonService().getPerson(initiatorPrincipalId);
      if (initiator != null) {
        initiatorNetworkId = initiator.getPrincipalName();
      }
    }

    return initiatorNetworkId;
  }
View Full Code Here

   */
  public EntityNameContract testCreatePrincipal(String expectedPrincipalName, String expectedAffilCode) {
    Principal principal = idSvc.getPrincipalByPrincipalName(expectedPrincipalName);
    assertNotNull("principal should have been created", principal);
   
    Person person = KimApiServiceLocator.getPersonService().getPersonByPrincipalName(expectedPrincipalName);
    assertNotNull("person should have been created", person);
   
    EntityDefault entity = idSvc.getEntityDefault(principal.getEntityId());
    assertNotNull("entity should have been created", entity);
   
View Full Code Here

TOP

Related Classes of org.kuali.rice.kim.api.identity.Person

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.