Package org.cyclos.impl.users
Class UserAddressEntityLogHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.system.BaseEntityLogHandlerImpl<UserAddress,UserAddressDTO>
-
- org.cyclos.impl.users.UserAddressEntityLogHandlerImpl
-
- All Implemented Interfaces:
EntityLogHandler<UserAddress,UserAddressDTO>
@Component public class UserAddressEntityLogHandlerImpl extends BaseEntityLogHandlerImpl<UserAddress,UserAddressDTO>
Handler forUserAddressentity 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 UserAddressEntityLogHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<UserAddress>getEntityClass()The entity class related to this handlerprotected UserAddressgetEntityToViewLog(long entityId)Returns the entity with the given id ONLY if the logged user can view its logs.protected BasicUsergetRelatedUser(UserAddress entity)Subclasses can implement this method to return the related user of the entity Returns the associated user to the given entity.EntityLogTypegetType()The log type this handler manages.booleanisPrivateEntity(UserAddress entity)Return true if the given entity was marked as privateEntityLogDescriptor<UserAddressDTO>resolveLogDescriptor(UserAddress address)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, getValues, isLogEnabled, 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<UserAddress> 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.
-
isPrivateEntity
public boolean isPrivateEntity(UserAddress entity)
Description copied from interface:EntityLogHandlerReturn true if the given entity was marked as private- Specified by:
isPrivateEntityin interfaceEntityLogHandler<UserAddress,UserAddressDTO>- Overrides:
isPrivateEntityin classBaseEntityLogHandlerImpl<UserAddress,UserAddressDTO>
-
resolveLogDescriptor
public EntityLogDescriptor<UserAddressDTO> resolveLogDescriptor(UserAddress address)
Description copied from interface:EntityLogHandlerReturn the descriptor with the mappings for each DTO property.
-
getEntityToViewLog
protected UserAddress 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<UserAddress,UserAddressDTO>
-
getRelatedUser
protected BasicUser getRelatedUser(UserAddress entity)
Description copied from class:BaseEntityLogHandlerImplSubclasses can implement this method to return the related user of the entity Returns the associated user to the given entity.- Overrides:
getRelatedUserin classBaseEntityLogHandlerImpl<UserAddress,UserAddressDTO>
-
-