|
|
@ -11,6 +11,7 @@ import cokr.xit.base.file.web.DownloadView;
|
|
|
|
import cokr.xit.base.file.web.XLSView;
|
|
|
|
import cokr.xit.base.file.web.XLSView;
|
|
|
|
import cokr.xit.base.syslog.ServiceLog;
|
|
|
|
import cokr.xit.base.syslog.ServiceLog;
|
|
|
|
import cokr.xit.foundation.AbstractComponent;
|
|
|
|
import cokr.xit.foundation.AbstractComponent;
|
|
|
|
|
|
|
|
import cokr.xit.foundation.UserInfo;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
|
|
/**서비스 로그 필터.
|
|
|
|
/**서비스 로그 필터.
|
|
|
@ -67,6 +68,11 @@ public class LogFilter extends AbstractComponent {
|
|
|
|
case "onFailure":
|
|
|
|
case "onFailure":
|
|
|
|
case "onLogout":
|
|
|
|
case "onLogout":
|
|
|
|
log.setType(ServiceLog.LOG_INOUT);
|
|
|
|
log.setType(ServiceLog.LOG_INOUT);
|
|
|
|
|
|
|
|
UserInfo current = UserInfo.current();
|
|
|
|
|
|
|
|
if (!current.isAuthenticated()) {
|
|
|
|
|
|
|
|
Object[] args = log.getArgs();
|
|
|
|
|
|
|
|
log.setUserId(current.getId(args.length > 0 ? args[0] : null));
|
|
|
|
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
default: return false;
|
|
|
|
default: return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|