@Override public String convertToPresentation(final TotalTargetCountStatus value, final Class<? extends String> targetType, final Locale locale) { return DistributionBarHelper.getDistributionBarAsHTMLString(value.getStatusTotalCountMap()); }
@Override public String convertToPresentation(final TotalTargetCountStatus value, final Class<? extends String> targetType, final Locale locale) { return DistributionBarHelper.getDistributionBarAsHTMLString(value.getStatusTotalCountMap()); }
@Override public String convertToPresentation(final TotalTargetCountStatus value, final Class<? extends String> targetType, final Locale locale) { return DistributionBarHelper.getDistributionBarAsHTMLString(value.getStatusTotalCountMap()); }
@Override public String convertToPresentation(final TotalTargetCountStatus value, final Class<? extends String> targetType, final Locale locale) { return DistributionBarHelper.getDistributionBarAsHTMLString(value.getStatusTotalCountMap()); }
private String getConfirmationQuestion(final Rollout rollout) { final Map<Status, Long> statusTotalCount = rollout.getTotalTargetCountStatus().getStatusTotalCountMap(); Long scheduledActions = statusTotalCount.get(Status.SCHEDULED); if (scheduledActions == null) { scheduledActions = 0L; } final Long runningActions = statusTotalCount.get(Status.RUNNING); String rolloutDetailsMessage = ""; if ((scheduledActions > 0) || (runningActions > 0)) { rolloutDetailsMessage = i18n.getMessage("message.delete.rollout.details", runningActions, scheduledActions); } return i18n.getMessage("message.delete.rollout", rollout.getName(), rolloutDetailsMessage); }
private String getConfirmationQuestion(final Rollout rollout) { final Map<Status, Long> statusTotalCount = rollout.getTotalTargetCountStatus().getStatusTotalCountMap(); Long scheduledActions = statusTotalCount.get(Status.SCHEDULED); if (scheduledActions == null) { scheduledActions = 0L; } final Long runningActions = statusTotalCount.get(Status.RUNNING); String rolloutDetailsMessage = ""; if ((scheduledActions > 0) || (runningActions > 0)) { rolloutDetailsMessage = i18n.getMessage("message.delete.rollout.details", runningActions, scheduledActions); } return i18n.getMessage("message.delete.rollout", rollout.getName(), rolloutDetailsMessage); }
private String getDescription(final CellReference cell) { String description = null; if (SPUILabelDefinitions.VAR_STATUS.equals(cell.getPropertyId())) { description = cell.getProperty().getValue().toString().toLowerCase().replace("_", " "); } else if (getActionLabeltext().equals(cell.getPropertyId())) { description = getActionLabeltext().toLowerCase(); } else if (ROLLOUT_RENDERER_DATA.equals(cell.getPropertyId())) { description = ((RolloutRendererData) cell.getProperty().getValue()).getName(); } else if (SPUILabelDefinitions.VAR_TOTAL_TARGETS_COUNT_STATUS.equals(cell.getPropertyId())) { description = getTooltip(((TotalTargetCountStatus) cell.getValue()).getStatusTotalCountMap()); } return description; }
private String getDescription(final CellReference cell) { String description = null; if (SPUILabelDefinitions.VAR_STATUS.equals(cell.getPropertyId())) { description = cell.getProperty().getValue().toString().toLowerCase().replace("_", " "); } else if (getActionLabeltext().equals(cell.getPropertyId())) { description = getActionLabeltext().toLowerCase(); } else if (ROLLOUT_RENDERER_DATA.equals(cell.getPropertyId())) { description = ((RolloutRendererData) cell.getProperty().getValue()).getName(); } else if (SPUILabelDefinitions.VAR_TOTAL_TARGETS_COUNT_STATUS.equals(cell.getPropertyId())) { description = getTooltip(((TotalTargetCountStatus) cell.getValue()).getStatusTotalCountMap()); } return description; }
private String getDescription(final CellReference cell) { if (SPUILabelDefinitions.VAR_STATUS.equals(cell.getPropertyId())) { return cell.getProperty().getValue().toString().toLowerCase(); } else if (getActionLabeltext().equals(cell.getPropertyId())) { return getActionLabeltext().toLowerCase(); } else if (ROLLOUT_RENDERER_DATA.equals(cell.getPropertyId())) { return ((RolloutRendererData) cell.getProperty().getValue()).getName(); } else if (SPUILabelDefinitions.VAR_TOTAL_TARGETS_COUNT_STATUS.equals(cell.getPropertyId())) { return DistributionBarHelper .getTooltip(((TotalTargetCountStatus) cell.getValue()).getStatusTotalCountMap()); } return null; }
private String getDescription(final CellReference cell) { if (SPUILabelDefinitions.VAR_STATUS.equals(cell.getPropertyId())) { return cell.getProperty().getValue().toString().toLowerCase(); } else if (getActionLabeltext().equals(cell.getPropertyId())) { return getActionLabeltext().toLowerCase(); } else if (ROLLOUT_RENDERER_DATA.equals(cell.getPropertyId())) { return ((RolloutRendererData) cell.getProperty().getValue()).getName(); } else if (SPUILabelDefinitions.VAR_TOTAL_TARGETS_COUNT_STATUS.equals(cell.getPropertyId())) { return DistributionBarHelper .getTooltip(((TotalTargetCountStatus) cell.getValue()).getStatusTotalCountMap()); } return null; }