Package com.ibm.sbt.services.client.connections.profiles

Examples of com.ibm.sbt.services.client.connections.profiles.Profile


    return null;
  }
 
  public static String getProfileXMLString(){
    ProfileService svc = new ProfileService("connections");
    Profile prof=null;
    String xmlText = null;
    try {
      prof = svc.getMyProfile();
      xmlText =DOMUtil.getXMLString((Node)prof.getDataHandler().getData());
    } catch (XMLException e) {
      e.printStackTrace();
    }
    catch (ProfileServiceException e) {
      e.printStackTrace();
View Full Code Here


   
    ProfileAdminApp paa = null;
    try {
      paa = new ProfileAdminApp(url, user, password);
     
      Profile profile = paa.getProfile(id);
     
      System.out.println(profile.getName());
     
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

  }

  @Test
  public void testGetProfile() {

    Profile profile = getProfile(getProperty("sample.id1"));
    GetProfilePage getProfilePage = launchSnippet();
    String profileName = getProfilePage.getProfileName();
    Assert.assertNotNull("Unable to load profile", profileName);
    Assert.assertEquals("Frank Adams", profileName);
    Assert.assertEquals(profile.getUserid(), getProfilePage.getProfileId());
    Assert.assertEquals(profile.getJobTitle(), getProfilePage.getProfileJobTitle());
  }
View Full Code Here

   
    public Profile getProfile(String userId) {
        createContext();
       
        ProfileService profileService = getProfileService();
        Profile profile = null;
        try {
            profile = profileService.getProfile(userId);
        } catch (ClientServicesException cse) {
            Assert.fail("Error get profile: " + cse.getMessage());
            cse.printStackTrace();
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.connections.profiles.Profile

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.