mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
chore: 工作区反编译与 Maven/文档/脚本同步到发布分支
- artifacts/decompiled 树与相关源码变更 - maven-cw-elevator-application 业务 docs 与 package-info - scripts 下 formatter 校验与辅助脚本 - 其他子工程/接口与发布线一并纳入版本控制 Made-with: Cursor Former-commit-id: e102e8cab64e575bcd23c9a66a598aa1892bb492
This commit is contained in:
+65
-112
@@ -7,134 +7,87 @@ import cn.cloudwalk.cloud.session.user.UserContext;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public final class CloudwalkCallContext implements Serializable {
|
||||
private static final long serialVersionUID = -6192221637110412715L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String deviceId;
|
||||
private String logId;
|
||||
private Date callTime;
|
||||
private UserContext user;
|
||||
private ExtendContext ext;
|
||||
private NotesContext notes;
|
||||
private CompanyContext company;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getLogId() {
|
||||
return this.logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public Date getCallTime() {
|
||||
return this.callTime;
|
||||
}
|
||||
|
||||
public void setCallTime(Date callTime) {
|
||||
this.callTime = callTime;
|
||||
}
|
||||
|
||||
public UserContext getUser() {
|
||||
return this.user;
|
||||
}
|
||||
|
||||
public void setUser(UserContext user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public CompanyContext getCompany() {
|
||||
return this.company;
|
||||
}
|
||||
|
||||
public void setCompany(CompanyContext company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
public ExtendContext getExt() {
|
||||
return this.ext;
|
||||
}
|
||||
|
||||
public void setExt(ExtendContext ext) {
|
||||
this.ext = ext;
|
||||
}
|
||||
|
||||
public NotesContext getNotes() {
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
public void setNotes(NotesContext notes) {
|
||||
this.notes = notes;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public final class CloudwalkCallContext
|
||||
implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -6192221637110412715L;
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private String deviceId;
|
||||
private String logId;
|
||||
private Date callTime;
|
||||
private UserContext user;
|
||||
private ExtendContext ext;
|
||||
private NotesContext notes;
|
||||
private CompanyContext company;
|
||||
|
||||
public String getApplicationId() {
|
||||
/* 68 */ return this.applicationId;
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
/* 72 */ this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
/* 76 */ return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
/* 80 */ this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getLogId() {
|
||||
/* 84 */ return this.logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
/* 88 */ this.logId = logId;
|
||||
}
|
||||
|
||||
public Date getCallTime() {
|
||||
/* 92 */ return this.callTime;
|
||||
}
|
||||
|
||||
public void setCallTime(Date callTime) {
|
||||
/* 96 */ this.callTime = callTime;
|
||||
}
|
||||
|
||||
public UserContext getUser() {
|
||||
return this.user;
|
||||
}
|
||||
|
||||
public void setUser(UserContext user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public CompanyContext getCompany() {
|
||||
return this.company;
|
||||
}
|
||||
|
||||
public void setCompany(CompanyContext company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
public ExtendContext getExt() {
|
||||
return this.ext;
|
||||
}
|
||||
|
||||
public void setExt(ExtendContext ext) {
|
||||
this.ext = ext;
|
||||
}
|
||||
|
||||
public NotesContext getNotes() {
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
public void setNotes(NotesContext notes) {
|
||||
this.notes = notes;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+16
-39
@@ -1,46 +1,23 @@
|
||||
package cn.cloudwalk.cloud.context;
|
||||
|
||||
public final class CloudwalkCallContextBuilder {
|
||||
public static CloudwalkCallContext buildContext(CloudwalkSessionContextHolder sessionContextHolder) {
|
||||
CloudwalkSessionObject session = sessionContextHolder.getSession();
|
||||
CloudwalkCallContext context = new CloudwalkCallContext();
|
||||
|
||||
context.setUser(session.getUser());
|
||||
context.setCompany(session.getCompany());
|
||||
context.setExt(session.getExt());
|
||||
context.setNotes(session.getNotes());
|
||||
|
||||
context.setCallTime(session.getCallTime());
|
||||
context.setApplicationId(session.getApplicationId());
|
||||
context.setServiceCode(session.getServiceCode());
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public final class CloudwalkCallContextBuilder
|
||||
{
|
||||
public static CloudwalkCallContext buildContext(CloudwalkSessionContextHolder sessionContextHolder) {
|
||||
CloudwalkSessionObject session = sessionContextHolder.getSession();
|
||||
CloudwalkCallContext context = new CloudwalkCallContext();
|
||||
|
||||
context.setUser(session.getUser());
|
||||
context.setCompany(session.getCompany());
|
||||
context.setExt(session.getExt());
|
||||
context.setNotes(session.getNotes());
|
||||
|
||||
context.setCallTime(session.getCallTime());
|
||||
context.setApplicationId(session.getApplicationId());
|
||||
context.setServiceCode(session.getServiceCode());
|
||||
|
||||
return context;
|
||||
public static void cleanContext(CloudwalkSessionContextHolder sessionContextHolder) {
|
||||
sessionContextHolder.clearSession();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static void cleanContext(CloudwalkSessionContextHolder sessionContextHolder) {
|
||||
sessionContextHolder.clearSession();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+11
-39
@@ -1,45 +1,17 @@
|
||||
package cn.cloudwalk.cloud.context;
|
||||
|
||||
public final class CloudwalkSessionContextHolder {
|
||||
private static ThreadLocal<CloudwalkSessionObject> SESSION_OBJECT = new ThreadLocal<>();
|
||||
|
||||
public CloudwalkSessionObject getSession() {
|
||||
return SESSION_OBJECT.get();
|
||||
}
|
||||
|
||||
public void putSession(CloudwalkSessionObject cloudWalkSessionObject) {
|
||||
SESSION_OBJECT.set(cloudWalkSessionObject);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public final class CloudwalkSessionContextHolder
|
||||
{
|
||||
private static ThreadLocal<CloudwalkSessionObject> SESSION_OBJECT = new ThreadLocal<>();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public CloudwalkSessionObject getSession() {
|
||||
return SESSION_OBJECT.get();
|
||||
public void clearSession() {
|
||||
SESSION_OBJECT.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void putSession(CloudwalkSessionObject cloudWalkSessionObject) {
|
||||
SESSION_OBJECT.set(cloudWalkSessionObject);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void clearSession() {
|
||||
SESSION_OBJECT.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+81
-144
@@ -10,170 +10,107 @@ import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
public final class CloudwalkSessionObject implements Serializable {
|
||||
private static final long serialVersionUID = -5960069764782340892L;
|
||||
public static final String CLOUDWALK_SESSION_OBJECT_KEY = "cloudSessionObject";
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private Date callTime;
|
||||
private UserContext user;
|
||||
private CompanyContext company;
|
||||
private ExtendContext ext;
|
||||
private NotesContext notes;
|
||||
|
||||
public CloudwalkSessionObject() {
|
||||
this.notes = (NotesContext) new ErrorContext();
|
||||
}
|
||||
|
||||
public CloudwalkSessionObject(String[] values) {
|
||||
Assert.notNull(values, "values is not null");
|
||||
if (values.length != 4) {
|
||||
throw new IllegalArgumentException("values is not vaild");
|
||||
}
|
||||
|
||||
this.user = new UserContext();
|
||||
this.company = new CompanyContext();
|
||||
this.notes = (NotesContext) new ErrorContext();
|
||||
|
||||
this.user.setCaller(values[0]);
|
||||
this.user.setCallerName(values[2]);
|
||||
this.company.setCompanyId(values[1]);
|
||||
|
||||
setApplicationId(values[3]);
|
||||
setCallTime(CloudwalkDateUtils.getCurrentDate());
|
||||
}
|
||||
|
||||
public CloudwalkSessionObject(String userId, String serviceCode, String businessId, String corpCode,
|
||||
String username) {
|
||||
this.user = new UserContext();
|
||||
this.company = new CompanyContext();
|
||||
this.notes = (NotesContext) new ErrorContext();
|
||||
|
||||
this.user.setCaller(userId);
|
||||
this.user.setCallerName(username);
|
||||
this.company.setCompanyId(businessId);
|
||||
this.company.setCorpCode(corpCode);
|
||||
|
||||
setServiceCode(serviceCode);
|
||||
setCallTime(CloudwalkDateUtils.getCurrentDate());
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public Date getCallTime() {
|
||||
return this.callTime;
|
||||
}
|
||||
|
||||
public void setCallTime(Date callTime) {
|
||||
this.callTime = callTime;
|
||||
}
|
||||
|
||||
public UserContext getUser() {
|
||||
return this.user;
|
||||
}
|
||||
|
||||
public void setUser(UserContext user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public CompanyContext getCompany() {
|
||||
return this.company;
|
||||
}
|
||||
|
||||
public void setCompany(CompanyContext company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
public ExtendContext getExt() {
|
||||
return this.ext;
|
||||
}
|
||||
|
||||
public void setExt(ExtendContext ext) {
|
||||
this.ext = ext;
|
||||
}
|
||||
|
||||
public NotesContext getNotes() {
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
public void setNotes(NotesContext notes) {
|
||||
this.notes = notes;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public final class CloudwalkSessionObject
|
||||
implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -5960069764782340892L;
|
||||
public static final String CLOUDWALK_SESSION_OBJECT_KEY = "cloudSessionObject";
|
||||
private String applicationId;
|
||||
private String serviceCode;
|
||||
private Date callTime;
|
||||
private UserContext user;
|
||||
private CompanyContext company;
|
||||
private ExtendContext ext;
|
||||
private NotesContext notes;
|
||||
|
||||
public CloudwalkSessionObject() {
|
||||
/* 71 */ this.notes = (NotesContext)new ErrorContext();
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public CloudwalkSessionObject(String[] values) {
|
||||
/* 81 */ Assert.notNull(values, "values is not null");
|
||||
/* 82 */ if (values.length != 4) {
|
||||
/* 83 */ throw new IllegalArgumentException("values is not vaild");
|
||||
}
|
||||
|
||||
/* 86 */ this.user = new UserContext();
|
||||
/* 87 */ this.company = new CompanyContext();
|
||||
/* 88 */ this.notes = (NotesContext)new ErrorContext();
|
||||
|
||||
/* 90 */ this.user.setCaller(values[0]);
|
||||
/* 91 */ this.user.setCallerName(values[2]);
|
||||
/* 92 */ this.company.setCompanyId(values[1]);
|
||||
|
||||
/* 94 */ setApplicationId(values[3]);
|
||||
/* 95 */ setCallTime(CloudwalkDateUtils.getCurrentDate());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public CloudwalkSessionObject(String userId, String serviceCode, String businessId, String corpCode, String username) {
|
||||
this.user = new UserContext();
|
||||
this.company = new CompanyContext();
|
||||
this.notes = (NotesContext)new ErrorContext();
|
||||
|
||||
this.user.setCaller(userId);
|
||||
this.user.setCallerName(username);
|
||||
this.company.setCompanyId(businessId);
|
||||
this.company.setCorpCode(corpCode);
|
||||
|
||||
setServiceCode(serviceCode);
|
||||
setCallTime(CloudwalkDateUtils.getCurrentDate());
|
||||
}
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public Date getCallTime() {
|
||||
return this.callTime;
|
||||
}
|
||||
|
||||
public void setCallTime(Date callTime) {
|
||||
this.callTime = callTime;
|
||||
}
|
||||
|
||||
public UserContext getUser() {
|
||||
return this.user;
|
||||
}
|
||||
|
||||
public void setUser(UserContext user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public CompanyContext getCompany() {
|
||||
return this.company;
|
||||
}
|
||||
|
||||
public void setCompany(CompanyContext company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
public ExtendContext getExt() {
|
||||
return this.ext;
|
||||
}
|
||||
|
||||
public void setExt(ExtendContext ext) {
|
||||
this.ext = ext;
|
||||
}
|
||||
|
||||
public NotesContext getNotes() {
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
public void setNotes(NotesContext notes) {
|
||||
this.notes = notes;
|
||||
}
|
||||
|
||||
public String getServiceCode() {
|
||||
return this.serviceCode;
|
||||
}
|
||||
|
||||
public void setServiceCode(String serviceCode) {
|
||||
this.serviceCode = serviceCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user