@Component public class LogClient extends Object
构造器和说明 |
---|
LogClient() |
限定符和类型 | 方法和说明 |
---|---|
<T> T |
deepCopy(T originalObject)
Get a deep copy of the input object
|
void |
logAttributes(String objectName,
String objectId,
String operator,
String operationName,
String operationAlias,
String extraWords,
String comment,
List<BaseAttributeModel> baseAttributeModelList)
Write log with attributes
|
void |
logObject(String objectId,
String operator,
String operationName,
String operationAlias,
String extraWords,
String comment,
Object oldObject,
Object newObject)
Auto diff old/new object and write one log
|
public <T> T deepCopy(T originalObject)
T
- Type of original objectoriginalObject
- Original objectpublic void logObject(String objectId, String operator, String operationName, String operationAlias, String extraWords, String comment, Object oldObject, Object newObject)
objectId
- requiredoperator
- requiredoperationName
- operationNameoperationAlias
- operation alias for displayextraWords
- extra description for operationcomment
- comment for operationoldObject
- required,the object before operationnewObject
- required,the object after operationpublic void logAttributes(String objectName, String objectId, String operator, String operationName, String operationAlias, String extraWords, String comment, List<BaseAttributeModel> baseAttributeModelList)
objectName
- required,the object aliasobjectId
- required,the object idoperator
- requiredoperationName
- operationNameoperationAlias
- operation alias for displayextraWords
- extra description for operationcomment
- comment for operationbaseAttributeModelList
- attributes list:
required: attributeType,attribute,attributeName
optional: oldValue,newValue,diffValueCopyright © 2020. All rights reserved.