@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final SchedTaskTO other = (SchedTaskTO) obj; return new EqualsBuilder(). appendSuper(super.equals(obj)). append(startAt, other.startAt). append(cronExpression, other.cronExpression). append(jobDelegate, other.jobDelegate). append(name, other.name). append(description, other.description). append(lastExec, other.lastExec). append(nextExec, other.nextExec). append(active, other.active). build(); } }
@Override public int hashCode() { return new HashCodeBuilder(). appendSuper(super.hashCode()). append(startAt). append(cronExpression). append(jobDelegate). append(name). append(description). append(lastExec). append(nextExec). append(active). build(); }
@Override public <T extends TaskTO> T getTaskTO(final Task task, final TaskUtils taskUtils, final boolean details) { T taskTO = taskUtils.newTaskTO(); taskTO.setKey(task.getKey()); taskTO.setLatestExecStatus(StringUtils.EMPTY); } else { taskTO.setLatestExecStatus(latestExec.getStatus()); taskTO.setStart(latestExec.getStart()); taskTO.setEnd(latestExec.getEnd()); task.getExecs().stream(). filter(Objects::nonNull). forEach(execution -> taskTO.getExecutions().add(getExecTO(execution))); notificationTaskTO.setTextBody(notificationTask.getTextBody()); notificationTaskTO.setExecuted(notificationTask.isExecuted()); if (notificationTask.isExecuted() && StringUtils.isBlank(taskTO.getLatestExecStatus())) { taskTO.setLatestExecStatus("[EXECUTED]");
key = (String) args[i]; } else if (args[i] instanceof TaskTO) { key = ((TaskTO) args[i]).getKey();
public TaskExecutionDetails(final BaseModal<?> baseModal, final T taskTO, final PageReference pageRef) { super(); final MultilevelPanel mlp = new MultilevelPanel("executions"); add(mlp); mlp.setFirstLevel(new ExecutionsDirectoryPanel(baseModal, mlp, taskTO.getKey(), new TaskRestClient(), pageRef) { private static final long serialVersionUID = 5691719817252887541L; @Override protected void next( final String title, final MultilevelPanel.SecondLevel slevel, final AjaxRequestTarget target) { mlp.next(title, slevel, target); } }); } }
@Override public int hashCode() { return new HashCodeBuilder(). appendSuper(super.hashCode()). append(startAt). append(cronExpression). append(jobDelegate). append(name). append(description). append(lastExec). append(nextExec). append(active). build(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final PropagationTaskTO other = (PropagationTaskTO) obj; return new EqualsBuilder(). appendSuper(super.equals(obj)). append(operation, other.operation). append(connObjectKey, other.connObjectKey). append(oldConnObjectKey, other.oldConnObjectKey). append(attributes, other.attributes). append(resource, other.resource). append(objectClassName, other.objectClassName). append(anyTypeKind, other.anyTypeKind). append(anyType, other.anyType). append(entityKey, other.entityKey). build(); } }
@Override public int hashCode() { return new HashCodeBuilder(). appendSuper(super.hashCode()). append(operation). append(connObjectKey). append(oldConnObjectKey). append(attributes). append(resource). append(objectClassName). append(anyTypeKind). append(anyType). append(entityKey). build(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final SchedTaskTO other = (SchedTaskTO) obj; return new EqualsBuilder(). appendSuper(super.equals(obj)). append(startAt, other.startAt). append(cronExpression, other.cronExpression). append(jobDelegate, other.jobDelegate). append(name, other.name). append(description, other.description). append(lastExec, other.lastExec). append(nextExec, other.nextExec). append(active, other.active). build(); } }
@Override public int hashCode() { return new HashCodeBuilder(). appendSuper(super.hashCode()). append(operation). append(connObjectKey). append(oldConnObjectKey). append(attributes). append(resource). append(objectClassName). append(anyTypeKind). append(anyType). append(entityKey). build(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final NotificationTaskTO other = (NotificationTaskTO) obj; return new EqualsBuilder(). appendSuper(super.equals(obj)). append(notification, other.notification). append(anyTypeKind, other.anyTypeKind). append(entityKey, other.entityKey). append(recipients, other.recipients). append(sender, other.sender). append(subject, other.subject). append(textBody, other.textBody). append(htmlBody, other.htmlBody). append(executed, other.executed). append(traceLevel, other.traceLevel). build(); } }
@Override public int hashCode() { return new HashCodeBuilder(). appendSuper(super.hashCode()). append(notification). append(anyTypeKind). append(entityKey). append(recipients). append(sender). append(subject). append(textBody). append(htmlBody). append(executed). append(traceLevel). build(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final NotificationTaskTO other = (NotificationTaskTO) obj; return new EqualsBuilder(). appendSuper(super.equals(obj)). append(notification, other.notification). append(anyTypeKind, other.anyTypeKind). append(entityKey, other.entityKey). append(recipients, other.recipients). append(sender, other.sender). append(subject, other.subject). append(textBody, other.textBody). append(htmlBody, other.htmlBody). append(executed, other.executed). append(traceLevel, other.traceLevel). build(); } }
@Override public int hashCode() { return new HashCodeBuilder(). appendSuper(super.hashCode()). append(notification). append(anyTypeKind). append(entityKey). append(recipients). append(sender). append(subject). append(textBody). append(htmlBody). append(executed). append(traceLevel). build(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final PropagationTaskTO other = (PropagationTaskTO) obj; return new EqualsBuilder(). appendSuper(super.equals(obj)). append(operation, other.operation). append(connObjectKey, other.connObjectKey). append(oldConnObjectKey, other.oldConnObjectKey). append(attributes, other.attributes). append(resource, other.resource). append(objectClassName, other.objectClassName). append(anyTypeKind, other.anyTypeKind). append(anyType, other.anyType). append(entityKey, other.entityKey). build(); } }