Package com.skava.oms.log
Class AuditLog
java.lang.Object
com.skava.oms.log.AuditLog
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
auditEvent
(String action, OmsServiceEntityResponse<OrderDTO> orderResponse) Fetches the values in AuditEvent classstatic List<org.audit4j.core.dto.Field>
getAuditFields
(OrderDTO order) Add all the values in Fields class liststatic String
getCollectionID
(long collectionId) Performs the type casting operationstatic String
Fetches the default value for the given value
-
Field Details
-
CREATE_ORDER
- See Also:
-
DELETE_ORDER
- See Also:
-
CREATE_NOTES
- See Also:
-
PATCH_ORDER
- See Also:
-
-
Method Details
-
auditEvent
Fetches the values in AuditEvent class- Parameters:
action
- holds the action messageorderResponse
- holds the fields values
-
getAuditFields
Add all the values in Fields class list- Parameters:
order
- holds the fields values- Returns:
- fields list
-
getCollectionID
Performs the type casting operation- Parameters:
collectionId
- holds the long collectionId values- Returns:
- the converted string
-
getValues
Fetches the default value for the given value- Parameters:
values
- Holds the value to be checkeddefaultValues
- Holds the default value to be returned if given values is invalid- Returns:
- values if is valid otherwise defaultValues.
-