Package org.cyclos.impl.banking
Class TransactionCustomFieldEntityLogHandlerImpl
- 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<TransactionCustomField,TransactionCustomFieldDTO>
-
- org.cyclos.impl.banking.TransactionCustomFieldEntityLogHandlerImpl
-
- All Implemented Interfaces:
EntityLogHandler<TransactionCustomField,TransactionCustomFieldDTO>
@Component public class TransactionCustomFieldEntityLogHandlerImpl extends BaseCustomFieldEntityLogHandlerImpl<TransactionCustomField,TransactionCustomFieldDTO>
Handler for Transaction custom field entity logs.
-
-
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 TransactionCustomFieldEntityLogHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<EntityLogType>doApplyLogFilters(DBQuery<?> query, long entityId)Subclasses can implement this method to add specific filters to the query when searching for logs of an entity.Class<TransactionCustomField>getEntityClass()The entity class related to this handlerprotected TransactionCustomFieldgetEntityToViewLog(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.protected Class<TransactionCustomFieldDTO>resolveDtoType(TransactionCustomField customField)EntityLogDescriptor<TransactionCustomFieldDTO>resolveLogDescriptor(TransactionCustomField transactionCustomField)Return the descriptor with the mappings for each DTO property.-
Methods inherited from class org.cyclos.impl.system.BaseCustomFieldEntityLogHandlerImpl
getValues
-
Methods inherited from class org.cyclos.impl.system.BaseEntityLogHandlerImpl
applyLogFilters, areEquals, canViewEntityLog, canViewPropertiesLog, createEntityPropertyLog, customLogForCreation, doOnBeforeLog, getEntityLogName, 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
-
-
-
-
Method Detail
-
getEntityClass
public Class<TransactionCustomField> 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.
-
resolveLogDescriptor
public EntityLogDescriptor<TransactionCustomFieldDTO> resolveLogDescriptor(TransactionCustomField transactionCustomField)
Description copied from interface:EntityLogHandlerReturn the descriptor with the mappings for each DTO property.- Specified by:
resolveLogDescriptorin interfaceEntityLogHandler<TransactionCustomField,TransactionCustomFieldDTO>- Overrides:
resolveLogDescriptorin classBaseCustomFieldEntityLogHandlerImpl<TransactionCustomField,TransactionCustomFieldDTO>
-
doApplyLogFilters
protected Set<EntityLogType> doApplyLogFilters(DBQuery<?> query, long entityId)
Description copied from class:BaseEntityLogHandlerImplSubclasses can implement this method to add specific filters to the query when searching for logs of an entity. Also, if other log types must be included in the query result then they must be returned.- Overrides:
doApplyLogFiltersin classBaseEntityLogHandlerImpl<TransactionCustomField,TransactionCustomFieldDTO>- Parameters:
query- the query to add the filtersentityId- the id of the entity for which we're searching its logs- Returns:
- the list of other types that must be included in the result (e.g for users we include the addresses and phones logs). Null/empty means no other types are included.
-
getEntityToViewLog
protected TransactionCustomField 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<TransactionCustomField,TransactionCustomFieldDTO>
-
resolveDtoType
protected Class<TransactionCustomFieldDTO> resolveDtoType(TransactionCustomField customField)
- Specified by:
resolveDtoTypein classBaseCustomFieldEntityLogHandlerImpl<TransactionCustomField,TransactionCustomFieldDTO>
-
-