use of com.qlangtech.tis.manage.biz.dal.pojo.Application in project tis by qlangtech.
the class AppDomain method execute.
public void execute(Context context) throws Exception {
AppDomainInfo appDomain = getAppDomain();
if (appDomain == null) {
// 跳转到指定上下文的页面
// .withTarget("changedomain");
getRundataInstance().redirectTo("changedomain");
return;
}
Department department = null;
// final Department department = this.getDepartmentDAO().loadFromWriteDB(
// appDomain.getDptid());
// Application app = this.getApplicationDAO().loadFromWriteDB(
// appDomain.getAppid());
Application app = new Application();
app.setProjectName(appDomain.getAppName());
// 校验是否选择了当前应用?
if ((appDomain instanceof Nullable) || !shallSelectApp(department, app)) {
appDomain = CheckAppDomainExistValve.createNull();
context.put(ChangeDomainAction.SELECT_APP_NAME, getNotSelectDomainCaption());
} else {
boolean shallnotShowEnvironment = (context.get("shallnotShowEnvironment") != null) && (Boolean) context.get("shallnotShowEnvironment");
context.put(ChangeDomainAction.SELECT_APP_NAME, getAppDesc(appDomain, department, app, shallnotShowEnvironment));
}
context.put("dptid", appDomain.getDptid());
context.put("appid", appDomain.getAppid());
context.put("runid", appDomain.getRunEnvironment().getId());
}
Aggregations