Package org.cyclos.impl.system
Class BaseCustomFieldEntityLogHandlerImpl<CF extends CustomField,CFDTO extends CustomFieldDTO>
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.system.BaseEntityLogHandlerImpl<CF,CFDTO>
-
- org.cyclos.impl.system.BaseCustomFieldEntityLogHandlerImpl<CF,CFDTO>
-
- All Implemented Interfaces:
EntityLogHandler<CF,CFDTO>
- Direct Known Subclasses:
AdCustomFieldEntityLogHandlerImpl,ContactCustomFieldEntityLogHandlerImpl,ContactInfoFieldEntityLogHandlerImpl,CustomOperationFieldEntityLogHandlerImpl,CustomWizardFieldEntityLogHandlerImpl,DocumentCustomFieldEntityLogHandlerImpl,RecordCustomFieldEntityLogHandlerImpl,TransactionCustomFieldEntityLogHandlerImpl,UserCustomFieldEntityLogHandlerImpl,VoucherCustomFieldEntityLogHandlerImpl
@Component public abstract class BaseCustomFieldEntityLogHandlerImpl<CF extends CustomField,CFDTO extends CustomFieldDTO> extends BaseEntityLogHandlerImpl<CF,CFDTO>
Base class for Custom field entity logs handlers.
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.system.BaseEntityLogHandlerImpl
$, el, entityLogRegistry, rawEntityManagerHandler
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description BaseCustomFieldEntityLogHandlerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Pair<Object,Object>getValues(CF oldEntity, CF newEntity, PropertyLogDescriptor<CFDTO> propertyDescriptor)Allows custom logic for a specific property to be logged bypassing the default log generation for it.protected abstract Class<CFDTO>resolveDtoType(CF customField)EntityLogDescriptor<CFDTO>resolveLogDescriptor(CF customField)Return the descriptor with the mappings for each DTO property.-
Methods inherited from class org.cyclos.impl.system.BaseEntityLogHandlerImpl
applyLogFilters, areEquals, canViewEntityLog, canViewPropertiesLog, createEntityPropertyLog, customLogForCreation, doApplyLogFilters, doOnBeforeLog, getEntityLogName, getEntityToViewLog, getRelatedUser, isLogEnabled, isPrivateEntity, onBeforeLog, resolveOwnerEntityLogHandler
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.system.EntityLogHandler
getEntityClass, getType
-
-
-
-
Method Detail
-
getValues
public Pair<Object,Object> getValues(CF oldEntity, CF newEntity, PropertyLogDescriptor<CFDTO> propertyDescriptor)
Description copied from interface:EntityLogHandlerAllows custom logic for a specific property to be logged bypassing the default log generation for it.- Specified by:
getValuesin interfaceEntityLogHandler<CF extends CustomField,CFDTO extends CustomFieldDTO>- Overrides:
getValuesin classBaseEntityLogHandlerImpl<CF extends CustomField,CFDTO extends CustomFieldDTO>- Returns:
- null for the default generation (i.e no custom logic implemented) or a pair of the form
to be saved as-is only if EntityLogHandler.areEquals(BaseEntity, BaseEntity, PropertyAccess, Object, Object)return false.
-
resolveLogDescriptor
public EntityLogDescriptor<CFDTO> resolveLogDescriptor(CF customField)
Description copied from interface:EntityLogHandlerReturn the descriptor with the mappings for each DTO property.
-
-