Package org.apache.ambari.server.orm.entities

Examples of org.apache.ambari.server.orm.entities.ClusterConfigMappingEntity


                  clusterDAO.createConfig(configEntity);

                  Collection<ClusterConfigMappingEntity> entities =
                    clusterEntity.getConfigMappingEntities();

                  ClusterConfigMappingEntity clusterConfigMappingEntity =
                    new ClusterConfigMappingEntity();
                  clusterConfigMappingEntity.setClusterEntity(clusterEntity);
                  clusterConfigMappingEntity.setClusterId(clusterId);
                  clusterConfigMappingEntity.setType(configType);
                  clusterConfigMappingEntity.setCreateTimestamp(
                    Long.valueOf(System.currentTimeMillis()));
                  clusterConfigMappingEntity.setSelected(1);
                  clusterConfigMappingEntity.setUser(defaultUser);
                  clusterConfigMappingEntity.setVersion(configEntity.getTag());
                  entities.add(clusterConfigMappingEntity);
                  clusterDAO.merge(clusterEntity);
                }
              }
            }
View Full Code Here


          if (e.isSelected() > 0 && e.getType().equals(config.getType())) {
            e.setSelected(0);
          }
        }

        ClusterConfigMappingEntity entity = new ClusterConfigMappingEntity();
        entity.setClusterEntity(clusterEntity);
        entity.setClusterId(clusterEntity.getClusterId());
        entity.setCreateTimestamp(Long.valueOf(System.currentTimeMillis()));
        entity.setSelected(1);
        entity.setUser(user);
        entity.setType(config.getType());
        entity.setVersion(config.getVersionTag());
        entities.add(entity);

        clusterDAO.merge(clusterEntity);

        return true;
View Full Code Here

          if (e.isSelected() > 0 && e.getType().equals(config.getType())) {
            e.setSelected(0);
          }
        }

        ClusterConfigMappingEntity entity = new ClusterConfigMappingEntity();
        entity.setClusterEntity(clusterEntity);
        entity.setClusterId(clusterEntity.getClusterId());
        entity.setCreateTimestamp(Long.valueOf(System.currentTimeMillis()));
        entity.setSelected(1);
        entity.setUser(user);
        entity.setType(config.getType());
        entity.setVersion(config.getVersionTag());
        entities.add(entity);

        clusterDAO.merge(clusterEntity);

        return true;
View Full Code Here

          if (e.isSelected() > 0 && e.getType().equals(config.getType())) {
            e.setSelected(0);
          }
        }

        ClusterConfigMappingEntity entity = new ClusterConfigMappingEntity();
        entity.setClusterEntity(clusterEntity);
        entity.setClusterId(clusterEntity.getClusterId());
        entity.setCreateTimestamp(Long.valueOf(System.currentTimeMillis()));
        entity.setSelected(1);
        entity.setUser(user);
        entity.setType(config.getType());
        entity.setVersion(config.getVersionTag());
        entities.add(entity);

        clusterDAO.merge(clusterEntity);
        configHelper.invalidateStaleConfigsCache();
        return true;
View Full Code Here

                  clusterDAO.createConfig(configEntity);

                  Collection<ClusterConfigMappingEntity> entities =
                    clusterEntity.getConfigMappingEntities();

                  ClusterConfigMappingEntity clusterConfigMappingEntity =
                    new ClusterConfigMappingEntity();
                  clusterConfigMappingEntity.setClusterEntity(clusterEntity);
                  clusterConfigMappingEntity.setClusterId(clusterId);
                  clusterConfigMappingEntity.setType(configType);
                  clusterConfigMappingEntity.setCreateTimestamp(
                    Long.valueOf(System.currentTimeMillis()));
                  clusterConfigMappingEntity.setSelected(1);
                  clusterConfigMappingEntity.setUser(defaultUser);
                  clusterConfigMappingEntity.setVersion(configEntity.getTag());
                  entities.add(clusterConfigMappingEntity);
                  clusterDAO.merge(clusterEntity);
                }
              }
            }
View Full Code Here

      if (e.isSelected() > 0 && e.getType().equals(config.getType())) {
        e.setSelected(0);
      }
    }

    ClusterConfigMappingEntity entity = new ClusterConfigMappingEntity();
    entity.setClusterEntity(clusterEntity);
    entity.setClusterId(clusterEntity.getClusterId());
    entity.setCreateTimestamp(Long.valueOf (new java.util.Date().getTime()));
    entity.setSelected(1);
    entity.setType(config.getType());
    entity.setVersion(config.getVersionTag());
    entities.add(entity);

    clusterEntity.setConfigMappingEntities(entities);

    clusterDAO.merge(clusterEntity);
View Full Code Here

          if (e.isSelected() > 0 && e.getType().equals(config.getType())) {
            e.setSelected(0);
          }
        }

        ClusterConfigMappingEntity entity = new ClusterConfigMappingEntity();
        entity.setClusterEntity(clusterEntity);
        entity.setClusterId(clusterEntity.getClusterId());
        entity.setCreateTimestamp(Long.valueOf(System.currentTimeMillis()));
        entity.setSelected(1);
        entity.setUser(user);
        entity.setType(config.getType());
        entity.setVersion(config.getVersionTag());
        entities.add(entity);

        clusterDAO.merge(clusterEntity);

        return true;
View Full Code Here

          if (e.isSelected() > 0 && e.getType().equals(config.getType())) {
            e.setSelected(0);
          }
        }

        ClusterConfigMappingEntity entity = new ClusterConfigMappingEntity();
        entity.setClusterEntity(clusterEntity);
        entity.setClusterId(clusterEntity.getClusterId());
        entity.setCreateTimestamp(Long.valueOf(System.currentTimeMillis()));
        entity.setSelected(1);
        entity.setUser(user);
        entity.setType(config.getType());
        entity.setVersion(config.getVersionTag());
        entities.add(entity);

        clusterDAO.merge(clusterEntity);

        return true;
View Full Code Here

          if (e.isSelected() > 0 && e.getType().equals(config.getType())) {
            e.setSelected(0);
          }
        }

        ClusterConfigMappingEntity entity = new ClusterConfigMappingEntity();
        entity.setClusterEntity(clusterEntity);
        entity.setClusterId(clusterEntity.getClusterId());
        entity.setCreateTimestamp(Long.valueOf(System.currentTimeMillis()));
        entity.setSelected(1);
        entity.setUser(user);
        entity.setType(config.getType());
        entity.setVersion(config.getVersionTag());
        entities.add(entity);

        clusterDAO.merge(clusterEntity);

        return true;
View Full Code Here

                  clusterDAO.createConfig(configEntity);

                  Collection<ClusterConfigMappingEntity> entities =
                    clusterEntity.getConfigMappingEntities();

                  ClusterConfigMappingEntity clusterConfigMappingEntity =
                    new ClusterConfigMappingEntity();
                  clusterConfigMappingEntity.setClusterEntity(clusterEntity);
                  clusterConfigMappingEntity.setClusterId(clusterId);
                  clusterConfigMappingEntity.setType(configType);
                  clusterConfigMappingEntity.setCreateTimestamp(
                    Long.valueOf(System.currentTimeMillis()));
                  clusterConfigMappingEntity.setSelected(1);
                  clusterConfigMappingEntity.setUser(defaultUser);
                  clusterConfigMappingEntity.setVersion(configEntity.getTag());
                  entities.add(clusterConfigMappingEntity);
                  clusterDAO.merge(clusterEntity);
                }
              }
            }
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.orm.entities.ClusterConfigMappingEntity

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.