Class AuditableListener
java.lang.Object
org.broadleafcommerce.common.audit.AbstractAuditableListener
org.broadleafcommerce.common.audit.AuditableListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAuditCreationAndUpdateData(Object entity) Method that will be invoked in a registered listener to set the entity's creation data.voidsetAuditUpdateData(Object entity) Method that will be invoked in a registered listener to set the entity's update data.protected voidsetAuditValueAgent(Field field, Object entity) Method that sets the user-related data.Methods inherited from class org.broadleafcommerce.common.audit.AbstractAuditableListener
getAuditableFieldName, setAuditCreationData, setAuditData, setAuditUpdateData, setAuditValueTemporal
-
Constructor Details
-
AuditableListener
public AuditableListener()
-
-
Method Details
-
setAuditCreationAndUpdateData
Description copied from class:AbstractAuditableListenerMethod that will be invoked in a registered listener to set the entity's creation data. In most cases, callingAbstractAuditableListener.setAuditCreationData(Object, Object)should suffice.- Specified by:
setAuditCreationAndUpdateDatain classAbstractAuditableListener- Throws:
Exception
-
setAuditUpdateData
Description copied from class:AbstractAuditableListenerMethod that will be invoked in a registered listener to set the entity's update data. In most cases, callingAbstractAuditableListener.setAuditUpdateData(Object, Object)should suffice.- Specified by:
setAuditUpdateDatain classAbstractAuditableListener- Throws:
Exception
-
setAuditValueAgent
protected void setAuditValueAgent(Field field, Object entity) throws IllegalArgumentException, IllegalAccessException Description copied from class:AbstractAuditableListenerMethod that sets the user-related data.- Specified by:
setAuditValueAgentin classAbstractAuditableListener- Throws:
IllegalArgumentExceptionIllegalAccessException
-