Package org.cyclos.impl.banking
Class TransferTypeEntityLogHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.system.BaseEntityLogHandlerImpl<TransferType,TransferTypeDTO>
-
- org.cyclos.impl.banking.TransferTypeEntityLogHandlerImpl
-
- All Implemented Interfaces:
EntityLogHandler<TransferType,TransferTypeDTO>
@Component public class TransferTypeEntityLogHandlerImpl extends BaseEntityLogHandlerImpl<TransferType,TransferTypeDTO>
Handler for TransferType entity logs.
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.system.BaseEntityLogHandlerImpl
$, el, MASKED_VALUE
-
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 TransferTypeEntityLogHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<TransferType>getEntityClass()The entity class related to this handlerprotected TransferTypegetEntityToViewLog(long entityId)Returns the entity with the given id ONLY if the logged user can view its logs.EntityLogTypegetType()The log type this handler manages.Pair<Object,Object>getValues(TransferType oldEntity, TransferType newEntity, PropertyLogDescriptor<TransferTypeDTO> propertyDescriptor)Allows custom logic for a specific property to be logged bypassing the default log generation for it.EntityLogDescriptor<? extends TransferTypeDTO>resolveLogDescriptor(TransferType transferType)Return the descriptor with the mappings for each DTO property.-
Methods inherited from class org.cyclos.impl.system.BaseEntityLogHandlerImpl
applyLogFilters, areEquals, canViewEntityLog, createEntityPropertyLog, customLogForCreation, doApplyLogFilters, doOnBeforeLog, getEntityLogName, getRelatedUser, isLogEnabled, onBeforeLog
-
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, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getEntityClass
public Class<TransferType> getEntityClass()
Description copied from interface:EntityLogHandlerThe entity class related to this handler
-
getType
public EntityLogType getType()
Description copied from interface:EntityLogHandlerThe log type this handler manages.
-
getValues
public Pair<Object,Object> getValues(TransferType oldEntity, TransferType newEntity, PropertyLogDescriptor<TransferTypeDTO> 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<TransferType,TransferTypeDTO>- Overrides:
getValuesin classBaseEntityLogHandlerImpl<TransferType,TransferTypeDTO>- 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<? extends TransferTypeDTO> resolveLogDescriptor(TransferType transferType)
Description copied from interface:EntityLogHandlerReturn the descriptor with the mappings for each DTO property.
-
getEntityToViewLog
protected TransferType getEntityToViewLog(long entityId)
Description copied from class:BaseEntityLogHandlerImplReturns the entity with the given id ONLY if the logged user can view its logs. Otherwise it MUST return null.- Specified by:
getEntityToViewLogin classBaseEntityLogHandlerImpl<TransferType,TransferTypeDTO>
-
-