Tabnine Logo
DistributionSet.isRequiredMigrationStep
Code IndexAdd Tabnine to your IDE (free)

How to use
isRequiredMigrationStep
method
in
org.eclipse.hawkbit.repository.model.DistributionSet

Best Java code snippets using org.eclipse.hawkbit.repository.model.DistributionSet.isRequiredMigrationStep (Showing top 10 results out of 315)

origin: org.eclipse.hawkbit/hawkbit-ui

stringBuilder.append(HTML_LI_OPEN_TAG);
stringBuilder.append(" Required Migration step : ")
    .append(distributionSet.isRequiredMigrationStep() ? "Yes" : "No");
stringBuilder.append(HTML_LI_CLOSE_TAG);
stringBuilder.append(HTML_LI_OPEN_TAG);
origin: eclipse/hawkbit

stringBuilder.append(HTML_LI_OPEN_TAG);
stringBuilder.append(" Required Migration step : ")
    .append(distributionSet.isRequiredMigrationStep() ? "Yes" : "No");
stringBuilder.append(HTML_LI_CLOSE_TAG);
stringBuilder.append(HTML_LI_OPEN_TAG);
origin: eclipse/hawkbit

public static String distributionSetUpdateValidFieldsOnly(final DistributionSet set) throws JSONException {
  set.getModules().stream().map(module -> {
    try {
      return new JSONObject().put("id", module.getId());
    } catch (final JSONException e) {
      e.printStackTrace();
      return null;
    }
  }).collect(Collectors.toList());
  return new JSONObject().put("name", set.getName()).put("description", set.getDescription())
      .put("version", set.getVersion()).put("requiredMigrationStep", set.isRequiredMigrationStep())
      .toString();
}
origin: eclipse/hawkbit

private void populateValuesOfDistribution(final Long editDistId) {
  final Optional<DistributionSet> distSet = distributionSetManagement.getWithDetails(editDistId);
  if (!distSet.isPresent()) {
    return;
  }
  distNameTextField.setValue(distSet.get().getName());
  distVersionTextField.setValue(distSet.get().getVersion());
  if (distSet.get().getType().isDeleted()) {
    distsetTypeNameComboBox.addItem(distSet.get().getType().getId());
  }
  distsetTypeNameComboBox.setValue(distSet.get().getType().getId());
  distsetTypeNameComboBox.setEnabled(false);
  reqMigStepCheckbox.setValue(distSet.get().isRequiredMigrationStep());
  descTextArea.setValue(distSet.get().getDescription());
}
origin: eclipse/hawkbit

public static JSONObject distributionSetCreateValidFieldsOnly(final DistributionSet set) throws JSONException {
  final List<JSONObject> modules = set.getModules().stream().map(module -> {
    try {
      return new JSONObject().put("id", module.getId());
    } catch (final JSONException e) {
      e.printStackTrace();
      return null;
    }
  }).collect(Collectors.toList());
  return new JSONObject().put("name", set.getName()).put("description", set.getDescription())
      .put("type", set.getType() == null ? null : set.getType().getKey()).put("version", set.getVersion())
      .put("requiredMigrationStep", set.isRequiredMigrationStep()).put("modules", new JSONArray(modules));
}
origin: org.eclipse.hawkbit/hawkbit-ui

private void populateValuesOfDistribution(final Long editDistId) {
  final Optional<DistributionSet> distSet = distributionSetManagement.getWithDetails(editDistId);
  if (!distSet.isPresent()) {
    return;
  }
  distNameTextField.setValue(distSet.get().getName());
  distVersionTextField.setValue(distSet.get().getVersion());
  if (distSet.get().getType().isDeleted()) {
    distsetTypeNameComboBox.addItem(distSet.get().getType().getId());
  }
  distsetTypeNameComboBox.setValue(distSet.get().getType().getId());
  distsetTypeNameComboBox.setEnabled(false);
  reqMigStepCheckbox.setValue(distSet.get().isRequiredMigrationStep());
  descTextArea.setValue(distSet.get().getDescription());
}
origin: eclipse/hawkbit

public static JSONObject distributionSet(final DistributionSet set) throws JSONException {
  final List<JSONObject> modules = set.getModules().stream().map(module -> {
    try {
      return new JSONObject().put("id", module.getId());
    } catch (final JSONException e) {
      e.printStackTrace();
      return null;
    }
  }).collect(Collectors.toList());
  return new JSONObject().put("name", set.getName()).put("description", set.getDescription())
      .put("type", set.getType() == null ? null : set.getType().getKey()).put("id", Long.MAX_VALUE)
      .put("version", set.getVersion()).put("createdAt", "0").put("updatedAt", "0")
      .put("createdBy", "fghdfkjghdfkjh").put("updatedBy", "fghdfkjghdfkjh")
      .put("requiredMigrationStep", set.isRequiredMigrationStep()).put("modules", new JSONArray(modules));
}
origin: eclipse/hawkbit

protected void populateDetails() {
  if (getSelectedBaseEntity() != null) {
    updateDistributionSetDetailsLayout(getSelectedBaseEntity().getType().getName(),
        getSelectedBaseEntity().isRequiredMigrationStep());
  } else {
    updateDistributionSetDetailsLayout(null, null);
  }
}
origin: org.eclipse.hawkbit/hawkbit-ui

protected void populateDetails() {
  if (getSelectedBaseEntity() != null) {
    updateDistributionSetDetailsLayout(getSelectedBaseEntity().getType().getName(),
        getSelectedBaseEntity().isRequiredMigrationStep());
  } else {
    updateDistributionSetDetailsLayout(null, null);
  }
}
origin: eclipse/hawkbit

static MgmtDistributionSet toResponse(final DistributionSet distributionSet) {
  if (distributionSet == null) {
    return null;
  }
  final MgmtDistributionSet response = new MgmtDistributionSet();
  MgmtRestModelMapper.mapNamedToNamed(response, distributionSet);
  response.setDsId(distributionSet.getId());
  response.setVersion(distributionSet.getVersion());
  response.setComplete(distributionSet.isComplete());
  response.setType(distributionSet.getType().getKey());
  response.setDeleted(distributionSet.isDeleted());
  distributionSet.getModules()
      .forEach(module -> response.getModules().add(MgmtSoftwareModuleMapper.toResponse(module)));
  response.setRequiredMigrationStep(distributionSet.isRequiredMigrationStep());
  response.add(linkTo(methodOn(MgmtDistributionSetRestApi.class).getDistributionSet(response.getDsId()))
      .withSelfRel());
  return response;
}
org.eclipse.hawkbit.repository.modelDistributionSetisRequiredMigrationStep

Popular methods of DistributionSet

  • getModules
  • getId
  • getType
  • getVersion
  • findFirstModuleByType
  • getDescription
  • getName
  • isComplete
  • getAutoAssignFilters
  • getCreatedAt
  • getLastModifiedAt
  • getTenant
  • getLastModifiedAt,
  • getTenant,
  • isDeleted

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now