@Override public String toString() { StringBuilder str = new StringBuilder(); return str.append(getClass().getSimpleName()).append(":[id='").append(getId()).append("', name='").append(name) .append("', description='").append(getDescription()).append("', delay='").append(getDelay()) .append("', recurrence='").append(getRecurrence()).append("', enabled='").append(isEnabled()) .append("', script='").append(getScript()).append("']").toString(); }
@Override public String serializeToString() { StringBuilder str = new StringBuilder(); return str.append(this.getClass().getSimpleName()).append(":[").append( "id=<").append(getId()).append(">").append( ", name=<").append(getName() == null ? "\\0" : BeansUtils.createEscaping(getName())).append(">").append( ", description=<").append(getDescription() == null ? "\\0" : BeansUtils.createEscaping(getDescription())).append(">").append( ", delay=<").append(this.getDelay()).append(">").append( ", recurrence=<").append(this.getRecurrence()).append(">").append( ", enabled=<").append(this.isEnabled()).append(">").append( ", script=<").append(getScript() == null ? "\\0" : BeansUtils.createEscaping(getScript())).append(">").append( ']').toString(); }
task.setService(service); task.setDestinations(destinationList); task.setDelay(service.getDelay()); task.setRecurrence(service.getRecurrence()); task.setPropagationForced(Boolean.parseBoolean(eventIsForced));
task.setStatus(TaskStatus.WAITING); task.setRecurrence(0); task.setDelay(service.getDelay()); task.setSchedule(new Date(System.currentTimeMillis())); task.setSourceUpdated(false);
public ServiceForGUI(Service service){ setId(service.getId()); setName(service.getName()); setDescription(service.getDescription()); setDelay(service.getDelay()); setRecurrence(service.getRecurrence()); setScript(service.getScript()); setEnabled(service.isEnabled()); }