Examples of ProfileDTO


Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

    setImageDescriptor(FabricPlugin.getPlugin().getImageDescriptor("delete.gif"));
  }

  @Override
  public void run() {
    ProfileDTO profile = node.getProfile();
    String message = Messages.bind(Messages.deleteProfileMessage, profile.getId());
    boolean confirm = MessageDialog.openConfirm(Shells.getShell(), Messages.deleteProfileDialogTitle,
        message);
    if (confirm) {
      node.getFabric().getFabricService().deleteProfile(node.getVersionNode().getVersionId(), profile.getId());
      Node parent = node.getParent();
      if (parent != null){
        parent.removeChild(node);
      }
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

    // we must use the local IP address of the ZooKeeper URL when creating a cloud container so that it can connect
    // properly to the ZK node if its on the cloud
    ProfileNode defaultProfile = getVersionNode().getProfileNode("default");
    if (defaultProfile != null && fabric != null) {
      ProfileDTO profile = defaultProfile.getProfile();
      if (profile != null) {
        Map<String, String> config = profile.getConfigurations().get("io.fabric8.zookeeper");
        if (config != null) {
          String zkUrl = config.get("zookeeper.url");
          if (zkUrl != null) {
            try {
              // TODO: HOW TO GET THE CURATORFRAMEWORK OBJECT?
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

   * @see org.fusesource.ide.fabric8.ui.actions.CreateContainerFormSupport#loadPreference()
   */
  @Override
  protected void loadPreference() {
    if (selectedProfile != null) {
      ProfileDTO profile = selectedProfile.getProfile();
      if (profile != null) {
        List<ProfileDTO> profs = new ArrayList<ProfileDTO>();
        profs.add(profile);
        setCheckedProfiles(profs);
      }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
     
      ProfileDTO profile = fabric8.getProfile(version.getId(), "default");
      assertNotNull("getProfile returns null for default profile", profile);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
     
      ProfileDTO profile = fabric8.createProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("createProfile returns null when created profile", profile);
     
      ProfileDTO profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("getProfile returns null for created profile", profile2);
     
      fabric8.deleteProfile(version.getId(), profile2.getId());
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ProfileDTO

      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
     
      ProfileDTO profile = fabric8.createProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("createProfile returns null when created profile", profile);
     
      ProfileDTO profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("getProfile returns null for created profile", profile2);
     
      fabric8.deleteProfile(version.getId(), profile2.getId());
     
      profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
      assertNull("The profile hasn't been deleted from backstore", profile2);     
    } catch (IOException ex) {
      fail(ex.getMessage());
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.