Package io.odysz.semantic
Class LoggingUser
java.lang.Object
io.odysz.semantic.LoggingUser
- All Implemented Interfaces:
io.odysz.semantics.IUser
This robot handle logs of table a_log()
- Author:
- odys-z@github.com
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoggingUser(String logConn, String userId, io.odysz.semantics.SemanticObject action) -
Method Summary
Modifier and TypeMethodDescriptiongenLog(String connLog, DATranscxt logBuilder, String logTabl, ArrayList<String> sqls, io.odysz.semantics.IUser commitUser, String funcName, String funcId) Generate sqls for db logging.io.odysz.semantics.IUserbooleanio.odysz.semantics.SemanticObjectlogout()io.odysz.semantics.meta.TableMetanotifies()io.odysz.semantics.IUserio.odysz.semantics.IUsersessionKey(String skey) longuid()voidwriteJsonRespValue(Object writer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.odysz.semantics.IUser
deviceId, getClientSessionInf, guessPswd, onCreate, orgId, orgId, profile, pswd, roleId, roleId, sessionId, touch, userName, validatePassword
-
Field Details
-
dumbUser
public static io.odysz.semantics.IUser dumbUser
-
-
Constructor Details
-
LoggingUser
- Parameters:
logConn- connection of logger is not an independent data source.userId-action-
-
-
Method Details
-
meta
- Specified by:
metain interfaceio.odysz.semantics.IUser
-
uid
- Specified by:
uidin interfaceio.odysz.semantics.IUser
-
dbLog
- Specified by:
dbLogin interfaceio.odysz.semantics.IUser
-
genLog
public static ArrayList<String> genLog(String connLog, DATranscxt logBuilder, String logTabl, ArrayList<String> sqls, io.odysz.semantics.IUser commitUser, String funcName, String funcId) Generate sqls for db logging. No exception can be thrown here, no error message for client if failed.- Parameters:
logBuilder-logTabl-sqls-commitUser-funcName-funcId-- Returns:
- sqls
-
login
- Specified by:
loginin interfaceio.odysz.semantics.IUser- Throws:
io.odysz.transact.x.TransException
-
sessionId
- Specified by:
sessionIdin interfaceio.odysz.semantics.IUser
-
logout
public io.odysz.semantics.SemanticObject logout()- Specified by:
logoutin interfaceio.odysz.semantics.IUser
-
writeJsonRespValue
- Specified by:
writeJsonRespValuein interfaceio.odysz.semantics.IUser- Throws:
IOException
-
logAct
- Specified by:
logActin interfaceio.odysz.semantics.IUser
-
sessionKey
- Specified by:
sessionKeyin interfaceio.odysz.semantics.IUser
-
notify
- Specified by:
notifyin interfaceio.odysz.semantics.IUser- Throws:
io.odysz.transact.x.TransException
-
notifies
- Specified by:
notifiesin interfaceio.odysz.semantics.IUser
-
touchedMs
public long touchedMs()- Specified by:
touchedMsin interfaceio.odysz.semantics.IUser
-
sessionKey
- Specified by:
sessionKeyin interfaceio.odysz.semantics.IUser
-