priorityMap.put(index, Math.max(0, dashletSpecs.get(index).getPriority() - dashletSpecs.get(index).getBoostPriority())); durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration()); } else { priorityMap.put(index, Math.max(0, dashletSpecs.get(index).getPriority() - dashletSpecs.get(index).getBoostPriority())); durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration()); } else {
@Override public DashletSpec clone() { DashletSpec dashletSpec = new DashletSpec(); dashletSpec.setPriority(getPriority()); dashletSpec.setDuration(getDuration()); dashletSpec.setBoostPriority(getBoostPriority()); dashletSpec.setBoostDuration(getBoostDuration()); dashletSpec.setDashletName(getDashletName()); return dashletSpec; } }
boostPriorityField.setValue(String.valueOf(dashletSpec.getBoostPriority())); boostPriorityField.setImmediate(true); boostPriorityField.setCaption("Boost-Priority");