Flexberry ORM ODataService 5.2.0-beta01
Класс NewPlatform.Flexberry.ORM.ODataService.Offline.OfflineAuditService

Implementation of AuditService for offline audit mode. Instead of manual setting audit fields (IDataObjectWithAuditFields) on saving changes, this implementation preserves existed values. Подробнее...

Граф наследования:NewPlatform.Flexberry.ORM.ODataService.Offline.OfflineAuditService:

Открытые члены

override void AddCreateAuditInformation (DataObject operationedObject)
 Adds audit information for specified new data object. Does nothing in order to preserve data at IDataObjectWithAuditFields fields. Подробнее...
 
override void AddEditAuditInformation (DataObject operationedObject)
 Adds audit information for specified edited data object. Does nothing in order to preserve data at IDataObjectWithAuditFields fields. Подробнее...
 

Защищенные члены

override DateTime GetAuditOperationTime (DataObject operatedObject)
 Gets the time when auditable operation occurred with the specified object. Подробнее...
 

Подробное описание

Implementation of AuditService for offline audit mode. Instead of manual setting audit fields (IDataObjectWithAuditFields) on saving changes, this implementation preserves existed values.

См. также
AuditService

Методы

override void NewPlatform.Flexberry.ORM.ODataService.Offline.OfflineAuditService.AddCreateAuditInformation ( DataObject  operationedObject)
inline

Adds audit information for specified new data object. Does nothing in order to preserve data at IDataObjectWithAuditFields fields.

Аргументы
operationedObjectNew data object.
override void NewPlatform.Flexberry.ORM.ODataService.Offline.OfflineAuditService.AddEditAuditInformation ( DataObject  operationedObject)
inline

Adds audit information for specified edited data object. Does nothing in order to preserve data at IDataObjectWithAuditFields fields.

Аргументы
operationedObjectEdited data object.
override DateTime NewPlatform.Flexberry.ORM.ODataService.Offline.OfflineAuditService.GetAuditOperationTime ( DataObject  operatedObject)
inlineprotected

Gets the time when auditable operation occurred with the specified object.

In the audit update queue of the data service not only objects do from OData (where fields of IDataObjectWithAuditFields should be already set), can appear. For example, objects from a business server or detail aggregator. Therefore, audit operation time cannot always be recognized and server time will be used for this situation.

Аргументы
operatedObjectThe operated object.
Возвращает
Returns time when auditable operation occurred using IDataObjectWithAuditFields.CreateTime for new object or IDataObjectWithAuditFields.EditTime for changed object.
Исключения
ArgumentNullExceptionThrown when operatedObject is null.
ArgumentExceptionThrown when data object doesn't implement IDataObjectWithAuditFields in order to use with offline audit.