public boolean isBlockedGlobally() { return (service != null) && !service.isEnabled(); }
@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(); }
Facility facility = map.getKey(); for (Service service : map.getValue()) { if (!service.isEnabled()) { log.debug("Service not enabled: {}.", service); continue;
if (service.isEnabled()) { log.debug("[{}] Service {} is enabled globally.", task.getId(), service.getId()); } else {
if (!task.getService().isEnabled() || generalServiceManager.isServiceBlockedOnFacility(task.getService(), task.getFacility())) { log.error("[{}] Task NOT added to waiting queue, service is blocked: {}.", task.getId(), task);
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()); }