package com.qianwen.core.context.task;
|
|
import java.io.Serializable;
|
import java.util.ArrayList;
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
/* loaded from: blade-core-context-9.3.0.0-SNAPSHOT.jar:org/springblade/core/context/task/TaskExecutionContext.class */
|
public class TaskExecutionContext implements Serializable {
|
private String contextId;
|
private String name;
|
private String business;
|
private String tenantId;
|
private String executor;
|
private Map<String, Object> data;
|
private Map<String, Object> extendInfo = new HashMap();
|
private List<String> relatedPersonals = new ArrayList();
|
private TaskExecutorTypeEnum taskExecutorTypeEnum;
|
|
public void setContextId(final String contextId) {
|
this.contextId = contextId;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setBusiness(final String business) {
|
this.business = business;
|
}
|
|
public void setTenantId(final String tenantId) {
|
this.tenantId = tenantId;
|
}
|
|
public void setExecutor(final String executor) {
|
this.executor = executor;
|
}
|
|
public void setData(final Map<String, Object> data) {
|
this.data = data;
|
}
|
|
public void setExtendInfo(final Map<String, Object> extendInfo) {
|
this.extendInfo = extendInfo;
|
}
|
|
public void setRelatedPersonals(final List<String> relatedPersonals) {
|
this.relatedPersonals = relatedPersonals;
|
}
|
|
public void setTaskExecutorTypeEnum(final TaskExecutorTypeEnum taskExecutorTypeEnum) {
|
this.taskExecutorTypeEnum = taskExecutorTypeEnum;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof TaskExecutionContext) {
|
TaskExecutionContext other = (TaskExecutionContext) o;
|
if (other.canEqual(this)) {
|
Object this$contextId = getContextId();
|
Object other$contextId = other.getContextId();
|
if (this$contextId == null) {
|
if (other$contextId != null) {
|
return false;
|
}
|
} else if (!this$contextId.equals(other$contextId)) {
|
return false;
|
}
|
Object this$name = getName();
|
Object other$name = other.getName();
|
if (this$name == null) {
|
if (other$name != null) {
|
return false;
|
}
|
} else if (!this$name.equals(other$name)) {
|
return false;
|
}
|
Object this$business = getBusiness();
|
Object other$business = other.getBusiness();
|
if (this$business == null) {
|
if (other$business != null) {
|
return false;
|
}
|
} else if (!this$business.equals(other$business)) {
|
return false;
|
}
|
Object this$tenantId = getTenantId();
|
Object other$tenantId = other.getTenantId();
|
if (this$tenantId == null) {
|
if (other$tenantId != null) {
|
return false;
|
}
|
} else if (!this$tenantId.equals(other$tenantId)) {
|
return false;
|
}
|
Object this$executor = getExecutor();
|
Object other$executor = other.getExecutor();
|
if (this$executor == null) {
|
if (other$executor != null) {
|
return false;
|
}
|
} else if (!this$executor.equals(other$executor)) {
|
return false;
|
}
|
Object this$data = getData();
|
Object other$data = other.getData();
|
if (this$data == null) {
|
if (other$data != null) {
|
return false;
|
}
|
} else if (!this$data.equals(other$data)) {
|
return false;
|
}
|
Object this$extendInfo = getExtendInfo();
|
Object other$extendInfo = other.getExtendInfo();
|
if (this$extendInfo == null) {
|
if (other$extendInfo != null) {
|
return false;
|
}
|
} else if (!this$extendInfo.equals(other$extendInfo)) {
|
return false;
|
}
|
Object this$relatedPersonals = getRelatedPersonals();
|
Object other$relatedPersonals = other.getRelatedPersonals();
|
if (this$relatedPersonals == null) {
|
if (other$relatedPersonals != null) {
|
return false;
|
}
|
} else if (!this$relatedPersonals.equals(other$relatedPersonals)) {
|
return false;
|
}
|
Object this$taskExecutorTypeEnum = getTaskExecutorTypeEnum();
|
Object other$taskExecutorTypeEnum = other.getTaskExecutorTypeEnum();
|
return this$taskExecutorTypeEnum == null ? other$taskExecutorTypeEnum == null : this$taskExecutorTypeEnum.equals(other$taskExecutorTypeEnum);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof TaskExecutionContext;
|
}
|
|
public int hashCode() {
|
Object $contextId = getContextId();
|
int result = (1 * 59) + ($contextId == null ? 43 : $contextId.hashCode());
|
Object $name = getName();
|
int result2 = (result * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $business = getBusiness();
|
int result3 = (result2 * 59) + ($business == null ? 43 : $business.hashCode());
|
Object $tenantId = getTenantId();
|
int result4 = (result3 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
|
Object $executor = getExecutor();
|
int result5 = (result4 * 59) + ($executor == null ? 43 : $executor.hashCode());
|
Object $data = getData();
|
int result6 = (result5 * 59) + ($data == null ? 43 : $data.hashCode());
|
Object $extendInfo = getExtendInfo();
|
int result7 = (result6 * 59) + ($extendInfo == null ? 43 : $extendInfo.hashCode());
|
Object $relatedPersonals = getRelatedPersonals();
|
int result8 = (result7 * 59) + ($relatedPersonals == null ? 43 : $relatedPersonals.hashCode());
|
Object $taskExecutorTypeEnum = getTaskExecutorTypeEnum();
|
return (result8 * 59) + ($taskExecutorTypeEnum == null ? 43 : $taskExecutorTypeEnum.hashCode());
|
}
|
|
public String toString() {
|
return "TaskExecutionContext(contextId=" + getContextId() + ", name=" + getName() + ", business=" + getBusiness() + ", tenantId=" + getTenantId() + ", executor=" + getExecutor() + ", data=" + getData() + ", extendInfo=" + getExtendInfo() + ", relatedPersonals=" + getRelatedPersonals() + ", taskExecutorTypeEnum=" + getTaskExecutorTypeEnum() + ")";
|
}
|
|
public String getContextId() {
|
return this.contextId;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getBusiness() {
|
return this.business;
|
}
|
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public String getExecutor() {
|
return this.executor;
|
}
|
|
public Map<String, Object> getData() {
|
return this.data;
|
}
|
|
public Map<String, Object> getExtendInfo() {
|
return this.extendInfo;
|
}
|
|
public List<String> getRelatedPersonals() {
|
return this.relatedPersonals;
|
}
|
|
public TaskExecutorTypeEnum getTaskExecutorTypeEnum() {
|
return this.taskExecutorTypeEnum;
|
}
|
}
|