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
-
Constructor Summary
ConstructorDescriptionLoggingUser
(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.IUser
boolean
io.odysz.semantics.SemanticObject
logout()
io.odysz.semantics.meta.TableMeta
notifies()
io.odysz.semantics.IUser
io.odysz.semantics.IUser
sessionKey
(String skey) long
uid()
void
writeJsonRespValue
(Object writer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
meta
in interfaceio.odysz.semantics.IUser
-
uid
- Specified by:
uid
in interfaceio.odysz.semantics.IUser
-
dbLog
- Specified by:
dbLog
in 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:
login
in interfaceio.odysz.semantics.IUser
- Throws:
io.odysz.transact.x.TransException
-
sessionId
- Specified by:
sessionId
in interfaceio.odysz.semantics.IUser
-
logout
public io.odysz.semantics.SemanticObject logout()- Specified by:
logout
in interfaceio.odysz.semantics.IUser
-
writeJsonRespValue
- Specified by:
writeJsonRespValue
in interfaceio.odysz.semantics.IUser
- Throws:
IOException
-
logAct
- Specified by:
logAct
in interfaceio.odysz.semantics.IUser
-
sessionKey
- Specified by:
sessionKey
in interfaceio.odysz.semantics.IUser
-
notify
- Specified by:
notify
in interfaceio.odysz.semantics.IUser
- Throws:
io.odysz.transact.x.TransException
-
notifies
- Specified by:
notifies
in interfaceio.odysz.semantics.IUser
-
touchedMs
public long touchedMs()- Specified by:
touchedMs
in interfaceio.odysz.semantics.IUser
-
sessionKey
- Specified by:
sessionKey
in interfaceio.odysz.semantics.IUser
-