Commit df85524c by WeiCong

版本继续整合

parent 1860e3a6
......@@ -3,7 +3,7 @@
<groupId>cn.com.brilliance</groupId>
<artifactId>eibs-springmvc-support</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<version>1.0.1</version>
<name>eibs-springmvc-support</name>
<repositories><!-- 代码库 -->
<repository>
......
package org.sss.presentation.noui.common;
public class Constants {
public final static String PARAMS = "params";
public final static String DATA = "data";
public final static String DISPLAY = "display";
public final static String ENCODING = "UTF-8";
public final static String USERNAME = "username";
public final static String PASSWORD = "password";
public final static String DNCODE = "dncode";
public final static String SENDCODE = "sendcode";
public final static String VERIFYCODE = "verifycode";
public final static String DISPLAY_FILE_NAME = "fileName";
public final static String MAPPING_PRE = "_";
public final static String SESSION = "session";
public final static String BACKGROUND_FLAG = "BackGroundRequest-";
public static final String PAGINATION = "pagination";
public static final String PAGINATION_INDEX = "index";
public static final String PAGINATION_PAGESIZE = "pageSize";
public static final String PAGINATION_TOTAL = "total";
}
package org.sss.presentation.noui.common;
public class Constants {
public final static String PARAMS = "params";
public final static String DATA = "data";
public final static String DISPLAY = "display";
public final static String ENCODING = "UTF-8";
public final static String USERNAME = "username";
public final static String PASSWORD = "password";
public final static String DNCODE = "dncode";
public final static String SENDCODE = "sendcode";
public final static String VERIFYCODE = "verifycode";
public final static String DISPLAY_FILE_NAME = "fileName";
public final static String MAPPING_PRE = "_";
public final static String SESSION = "session";
public final static String BACKGROUND_FLAG = "BackGroundRequest-";
public final static String APP_FLAG = "AppRequest-";
public static final String PAGINATION = "pagination";
public static final String PAGINATION_INDEX = "index";
public static final String PAGINATION_PAGESIZE = "pageSize";
public static final String PAGINATION_TOTAL = "total";
}
package org.sss.presentation.noui.context;
import com.google.gson.Gson;
import log.Log;
import log.LogFactory;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.sss.common.impl.AbstractNullPresentation;
import org.sss.common.impl.ProxyDatafield;
import org.sss.common.model.*;
import org.sss.exception.ContainerException;
import org.sss.presentation.noui.api.exception.ExitTransactionException;
import org.sss.presentation.noui.api.request.NoUiRequest;
import org.sss.presentation.noui.api.response.ErrorCodes;
import org.sss.presentation.noui.common.Constants;
import org.sss.presentation.noui.util.NoUiUtils;
import org.sss.util.ContainerUtils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class NoUiPresentation extends AbstractNullPresentation {
private static final Log log = LogFactory.getLog(NoUiPresentation.class);
// public final Map<IModuleList<?>, List<RowOpItem>> tableRowMap = new
// HashMap<IModuleList<?>, List<RowOpItem>>();
// public final Map<IAttribute<?>, String> formatMap = new
// HashMap<IAttribute<?>, String>();
// public final Map<IAttribute<?>, String> messageMap = new
// HashMap<IAttribute<?>, String>();
// public final Map<IAttribute<?>, String> hintMap = new
// HashMap<IAttribute<?>, String>();
// public final List<IModuleList<?>> tableModifyList = new
// ArrayList<IModuleList<?>>();
// public final List<IAttribute<?>> modifyList = new
// ArrayList<IAttribute<?>>();
// public final List<IAttribute<?>> visibleList = new
// ArrayList<IAttribute<?>>();
// public final List<IAttribute<?>> codeValuesList = new
// ArrayList<IAttribute<?>>();
public IPanel popupPanel = null;
public String transactionName = null;
public boolean clearFlag = false;
public boolean newTabFlag = false;
public Boolean logoutFlag = null;
private Map<String, Object> codetable = new HashMap<>();
private NoUiRequest noUiRequest;
private Map<String, Object> error = new HashMap<>();
private Map<String, Object> modifyMap = new HashMap<>();
// public final List<IAttribute<?>> enableList = new
// ArrayList<IAttribute<?>>();
// public final List<IAttribute<?>> requiredList = new
// ArrayList<IAttribute<?>>();
private String message = null; // 弹出的message
private String message_code = ErrorCodes.SUCCESS;
private boolean isChain = false;
public NoUiPresentation(NoUiContext context, NoUiRequest noUiRequest) {
this.ctx = context;
this.noUiRequest = noUiRequest;
}
@Override
public void close(IPanel panel) throws ContainerException {
// TODO Auto-generated method stub
super.close(panel);
}
@Override
public void popupOnly(IPanel panel) throws ContainerException {
// TODO Auto-generated method stub
super.popupOnly(panel);
}
@Override
public Object readFromSession(String name) {
return ((NoUiContext) this.ctx).getRedisLoginInfo().getContextMap().get(name);
}
@Override
public void showMainPanel() throws ContainerException {
}
@Override
public void showPanel(IPanel panel) throws ContainerException {
super.showPanel(panel);
}
@Override
public void writeToSession(String name, Object value) {
((NoUiContext) this.ctx).getRedisLoginInfo().getContextMap().put(name, value);
}
public String getMessageCode() {
return this.message_code;
}
public String getMessage() {
return this.message;
}
public boolean isChain() {
return isChain;
}
public synchronized void dispose() {
if (disposed) {
return;
}
clearRequest();
super.dispose();
}
public final boolean noError() throws ContainerException {
return error.isEmpty();
}
public final void clearRequest() throws ContainerException {
// tableRowMap.clear();
// formatMap.clear();
// messageMap.clear();
// hintMap.clear();
// tableModifyList.clear();
// modifyList.clear();
// visibleList.clear();
// codeValuesList.clear();
// enableList.clear();
// requiredList.clear();
popupPanel = null;
transactionName = null;
logoutFlag = null;
}
public final void chain(String transactionName) throws ContainerException {
chain(transactionName, false, false);
}
public void chain(String transactionName, boolean clearFlag, boolean newTabFlag) {
this.transactionName = transactionName;
this.clearFlag = clearFlag;
this.newTabFlag = newTabFlag;
isChain = true;
}
public void logout() throws ContainerException {
logoutFlag = true;
}
public final void popup(IPanel popupPanel) {
// this.popupPanel = popupPanel;
popupPanel.invokeDefaultRules(this.ctx);
}
// @SuppressWarnings({ "rawtypes", "unchecked" })
// private final void mapPut(Map paramMap, IAttribute paramIAttribute,
// String paramString1, String paramString2, Object... paramVarArgs) {
// for (int i = 0; i < paramVarArgs.length; i++) {
// if ((paramVarArgs[i] instanceof String)) {
// paramVarArgs[i] = getI18nValue((String) paramVarArgs[i]);
// }
// }
// String str = MessageFormat.format(getI18nValue(paramString2),
// paramVarArgs);
// if (paramString1 != null) {
// paramIAttribute.setAttribute(paramString1, str);
// }
// paramMap.put(paramIAttribute, str);
//
// if ((paramIAttribute instanceof IDatafield)) {
// log.info(String.format("error field url %s.", new Object[] {
// ((IDatafield<?>) paramIAttribute).getUrl() }));
// }
//
// if ((paramIAttribute instanceof IBaseObject)) {
// error.put(((IBaseObject) paramIAttribute).getUrl(), str);
// }
//
// }
@SuppressWarnings("rawtypes")
public final void error(IAttribute paramIAttribute, String paramString, Object... paramVarArgs) throws ContainerException {
paramIAttribute = handleProxyField(paramIAttribute);
// mapPut(messageMap, paramIAttribute, null, paramString, paramVarArgs);
for (int i = 0; i < paramVarArgs.length; i++) {
if ((paramVarArgs[i] instanceof String)) {
paramVarArgs[i] = getI18nValue((String) paramVarArgs[i]);
}
}
String str = MessageFormat.format(getI18nValue(paramString), paramVarArgs);
if ((paramIAttribute instanceof IBaseObject)) {
error.put(((IBaseObject) paramIAttribute).getUrl(), str);
}
if ((log.isDebugEnabled()) && ((paramIAttribute instanceof IDatafield))) {
log.info(String.format("error field url %s.", new Object[]{((IDatafield<?>) paramIAttribute).getUrl()}));
}
}
@SuppressWarnings("rawtypes")
public final void setHint(IAttribute paramIAttribute, String paramString, Object... paramVarArgs) throws ContainerException {
// mapPut(hintMap, paramIAttribute, "HINT", paramString, paramVarArgs);
}
public boolean message(MessageType paramMessageType, String paramString, Object paramObject) {
if(paramObject instanceof ExitTransactionException){
throw ExitTransactionException.class.cast(paramObject);
}
if (paramMessageType.equals(MessageType.ERROR) && (paramObject instanceof Throwable)) {
//记录异常日志
TxInfo.recordException((Throwable) paramObject);
}
String str1 = "";
try {
if ((paramObject instanceof String)) {
str1 = (String) paramObject;
} else if ((paramObject instanceof Throwable)) {
File localFile = new File(getRootPath(), "dump");
if (!localFile.exists())
localFile.mkdirs();
String str2 = new SimpleDateFormat("yyyyMMddHHmmss.SSS").format(new Date()) + ".log";
PrintStream localPrintStream = new PrintStream(new FileOutputStream(new File(localFile, str2)));
((Throwable) paramObject).printStackTrace(localPrintStream);
localPrintStream.close();
str1 = String.format(getI18nValue("eibs", "error.message"), new Object[]{((Throwable) paramObject).getMessage(), str2});
log.error("事件触发异常:" + ((Throwable) paramObject).getMessage(), (Throwable) paramObject);
} else if (paramObject != null) {
str1 = paramObject.toString();
}
if (paramString == null) {
paramString = getI18nValue("eibs", "error.title");
}
if ((!StringUtils.isEmpty(paramString)) && paramString.matches("E[0-9]{4}")) {
this.message_code = paramString;
}
/*
* if (MessageType.ERROR.equals(paramMessageType)) {
* log.error(StringUtils.isEmpty(paramString) ? str1 : str1 + ":" +
* paramString); }
*/
this.message = str1;
// log.debug(paramString + "--" + paramObject);
} catch (Exception e) {
if ((paramObject instanceof Throwable)) {
log.error("dump message error", (Throwable) paramObject);
}
log.warn("function message error", e);
}
return false;
}
@SuppressWarnings("rawtypes")
public final void setRequired(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("REQUIRED", Boolean.valueOf(true));
// if (!requiredList.contains(paramIAttribute)) {
// requiredList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public void setNotRequired(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("REQUIRED", Boolean.valueOf(false));
// if (!requiredList.contains(paramIAttribute)) {
// requiredList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public boolean isRequired(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("REQUIRED");
return localBoolean == null ? false : localBoolean.booleanValue();
}
@SuppressWarnings("rawtypes")
public final void enable(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("ENABLE", Boolean.valueOf(true));
// if (!enableList.contains(paramIAttribute)) {
// enableList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final void disable(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("ENABLE", Boolean.valueOf(false));
// if (!enableList.contains(paramIAttribute)) {
// enableList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final boolean isEnabled(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("ENABLE");
return localBoolean == null ? true : localBoolean.booleanValue();
}
@SuppressWarnings("rawtypes")
public final void visible(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("VISIBLE", Boolean.valueOf(true));
// if (!visibleList.contains(paramIAttribute)) {
// visibleList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final void invisible(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("VISIBLE", Boolean.valueOf(false));
// if (!visibleList.contains(paramIAttribute)) {
// visibleList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final boolean isVisible(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("VISIBLE");
return localBoolean == null ? true : localBoolean.booleanValue();
}
@SuppressWarnings("rawtypes")
public final void setModified(IAttribute paramIAttribute) throws ContainerException {
//paramIAttribute.setAttribute("MODIFY", Boolean.valueOf(true));
setModified(paramIAttribute, true);
}
@SuppressWarnings("rawtypes")
public final void resetModified(IAttribute paramIAttribute) throws ContainerException {
// paramIAttribute.setAttribute("MODIFY", Boolean.valueOf(false));
setModified(paramIAttribute, false);
}
@SuppressWarnings("rawtypes")
public final boolean isModified(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("MODIFY");
return localBoolean == null ? false : localBoolean.booleanValue();
}
private IAttribute handleProxyField(IAttribute paramIAttribute) {
while (paramIAttribute instanceof ProxyDatafield) {
paramIAttribute = ((ProxyDatafield) paramIAttribute).getHost();
log.info("proxy url=" + ((IBaseObject) paramIAttribute).getUrl());
}
return paramIAttribute;
}
@SuppressWarnings("rawtypes")
public final void setValues(IAttributeValue paramIAttributeValue, List<CodetableItem> paramList) throws ContainerException {
paramIAttributeValue = (IAttributeValue) handleProxyField(paramIAttributeValue);
codetable.put(((IBaseObject) paramIAttributeValue).getUrl(), paramList);
paramIAttributeValue.setAttribute("CODEVALUES", paramList);
/*
* if (((paramIAttributeValue instanceof IBaseObject)) &&
* (!this.codeValuesList.contains(paramIAttributeValue))) { IBaseObject
* baseObject = (IBaseObject) paramIAttributeValue;
* this.codeValuesList.add(baseObject);
*
* }
*/
}
@SuppressWarnings("rawtypes")
public final void listRowChange(IModuleList paramIModuleList, RowOpType paramRowOpType, int paramInt1, int paramInt2) throws ContainerException {
// if (!tableModifyList.contains(paramIModuleList)) {
// tableModifyList.add(paramIModuleList);
// }
/*
* List<Map<String, Object>> dataList = new ArrayList<Map<String,
* Object>>(); for (int i = 0; i < paramIModuleList.size(); i++) {
* IModule module = (IModule) paramIModuleList.get(i);
* Collection<IDatafield> conns = module.getDatafields(); Map<String,
* Object> map = new HashMap<String, Object>(); for (IDatafield<?>
* datafield : conns) { map.put(datafield.getUrl(),
* datafield.getValue()); } dataList.add(map); }
* data.put(paramIModuleList.getUrl(), dataList);
*/
}
@SuppressWarnings("rawtypes")
public final void setDescription(IDatafield paramIDatafield, String paramString) {
paramIDatafield.setAttribute("DESCRIPTION", paramString);
}
@SuppressWarnings("rawtypes")
public void setChartArguments(IAttributeValue paramIAttributeValue, Object[] paramArrayOfObject) {
paramIAttributeValue.setAttribute("ARGS", paramArrayOfObject);
}
@SuppressWarnings("rawtypes")
public void setViewType(IAttributeValue paramIAttributeValue, ViewType paramViewType, int paramInt) {
setViewType(paramIAttributeValue, paramViewType, 1, paramInt, -1);
}
@SuppressWarnings("rawtypes")
public void setViewType(IAttributeValue paramIAttributeValue, ViewType paramViewType, int paramInt1, int paramInt2, int paramInt3) {
paramIAttributeValue.setAttribute("VIEWTYPE", paramViewType);
if (paramInt1 > 1) {
paramIAttributeValue.setAttribute("COLSPAN", Integer.valueOf(paramInt1));
}
if (paramInt2 > 0) {
paramIAttributeValue.setAttribute("WIDTH", Integer.valueOf(paramInt2));
}
if (paramInt3 > 0) {
paramIAttributeValue.setAttribute("HEIGHT", Integer.valueOf(paramInt3));
}
}
@SuppressWarnings("rawtypes")
public void setViewAttribute(IAttributeValue paramIAttributeValue, int paramInt1, int paramInt2, List<CodetableItem> paramList) {
if (paramInt1 > 0) {
paramIAttributeValue.setAttribute("LENGTH", Integer.valueOf(paramInt1));
}
if (paramInt2 > 0) {
paramIAttributeValue.setAttribute("LINE", Integer.valueOf(paramInt2));
}
if ((paramList != null) && (!paramList.isEmpty())) {
paramIAttributeValue.setAttribute("CODEVALUES", paramList);
}
}
@SuppressWarnings("rawtypes")
public void setViewFormat(IAttributeValue paramIAttributeValue, String paramString) {
if (!ContainerUtils.isEmpty(paramString)) {
if (!(paramIAttributeValue instanceof IBaseObject)) {
paramIAttributeValue.setAttribute("FORMAT", paramString);
} else {
// IBaseObject localIBaseObject = (IBaseObject)
// paramIAttributeValue;
// this.formatMap.put(localIBaseObject, paramString);
}
}
}
@SuppressWarnings("rawtypes")
public void setViewStyle(IAttribute paramIAttribute, String paramString1, String paramString2) {
if (paramString1 != null) {
paramIAttribute.setAttribute("STYLE", paramString1);
}
if (paramString2 != null) {
paramIAttribute.setAttribute("STYLECLASS", paramString2);
}
}
@SuppressWarnings("rawtypes")
public void setHeaderAttribute(IAttributeValue paramIAttributeValue, int paramInt1, int paramInt2) {
setHeaderAttribute(paramIAttributeValue, paramInt1, paramInt2, 1);
}
@SuppressWarnings("rawtypes")
public void setHeaderAttribute(IAttributeValue paramIAttributeValue, int paramInt1, int paramInt2, int paramInt3) {
if (paramInt1 > 0) {
paramIAttributeValue.setAttribute("WIDTH", Integer.valueOf(paramInt1));
}
if (paramInt2 > 1) {
paramIAttributeValue.setAttribute("COLSPAN", Integer.valueOf(paramInt2));
}
if (paramInt3 > 1) {
paramIAttributeValue.setAttribute("ROWSPAN", Integer.valueOf(paramInt3));
}
}
@SuppressWarnings("rawtypes")
private final void setModified(IAttribute paramIAttribute, boolean paramBoolean) {
paramIAttribute = handleProxyField(paramIAttribute);
modifyMap.put(((IBaseObject) paramIAttribute).getUrl(), paramIAttribute);
}
@Override
public ICodetable getCodetableInstance() throws ContainerException {
return NoUiUtils.tbl;
}
@Override
public II18n getI18nInstance() throws ContainerException {
return NoUiUtils.i18n;
}
@Override
public IFilter getPasswordFilter() throws ContainerException {
return NoUiUtils.passwordFilter;
}
@Override
public String getRootPath() throws ContainerException {
// return
// localFile.getParentFile().getParentFile().getParentFile().getAbsolutePath();
return NoUiUtils.rootPath;
}
@Override
public boolean isBackground() throws ContainerException {
return false;
}
@Override
public boolean isDebugMode() throws ContainerException {
return NoUiUtils.debugMode;
}
@Override
public void saveDisplay(IPanel[] panels, String fileName, String cssUrl, String jsUrl) throws ContainerException {
saveDisplay(panels, fileName);
}
@Override
public void saveDisplay(IPanel[] panels, String fileName) throws ContainerException {
try {
Map<String, ?> map = noUiRequest.getSaveDisplayMap();
String data = new Gson().toJson(map);
FileUtils.write(new File(fileName), data, Constants.ENCODING);
} catch (IOException e) {
log.error("save dispaly error", e);
}
}
public Map<String, Object> getCodetable() {
return codetable;
}
public void setCodetable(Map<String, Object> codetable) {
this.codetable = codetable;
}
public Map<String, Object> getError() {
return error;
}
public void setError(Map<String, Object> error) {
this.error = error;
}
public Map<String, Object> getModifyMap() {
return modifyMap;
}
public void setModifyMap(Map<String, Object> modifyMap) {
this.modifyMap = modifyMap;
}
}
package org.sss.presentation.noui.context;
import com.google.gson.Gson;
import log.Log;
import log.LogFactory;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.sss.common.impl.AbstractNullPresentation;
import org.sss.common.impl.ProxyDatafield;
import org.sss.common.model.*;
import org.sss.exception.ContainerException;
import org.sss.presentation.noui.api.exception.ExitTransactionException;
import org.sss.presentation.noui.api.request.NoUiRequest;
import org.sss.presentation.noui.api.response.ErrorCodes;
import org.sss.presentation.noui.common.Constants;
import org.sss.presentation.noui.util.NoUiUtils;
import org.sss.util.ContainerUtils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class NoUiPresentation extends AbstractNullPresentation {
private static final Log log = LogFactory.getLog(NoUiPresentation.class);
// public final Map<IModuleList<?>, List<RowOpItem>> tableRowMap = new
// HashMap<IModuleList<?>, List<RowOpItem>>();
// public final Map<IAttribute<?>, String> formatMap = new
// HashMap<IAttribute<?>, String>();
// public final Map<IAttribute<?>, String> messageMap = new
// HashMap<IAttribute<?>, String>();
// public final Map<IAttribute<?>, String> hintMap = new
// HashMap<IAttribute<?>, String>();
// public final List<IModuleList<?>> tableModifyList = new
// ArrayList<IModuleList<?>>();
// public final List<IAttribute<?>> modifyList = new
// ArrayList<IAttribute<?>>();
// public final List<IAttribute<?>> visibleList = new
// ArrayList<IAttribute<?>>();
// public final List<IAttribute<?>> codeValuesList = new
// ArrayList<IAttribute<?>>();
public IPanel popupPanel = null;
public String transactionName = null;
public boolean clearFlag = false;
public boolean newTabFlag = false;
public Boolean logoutFlag = null;
private Map<String, Object> codetable = new HashMap<>();
private NoUiRequest noUiRequest;
private Map<String, Object> error = new HashMap<>();
private Map<String, Object> modifyMap = new HashMap<>();
// public final List<IAttribute<?>> enableList = new
// ArrayList<IAttribute<?>>();
// public final List<IAttribute<?>> requiredList = new
// ArrayList<IAttribute<?>>();
private String message = null; // 弹出的message
private String message_code = ErrorCodes.SUCCESS;
private boolean isChain = false;
public NoUiPresentation(NoUiContext context, NoUiRequest noUiRequest) {
this.ctx = context;
this.noUiRequest = noUiRequest;
}
@Override
public void close(IPanel panel) throws ContainerException {
// TODO Auto-generated method stub
super.close(panel);
}
@Override
public void popupOnly(IPanel panel) throws ContainerException {
// TODO Auto-generated method stub
super.popupOnly(panel);
}
@Override
public Object readFromSession(String name) {
return ((NoUiContext) this.ctx).getRedisLoginInfo().getContextMap().get(name);
}
@Override
public void showMainPanel() throws ContainerException {
}
@Override
public void showPanel(IPanel panel) throws ContainerException {
super.showPanel(panel);
}
@Override
public void writeToSession(String name, Object value) {
((NoUiContext) this.ctx).getRedisLoginInfo().getContextMap().put(name, value);
}
public String getMessageCode() {
return this.message_code;
}
public String getMessage() {
return this.message;
}
public boolean isChain() {
return isChain;
}
public synchronized void dispose() {
if (disposed) {
return;
}
clearRequest();
super.dispose();
}
public final boolean noError() throws ContainerException {
return error.isEmpty();
}
public final void clearRequest() throws ContainerException {
// tableRowMap.clear();
// formatMap.clear();
// messageMap.clear();
// hintMap.clear();
// tableModifyList.clear();
// modifyList.clear();
// visibleList.clear();
// codeValuesList.clear();
// enableList.clear();
// requiredList.clear();
popupPanel = null;
transactionName = null;
logoutFlag = null;
}
public final void chain(String transactionName) throws ContainerException {
chain(transactionName, false, false);
}
public void chain(String transactionName, boolean clearFlag, boolean newTabFlag) {
this.transactionName = transactionName;
this.clearFlag = clearFlag;
this.newTabFlag = newTabFlag;
isChain = true;
}
public void logout() throws ContainerException {
logoutFlag = true;
}
public final void popup(IPanel popupPanel) {
// this.popupPanel = popupPanel;
popupPanel.invokeDefaultRules(this.ctx);
}
// @SuppressWarnings({ "rawtypes", "unchecked" })
// private final void mapPut(Map paramMap, IAttribute paramIAttribute,
// String paramString1, String paramString2, Object... paramVarArgs) {
// for (int i = 0; i < paramVarArgs.length; i++) {
// if ((paramVarArgs[i] instanceof String)) {
// paramVarArgs[i] = getI18nValue((String) paramVarArgs[i]);
// }
// }
// String str = MessageFormat.format(getI18nValue(paramString2),
// paramVarArgs);
// if (paramString1 != null) {
// paramIAttribute.setAttribute(paramString1, str);
// }
// paramMap.put(paramIAttribute, str);
//
// if ((paramIAttribute instanceof IDatafield)) {
// log.info(String.format("error field url %s.", new Object[] {
// ((IDatafield<?>) paramIAttribute).getUrl() }));
// }
//
// if ((paramIAttribute instanceof IBaseObject)) {
// error.put(((IBaseObject) paramIAttribute).getUrl(), str);
// }
//
// }
@SuppressWarnings("rawtypes")
public final void error(IAttribute paramIAttribute, String paramString, Object... paramVarArgs) throws ContainerException {
paramIAttribute = handleProxyField(paramIAttribute);
// mapPut(messageMap, paramIAttribute, null, paramString, paramVarArgs);
for (int i = 0; i < paramVarArgs.length; i++) {
if ((paramVarArgs[i] instanceof String)) {
paramVarArgs[i] = getI18nValue((String) paramVarArgs[i]);
}
}
String str = MessageFormat.format(getI18nValue(paramString), paramVarArgs);
if ((paramIAttribute instanceof IBaseObject)) {
error.put(((IBaseObject) paramIAttribute).getUrl(), str);
}
if ((log.isDebugEnabled()) && ((paramIAttribute instanceof IDatafield))) {
log.info(String.format("error field url %s.", new Object[]{((IDatafield<?>) paramIAttribute).getUrl()}));
}
}
@SuppressWarnings("rawtypes")
public final void setHint(IAttribute paramIAttribute, String paramString, Object... paramVarArgs) throws ContainerException {
// mapPut(hintMap, paramIAttribute, "HINT", paramString, paramVarArgs);
}
public boolean message(MessageType paramMessageType, String paramString, Object paramObject) {
if(paramObject instanceof ExitTransactionException){
throw ExitTransactionException.class.cast(paramObject);
}
if (paramMessageType.equals(MessageType.ERROR) && (paramObject instanceof Throwable)) {
//记录异常日志
// TxInfo.recordException((Throwable) paramObject);
}
String str1 = "";
try {
if ((paramObject instanceof String)) {
str1 = (String) paramObject;
} else if ((paramObject instanceof Throwable)) {
File localFile = new File(getRootPath(), "dump");
if (!localFile.exists())
localFile.mkdirs();
String str2 = new SimpleDateFormat("yyyyMMddHHmmss.SSS").format(new Date()) + ".log";
PrintStream localPrintStream = new PrintStream(new FileOutputStream(new File(localFile, str2)));
((Throwable) paramObject).printStackTrace(localPrintStream);
localPrintStream.close();
str1 = String.format(getI18nValue("eibs", "error.message"), new Object[]{((Throwable) paramObject).getMessage(), str2});
log.error("事件触发异常:" + ((Throwable) paramObject).getMessage(), (Throwable) paramObject);
} else if (paramObject != null) {
str1 = paramObject.toString();
}
if (paramString == null) {
paramString = getI18nValue("eibs", "error.title");
}
if ((!StringUtils.isEmpty(paramString)) && paramString.matches("E[0-9]{4}")) {
this.message_code = paramString;
}
/*
* if (MessageType.ERROR.equals(paramMessageType)) {
* log.error(StringUtils.isEmpty(paramString) ? str1 : str1 + ":" +
* paramString); }
*/
this.message = str1;
// log.debug(paramString + "--" + paramObject);
} catch (Exception e) {
if ((paramObject instanceof Throwable)) {
log.error("dump message error", (Throwable) paramObject);
}
log.warn("function message error", e);
}
return false;
}
@SuppressWarnings("rawtypes")
public final void setRequired(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("REQUIRED", Boolean.valueOf(true));
// if (!requiredList.contains(paramIAttribute)) {
// requiredList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public void setNotRequired(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("REQUIRED", Boolean.valueOf(false));
// if (!requiredList.contains(paramIAttribute)) {
// requiredList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public boolean isRequired(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("REQUIRED");
return localBoolean == null ? false : localBoolean.booleanValue();
}
@SuppressWarnings("rawtypes")
public final void enable(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("ENABLE", Boolean.valueOf(true));
// if (!enableList.contains(paramIAttribute)) {
// enableList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final void disable(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("ENABLE", Boolean.valueOf(false));
// if (!enableList.contains(paramIAttribute)) {
// enableList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final boolean isEnabled(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("ENABLE");
return localBoolean == null ? true : localBoolean.booleanValue();
}
@SuppressWarnings("rawtypes")
public final void visible(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("VISIBLE", Boolean.valueOf(true));
// if (!visibleList.contains(paramIAttribute)) {
// visibleList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final void invisible(IAttribute paramIAttribute) throws ContainerException {
paramIAttribute.setAttribute("VISIBLE", Boolean.valueOf(false));
// if (!visibleList.contains(paramIAttribute)) {
// visibleList.add(paramIAttribute);
// }
}
@SuppressWarnings("rawtypes")
public final boolean isVisible(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("VISIBLE");
return localBoolean == null ? true : localBoolean.booleanValue();
}
@SuppressWarnings("rawtypes")
public final void setModified(IAttribute paramIAttribute) throws ContainerException {
//paramIAttribute.setAttribute("MODIFY", Boolean.valueOf(true));
setModified(paramIAttribute, true);
}
@SuppressWarnings("rawtypes")
public final void resetModified(IAttribute paramIAttribute) throws ContainerException {
// paramIAttribute.setAttribute("MODIFY", Boolean.valueOf(false));
setModified(paramIAttribute, false);
}
@SuppressWarnings("rawtypes")
public final boolean isModified(IAttribute paramIAttribute) throws ContainerException {
Boolean localBoolean = (Boolean) paramIAttribute.getAttribute("MODIFY");
return localBoolean == null ? false : localBoolean.booleanValue();
}
private IAttribute handleProxyField(IAttribute paramIAttribute) {
while (paramIAttribute instanceof ProxyDatafield) {
paramIAttribute = ((ProxyDatafield) paramIAttribute).getHost();
log.info("proxy url=" + ((IBaseObject) paramIAttribute).getUrl());
}
return paramIAttribute;
}
@SuppressWarnings("rawtypes")
public final void setValues(IAttributeValue paramIAttributeValue, List<CodetableItem> paramList) throws ContainerException {
paramIAttributeValue = (IAttributeValue) handleProxyField(paramIAttributeValue);
codetable.put(((IBaseObject) paramIAttributeValue).getUrl(), paramList);
paramIAttributeValue.setAttribute("CODEVALUES", paramList);
/*
* if (((paramIAttributeValue instanceof IBaseObject)) &&
* (!this.codeValuesList.contains(paramIAttributeValue))) { IBaseObject
* baseObject = (IBaseObject) paramIAttributeValue;
* this.codeValuesList.add(baseObject);
*
* }
*/
}
@SuppressWarnings("rawtypes")
public final void listRowChange(IModuleList paramIModuleList, RowOpType paramRowOpType, int paramInt1, int paramInt2) throws ContainerException {
// if (!tableModifyList.contains(paramIModuleList)) {
// tableModifyList.add(paramIModuleList);
// }
/*
* List<Map<String, Object>> dataList = new ArrayList<Map<String,
* Object>>(); for (int i = 0; i < paramIModuleList.size(); i++) {
* IModule module = (IModule) paramIModuleList.get(i);
* Collection<IDatafield> conns = module.getDatafields(); Map<String,
* Object> map = new HashMap<String, Object>(); for (IDatafield<?>
* datafield : conns) { map.put(datafield.getUrl(),
* datafield.getValue()); } dataList.add(map); }
* data.put(paramIModuleList.getUrl(), dataList);
*/
}
@SuppressWarnings("rawtypes")
public final void setDescription(IDatafield paramIDatafield, String paramString) {
paramIDatafield.setAttribute("DESCRIPTION", paramString);
}
@SuppressWarnings("rawtypes")
public void setChartArguments(IAttributeValue paramIAttributeValue, Object[] paramArrayOfObject) {
paramIAttributeValue.setAttribute("ARGS", paramArrayOfObject);
}
@SuppressWarnings("rawtypes")
public void setViewType(IAttributeValue paramIAttributeValue, ViewType paramViewType, int paramInt) {
setViewType(paramIAttributeValue, paramViewType, 1, paramInt, -1);
}
@SuppressWarnings("rawtypes")
public void setViewType(IAttributeValue paramIAttributeValue, ViewType paramViewType, int paramInt1, int paramInt2, int paramInt3) {
paramIAttributeValue.setAttribute("VIEWTYPE", paramViewType);
if (paramInt1 > 1) {
paramIAttributeValue.setAttribute("COLSPAN", Integer.valueOf(paramInt1));
}
if (paramInt2 > 0) {
paramIAttributeValue.setAttribute("WIDTH", Integer.valueOf(paramInt2));
}
if (paramInt3 > 0) {
paramIAttributeValue.setAttribute("HEIGHT", Integer.valueOf(paramInt3));
}
}
@SuppressWarnings("rawtypes")
public void setViewAttribute(IAttributeValue paramIAttributeValue, int paramInt1, int paramInt2, List<CodetableItem> paramList) {
if (paramInt1 > 0) {
paramIAttributeValue.setAttribute("LENGTH", Integer.valueOf(paramInt1));
}
if (paramInt2 > 0) {
paramIAttributeValue.setAttribute("LINE", Integer.valueOf(paramInt2));
}
if ((paramList != null) && (!paramList.isEmpty())) {
paramIAttributeValue.setAttribute("CODEVALUES", paramList);
}
}
@SuppressWarnings("rawtypes")
public void setViewFormat(IAttributeValue paramIAttributeValue, String paramString) {
if (!ContainerUtils.isEmpty(paramString)) {
if (!(paramIAttributeValue instanceof IBaseObject)) {
paramIAttributeValue.setAttribute("FORMAT", paramString);
} else {
// IBaseObject localIBaseObject = (IBaseObject)
// paramIAttributeValue;
// this.formatMap.put(localIBaseObject, paramString);
}
}
}
@SuppressWarnings("rawtypes")
public void setViewStyle(IAttribute paramIAttribute, String paramString1, String paramString2) {
if (paramString1 != null) {
paramIAttribute.setAttribute("STYLE", paramString1);
}
if (paramString2 != null) {
paramIAttribute.setAttribute("STYLECLASS", paramString2);
}
}
@SuppressWarnings("rawtypes")
public void setHeaderAttribute(IAttributeValue paramIAttributeValue, int paramInt1, int paramInt2) {
setHeaderAttribute(paramIAttributeValue, paramInt1, paramInt2, 1);
}
@SuppressWarnings("rawtypes")
public void setHeaderAttribute(IAttributeValue paramIAttributeValue, int paramInt1, int paramInt2, int paramInt3) {
if (paramInt1 > 0) {
paramIAttributeValue.setAttribute("WIDTH", Integer.valueOf(paramInt1));
}
if (paramInt2 > 1) {
paramIAttributeValue.setAttribute("COLSPAN", Integer.valueOf(paramInt2));
}
if (paramInt3 > 1) {
paramIAttributeValue.setAttribute("ROWSPAN", Integer.valueOf(paramInt3));
}
}
@SuppressWarnings("rawtypes")
private final void setModified(IAttribute paramIAttribute, boolean paramBoolean) {
paramIAttribute = handleProxyField(paramIAttribute);
modifyMap.put(((IBaseObject) paramIAttribute).getUrl(), paramIAttribute);
}
@Override
public ICodetable getCodetableInstance() throws ContainerException {
return NoUiUtils.tbl;
}
@Override
public II18n getI18nInstance() throws ContainerException {
return NoUiUtils.i18n;
}
@Override
public IFilter getPasswordFilter() throws ContainerException {
return NoUiUtils.passwordFilter;
}
@Override
public String getRootPath() throws ContainerException {
// return
// localFile.getParentFile().getParentFile().getParentFile().getAbsolutePath();
return NoUiUtils.rootPath;
}
@Override
public boolean isBackground() throws ContainerException {
return false;
}
@Override
public boolean isDebugMode() throws ContainerException {
return NoUiUtils.debugMode;
}
@Override
public void saveDisplay(IPanel[] panels, String fileName, String cssUrl, String jsUrl) throws ContainerException {
saveDisplay(panels, fileName);
}
@Override
public void saveDisplay(IPanel[] panels, String fileName) throws ContainerException {
try {
Map<String, ?> map = noUiRequest.getSaveDisplayMap();
String data = new Gson().toJson(map);
FileUtils.write(new File(fileName), data, Constants.ENCODING);
} catch (IOException e) {
log.error("save dispaly error", e);
}
}
public Map<String, Object> getCodetable() {
return codetable;
}
public void setCodetable(Map<String, Object> codetable) {
this.codetable = codetable;
}
public Map<String, Object> getError() {
return error;
}
public void setError(Map<String, Object> error) {
this.error = error;
}
public Map<String, Object> getModifyMap() {
return modifyMap;
}
public void setModifyMap(Map<String, Object> modifyMap) {
this.modifyMap = modifyMap;
}
}
package org.sss.presentation.noui.context;
import log.Log;
import log.LogFactory;
import org.apache.commons.io.IOUtils;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.engine.spi.SessionImplementor;
import org.sss.module.hibernate.HibernateUtils;
import org.sss.module.pojo.DatabaseUtils;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Date;
import java.util.Optional;
import java.util.stream.Stream;
public class TxInfo {
protected static final Log log = LogFactory.getLog(TxInfo.class);
public static ThreadLocal<TxInfo> txInfoHolder = new ThreadLocal<>();
public String txCode;
public String url;
public String target;
public static void putTxInfo(String txCode,String url,String target)
{
TxInfo txInfo = new TxInfo();
txInfo.txCode = txCode;
txInfo.url = url;
txInfo.target = target;
txInfoHolder.set(txInfo);
}
public static TxInfo getTxInfo()
{
return txInfoHolder.get();
}
public static void releaseCurrTxInfo()
{
txInfoHolder.remove();
}
/**
* 记录异常信息
* @param e
*/
public static void recordException(Throwable e) {
TxInfo txInfo = getTxInfo();
Session session = HibernateUtils.openSession(null);
long count = DatabaseUtils.executeCounter(((SessionImplementor) session).connection(),"dealog");
String inr = String.format("%08d",count);
Transaction transaction = session.beginTransaction();
SQLQuery sqlQuery = session.createSQLQuery("insert into dealog(INR,CREDATTIM,SRVCOD,SRVNAM,INIFRM,RTNMSG,LOGLEV) values(?,?,?,?,?,?,?)");
sqlQuery.setString(0,inr);
sqlQuery.setTimestamp(1,new Date());
String srvcod = txInfo.url.replace("/_","-");
sqlQuery.setString(2,srvcod);
sqlQuery.setString(3,srvcod);
sqlQuery.setString(4,txInfo.txCode);
sqlQuery.setString(5,genMessage(e));
sqlQuery.setString(6,"error");
sqlQuery.executeUpdate();
transaction.commit();
session.close();
log.debug("完成异常日志记录");
}
private static String genMessage(Throwable e)
{
while(e.getCause() != null)
e = e.getCause();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(bos);
e.printStackTrace(ps);
String mesg = bos.toString();
IOUtils.closeQuietly(ps);
IOUtils.closeQuietly(bos);
String[] lines = mesg.split("[\r\n]{1,2}");
Optional<String> rs = Stream.of(lines).filter(str->{
return str.charAt(0) != '\t' || (str.indexOf("brilliance")>0 || str.indexOf(".noui.")>0);
}).reduce((acc,item)->{
return acc+'\n'+item;
});
return rs.get();
}
}
package org.sss.presentation.noui.context;
import log.Log;
import log.LogFactory;
import org.apache.commons.io.IOUtils;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Optional;
import java.util.stream.Stream;
public class TxInfo {
protected static final Log log = LogFactory.getLog(TxInfo.class);
public static ThreadLocal<TxInfo> txInfoHolder = new ThreadLocal<>();
public String txCode;
public String url;
public String target;
public static void putTxInfo(String txCode,String url,String target)
{
TxInfo txInfo = new TxInfo();
txInfo.txCode = txCode;
txInfo.url = url;
txInfo.target = target;
txInfoHolder.set(txInfo);
}
public static TxInfo getTxInfo()
{
return txInfoHolder.get();
}
public static void releaseCurrTxInfo()
{
txInfoHolder.remove();
}
/**
* 记录异常信息
* @param e
*/
public static void recordException(Throwable e) {
/*TxInfo txInfo = getTxInfo();
Session session = HibernateUtils.openSession(null);
long count = DatabaseUtils.executeCounter(((SessionImplementor) session).connection(),"dealog");
String inr = String.format("%08d",count);
Transaction transaction = session.beginTransaction();
SQLQuery sqlQuery = session.createSQLQuery("insert into dealog(INR,CREDATTIM,SRVCOD,SRVNAM,INIFRM,RTNMSG,LOGLEV) values(?,?,?,?,?,?,?)");
sqlQuery.setString(0,inr);
sqlQuery.setTimestamp(1,new Date());
String srvcod = txInfo.url.replace("/_","-");
sqlQuery.setString(2,srvcod);
sqlQuery.setString(3,srvcod);
sqlQuery.setString(4,txInfo.txCode);
sqlQuery.setString(5,genMessage(e));
sqlQuery.setString(6,"error");
sqlQuery.executeUpdate();
transaction.commit();
session.close();
log.debug("完成异常日志记录");*/
}
private static String genMessage(Throwable e)
{
while(e.getCause() != null)
e = e.getCause();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(bos);
e.printStackTrace(ps);
String mesg = bos.toString();
IOUtils.closeQuietly(ps);
IOUtils.closeQuietly(bos);
String[] lines = mesg.split("[\r\n]{1,2}");
Optional<String> rs = Stream.of(lines).filter(str->{
return str.charAt(0) != '\t' || (str.indexOf("brilliance")>0 || str.indexOf(".noui.")>0);
}).reduce((acc,item)->{
return acc+'\n'+item;
});
return rs.get();
}
}
......@@ -72,8 +72,10 @@ public abstract class AbstractCommonController {
}
// 设置old sysmod
RedisLoginInfo redisLoginInfo = null;
if (!StringUtils.isEmpty(noUiRequest.getUserId())) //开放模式下
if (!StringUtils.isEmpty(noUiRequest.getUserId())){
//开放模式下
redisLoginInfo = (RedisLoginInfo) EhcacheUtils.get(StringUtil.userUniqueId(noUiRequest));
}
if (redisLoginInfo != null) {
NoUiPresentationUtil.setSysmod(context, (byte[]) redisLoginInfo.getSysmod());
context.setRedisLoginInfo(redisLoginInfo);
......
......@@ -25,6 +25,7 @@ public class ResourceAccessFilter implements Filter {
private static final String _403_JSON = "{\"code\": \"403\", \"msg\": \"Access Forbidden, Unauthorized!\"}";
private static final String _403_HTML = "<html><body><div style='text-align:center'><h1 style='margin-top: 10px;'>Access Forbidden, Unauthorized!</h1></div></body></html>";
private static final String DSPPTH = "/data/dsp/";
private static final String[] empty_array = new String[0];
public static String[] pdfpth;
public static String[] exclude;
......@@ -113,7 +114,6 @@ public class ResourceAccessFilter implements Filter {
}
private String needPdfsFilter(String uri) {
for (String pdf : pdfpth) {
if (uri.contains(pdf)) {
......@@ -175,11 +175,15 @@ public class ResourceAccessFilter implements Filter {
}
public void init(FilterConfig filterConfig) {
if (filterConfig.getInitParameter("pdfpth") != null) {
if (!StringUtil.isEmpty(filterConfig.getInitParameter("pdfpth"))) {
pdfpth = filterConfig.getInitParameter("pdfpth").split(";");
} else {
pdfpth = empty_array;
}
if (!StringUtil.isEmpty(filterConfig.getInitParameter("exclude"))) {
exclude = filterConfig.getInitParameter("exclude").split(";");
} else {
exclude = empty_array;
}
}
......
......@@ -51,6 +51,11 @@ public class TokenInterceptor implements HandlerInterceptor {
if (token.startsWith(Constants.BACKGROUND_FLAG)) {
return true;
}
//服务调用
if (token.startsWith(Constants.APP_FLAG)) {
return true;
}
JwtLogin login = JWT.unsign(token, JwtLogin.class);
if (login == null || (!userId.equals((login.getUserId())))) {
......
......@@ -44,7 +44,7 @@ public class EhcacheUtils {
EhCacheCacheManager ehCacheCacheManager = null;
try {
if (cacheManager == null) {
ehCacheCacheManager = SpringContextHolder.getBean(EhCacheCacheManager.class);
ehCacheCacheManager = SpringContextHolder.getBean("ehcacheManager");
cacheManager = ehCacheCacheManager.getCacheManager();
}
} catch (Exception e) {
......
......@@ -14,6 +14,15 @@
</property>
</bean>
<!--cacheManager工厂类,指定ehcache.xml的位置-->
<bean id="ehcacheManagerFactory" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="classpath:ehcache.xml"/>
</bean>
<!--声明cacheManager-->
<bean id="ehcacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager">
<property name="cacheManager" ref="ehcacheManagerFactory"/>
</bean>
<bean id="springContextHolder" class="org.sss.presentation.noui.util.SpringContextHolder"/>
</beans>
\ No newline at end of file
......@@ -21,154 +21,36 @@
<property name="hibernate.c3p0.max_size">300</property>
<property name="hibernate.c3p0.min_size">20</property>
<property name="hibernate.c3p0.validate">true</property>
<mapping class="com.brilliance.eibs.etrade.EibsQykhxxb" />
<mapping class="com.brilliance.eibs.etrade.EibsSjzsb" />
<mapping class="com.brilliance.eibs.etrade.EibsRslst" />
<mapping class="com.brilliance.eibs.etrade.EibsQyzhxxb" />
<mapping class="com.brilliance.eibs.etrade.EibsPty" />
<mapping class="com.brilliance.eibs.etrade.EibsUsr" />
<mapping class="com.brilliance.eibs.etrade.EibsRol" />
<mapping class="com.brilliance.eibs.etrade.EibsEty" />
<mapping class="com.brilliance.eibs.etrade.EibsEtg" />
<mapping class="com.brilliance.eibs.etrade.EibsDep" />
<mapping class="com.brilliance.eibs.etrade.EibsSpt" />
<mapping class="com.brilliance.eibs.etrade.EibsUsraut" />
<mapping class="com.brilliance.eibs.etrade.EibsPtr" />
<mapping class="com.brilliance.eibs.etrade.EibsImg" />
<mapping class="com.brilliance.eibs.etrade.EibsTblbil" />
<mapping class="com.brilliance.eibs.etrade.EibsPdfdoc" />
<mapping class="com.brilliance.eibs.etrade.EibsTblcnt" />
<mapping class="com.brilliance.eibs.etrade.EibsOplog" />
<mapping class="com.brilliance.eibs.etrade.EibsOpelog" />
<mapping class="com.brilliance.eibs.etrade.EibsEab" />
<mapping class="com.brilliance.eibs.etrade.EibsRmk" />
<mapping class="com.brilliance.eibs.etrade.EibsTrn" />
<mapping class="com.brilliance.eibs.etrade.EibsOrd" />
<mapping class="com.brilliance.eibs.etrade.EibsOre" />
<mapping class="com.brilliance.eibs.etrade.EibsWfd" />
<mapping class="com.brilliance.eibs.etrade.EibsWft" />
<mapping class="com.brilliance.eibs.etrade.EibsWfs" />
<mapping class="com.brilliance.eibs.etrade.EibsWfe" />
<mapping class="com.brilliance.eibs.etrade.EibsSmh" />
<mapping class="com.brilliance.eibs.etrade.EibsPtyaut" />
<mapping class="com.brilliance.eibs.etrade.EibsPtyref" />
<mapping class="com.brilliance.eibs.etrade.EibsUsrsig" />
<mapping class="com.brilliance.eibs.etrade.EibsSig" />
<mapping class="com.brilliance.eibs.etrade.EibsModlst" />
<mapping class="com.brilliance.eibs.etrade.EibsPscacc" />
<mapping class="com.brilliance.eibs.etrade.EibsPscsta" />
<mapping class="com.brilliance.eibs.etrade.EibsBusmdl" />
<mapping class="com.brilliance.eibs.etrade.EibsPts" />
<mapping class="com.brilliance.eibs.etrade.EibsPta" />
<mapping class="com.brilliance.eibs.etrade.EibsAdr" />
<mapping class="com.brilliance.eibs.etrade.EibsXptqna" />
<mapping class="com.brilliance.eibs.etrade.EibsLnklst" />
<mapping class="com.brilliance.eibs.etrade.EibsReglnk" />
<mapping class="com.brilliance.eibs.etrade.EibsLnkmsg" />
<mapping class="com.brilliance.eibs.etrade.EibsCtl" />
<mapping class="com.brilliance.eibs.etrade.EibsSwrel" />
<mapping class="com.brilliance.eibs.etrade.EibsAcb" />
<mapping class="com.brilliance.eibs.etrade.EibsAct" />
<mapping class="com.brilliance.eibs.etrade.EibsApd" />
<mapping class="com.brilliance.eibs.etrade.EibsIxd" />
<mapping class="com.brilliance.eibs.etrade.EibsBxd" />
<mapping class="com.brilliance.eibs.etrade.EibsMar" />
<mapping class="com.brilliance.eibs.etrade.EibsMxd" />
<mapping class="com.brilliance.eibs.etrade.EibsGlb" />
<mapping class="com.brilliance.eibs.etrade.EibsCls" />
<mapping class="com.brilliance.eibs.etrade.EibsBxdctl" />
<mapping class="com.brilliance.eibs.etrade.EibsBxdrmg" />
<mapping class="com.brilliance.eibs.etrade.EibsCty" />
<mapping class="com.brilliance.eibs.etrade.EibsFcd" />
<mapping class="com.brilliance.eibs.etrade.EibsZbxblh" />
<mapping class="com.brilliance.eibs.etrade.EibsBpd" />
<mapping class="com.brilliance.eibs.etrade.EibsPxd" />
<mapping class="com.brilliance.eibs.etrade.EibsAfd" />
<mapping class="com.brilliance.eibs.etrade.EibsBed" />
<mapping class="com.brilliance.eibs.etrade.EibsAuth" />
<mapping class="com.brilliance.eibs.etrade.EibsSptall" />
<mapping class="com.brilliance.eibs.etrade.EibsBcd" />
<mapping class="com.brilliance.eibs.etrade.EibsDyd" />
<mapping class="com.brilliance.eibs.etrade.EibsLed" />
<mapping class="com.brilliance.eibs.etrade.EibsBod" />
<mapping class="com.brilliance.eibs.etrade.EibsLid" />
<mapping class="com.brilliance.eibs.etrade.EibsLit" />
<mapping class="com.brilliance.eibs.etrade.EibsLxd" />
<mapping class="com.brilliance.eibs.etrade.EibsGid" />
<mapping class="com.brilliance.eibs.etrade.EibsGit" />
<mapping class="com.brilliance.eibs.etrade.EibsGxd" />
<mapping class="com.brilliance.eibs.etrade.EibsBrd" />
<mapping class="com.brilliance.eibs.etrade.EibsTrd" />
<mapping class="com.brilliance.eibs.etrade.EibsTxd" />
<mapping class="com.brilliance.eibs.etrade.EibsFsd" />
<mapping class="com.brilliance.eibs.etrade.EibsFyd" />
<mapping class="com.brilliance.eibs.etrade.EibsDid" />
<mapping class="com.brilliance.eibs.etrade.EibsDit" />
<mapping class="com.brilliance.eibs.etrade.EibsDxt" />
<mapping class="com.brilliance.eibs.etrade.EibsBdd" />
<mapping class="com.brilliance.eibs.etrade.EibsBilmdl" />
<mapping class="com.brilliance.eibs.etrade.EibsQbm" />
<mapping class="com.brilliance.eibs.etrade.EibsBmd" />
<mapping class="com.brilliance.eibs.etrade.EibsDed" />
<mapping class="com.brilliance.eibs.etrade.EibsCpd" />
<mapping class="com.brilliance.eibs.etrade.EibsApyctm" />
<mapping class="com.brilliance.eibs.etrade.EibsCimp" />
<mapping class="com.brilliance.eibs.etrade.EibsFxpmsg" />
<mapping class="com.brilliance.eibs.etrade.EibsBwlsb" />
<mapping class="com.brilliance.eibs.etrade.EibsBwlist" />
<mapping class="com.brilliance.eibs.etrade.EibsZjtgxb" />
<mapping class="com.brilliance.eibs.etrade.EibsQygxb" />
<mapping class="com.brilliance.eibs.etrade.EibsPtymod" />
<mapping class="com.brilliance.eibs.etrade.EibsBzjqur" />
<mapping class="com.brilliance.eibs.etrade.EibsCom" />
<mapping class="com.brilliance.eibs.etrade.EibsCod" />
<mapping class="com.brilliance.eibs.etrade.EibsCbk" />
<mapping class="com.brilliance.eibs.etrade.EibsCpo" />
<mapping class="com.brilliance.eibs.etrade.EibsGpilst" />
<mapping class="com.brilliance.eibs.etrade.EibsCptlst" />
<mapping class="com.brilliance.eibs.etrade.EibsCptsgl" />
<mapping class="com.brilliance.eibs.etrade.EibsKhlst" />
<mapping class="com.brilliance.eibs.etrade.EibsKhlst0" />
<mapping class="com.brilliance.eibs.etrade.EibsStb" />
<mapping class="com.brilliance.eibs.etrade.EibsPty01" />
<mapping class="com.brilliance.eibs.etrade.EibsEpc" />
<mapping class="com.brilliance.eibs.etrade.EibsMsg" />
<mapping class="com.brilliance.eibs.etrade.EibsCur" />
<mapping class="com.brilliance.eibs.etrade.EibsCurrat" />
<mapping class="com.brilliance.eibs.etrade.EibsXptinf" />
<mapping class="com.brilliance.eibs.etrade.EibsXptfaq" />
<mapping class="com.brilliance.eibs.etrade.EibsXptsam" />
<mapping class="com.brilliance.eibs.etrade.EibsRolpro" />
<mapping class="com.brilliance.eibs.etrade.EibsUsrrol" />
<mapping class="com.brilliance.eibs.etrade.EibsUsrcli" />
<mapping class="com.brilliance.eibs.etrade.EibsQua" />
<mapping class="com.brilliance.eibs.etrade.EibsAcc" />
<mapping class="com.brilliance.eibs.etrade.EibsTsc" />
<mapping class="com.brilliance.eibs.etrade.EibsBaflnk" />
<mapping class="com.brilliance.eibs.etrade.EibsRfd" />
<mapping class="com.brilliance.eibs.etrade.EibsDfd" />
<mapping class="com.brilliance.eibs.etrade.EibsEmx" />
<mapping class="com.brilliance.eibs.etrade.EibsAmhmgr" />
<mapping class="com.brilliance.eibs.etrade.EibsEyd" />
<mapping class="com.brilliance.eibs.etrade.EibsCiblst" />
<mapping class="com.brilliance.eibs.etrade.EibsReslst" />
<mapping class="com.brilliance.eibs.etrade.EibsErs" />
<mapping class="com.brilliance.eibs.etrade.EibsFes" />
<mapping class="com.brilliance.eibs.etrade.EibsCurtmp" />
<mapping class="com.brilliance.eibs.etrade.EibsFin" />
<mapping class="com.brilliance.eibs.etrade.EibsDra" />
<mapping class="com.brilliance.eibs.etrade.EibsSgd" />
<mapping class="com.brilliance.eibs.etrade.EibsRpd" />
<mapping class="com.brilliance.eibs.etrade.EibsMad" />
<mapping class="com.brilliance.eibs.etrade.EibsMat" />
<mapping class="com.brilliance.eibs.etrade.EibsMsglst" />
<mapping class="com.brilliance.eibs.etrade.EibsBwzsb" />
<mapping class="com.brilliance.eibs.etrade.EibsHbxq" />
<mapping class="com.brilliance.eibs.etrade.EibsAcd" />
<mapping class="com.brilliance.eibs.etrade.EibsSwtep" />
<mapping class="com.brilliance.eibs.etrade.EibsZhlsyeb" />
<mapping class="com.brilliance.eibs.etrade.EibsRzz" />
<mapping class="com.brilliance.eibs.etrade.EibsSth" />
<mapping class="com.brilliance.eibs.etrade.EibsTas" />
<mapping class="com.brilliance.eibs.etrade.module.EibsCpd" />
<mapping class="com.brilliance.eibs.etrade.module.EibsPts" />
<mapping class="com.brilliance.eibs.etrade.module.EibsPta" />
<mapping class="com.brilliance.eibs.etrade.module.EibsPty" />
<mapping class="com.brilliance.eibs.etrade.module.EibsAdr" />
<mapping class="com.brilliance.eibs.etrade.module.EibsCty" />
<mapping class="com.brilliance.eibs.etrade.module.EibsApyctm" />
<mapping class="com.brilliance.eibs.etrade.module.EibsCimp" />
<mapping class="com.brilliance.eibs.etrade.module.EibsTrn" />
<mapping class="com.brilliance.eibs.etrade.module.EibsLed" />
<mapping class="com.brilliance.eibs.etrade.module.EibsBed" />
<mapping class="com.brilliance.eibs.etrade.module.EibsCls" />
<mapping class="com.brilliance.eibs.etrade.module.EibsBod" />
<mapping class="com.brilliance.eibs.etrade.module.EibsLid" />
<mapping class="com.brilliance.eibs.etrade.module.EibsLit" />
<mapping class="com.brilliance.eibs.etrade.module.EibsLxd" />
<mapping class="com.brilliance.eibs.etrade.module.EibsBxd" />
<mapping class="com.brilliance.eibs.etrade.module.EibsMar" />
<mapping class="com.brilliance.eibs.etrade.module.EibsMxd" />
<mapping class="com.brilliance.eibs.etrade.module.EibsGid" />
<mapping class="com.brilliance.eibs.etrade.module.EibsGit" />
<mapping class="com.brilliance.eibs.etrade.module.EibsGxd" />
<mapping class="com.brilliance.eibs.etrade.module.EibsUsr" />
<mapping class="com.brilliance.eibs.etrade.module.EibsRol" />
<mapping class="com.brilliance.eibs.etrade.module.EibsEty" />
<mapping class="com.brilliance.eibs.etrade.module.EibsEtg" />
<mapping class="com.brilliance.eibs.etrade.module.EibsDep" />
<mapping class="com.brilliance.eibs.etrade.module.EibsSpt" />
<mapping class="com.brilliance.eibs.etrade.module.EibsUsraut" />
<mapping class="com.brilliance.eibs.etrade.module.EibsPtr" />
<mapping class="com.brilliance.eibs.etrade.module.EibsImg" />
</session-factory>
</hibernate-configuration>
......@@ -39,15 +39,7 @@
<property name="rootFilePath" value="" />
</bean>
<!--cacheManager工厂类,指定ehcache.xml的位置-->
<bean id="ehcacheManagerFactory" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="classpath:ehcache.xml"/>
</bean>
<!--声明cacheManager-->
<bean id="ehcacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager">
<property name="cacheManager" ref="ehcacheManagerFactory"/>
</bean>
<mvc:default-servlet-handler />
<mvc:interceptors>
......
package.base=com.brilliance.eibs.etrade
subpackage.trans=trans
subpackage.module=module
......@@ -82,8 +82,7 @@
</init-param>
<init-param>
<param-name>exclude</param-name>
<param-value>
</param-value>
<param-value></param-value>
</init-param>
</filter>
<filter-mapping>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment