@Component public class LogClient extends Object
| 构造器和说明 |
|---|
LogClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
sendLogForItems(String objectName,
Integer objectId,
String actor,
String action,
String actionName,
String extraWords,
String comment,
List<ActionItemModel> actionItemModelList)
simple write one log
|
void |
sendLogForObject(Integer objectId,
String actor,
String action,
String actionName,
String extraWords,
String comment,
Object oldObject,
Object newObject)
Auto diff old/new object and write one log
Attention: the attributes be diffed must with @LogDescription
|
public void sendLogForObject(Integer objectId, String actor, String action, String actionName, String extraWords, String comment, Object oldObject, Object newObject)
objectId - required,objectIdactor - required,actoraction - actionactionName - action name for displayextraWords - extra description for actioncomment - comment for action or logoldObject - required,the object before actionnewObject - required,the object after actionpublic void sendLogForItems(String objectName, Integer objectId, String actor, String action, String actionName, String extraWords, String comment, List<ActionItemModel> actionItemModelList)
objectName - required,the object nameobjectId - required,the object idactor - required,actoraction - actionactionName - action name for displayextraWords - extra description for actioncomment - comment for action or logactionItemModelList - attributes list:
required: attributeType,attribute,attributeName
optional: oldValue,newValue,diffValue
leave null : id, actionIdCopyright © 2019. All rights reserved.