Package org.cyclos.impl.banking
Class AuthorizationLevelEntityLogHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.system.BaseEntityLogHandlerImpl<AuthorizationLevel,AuthorizationLevelDTO>
-
- org.cyclos.impl.banking.AuthorizationLevelEntityLogHandlerImpl
-
- All Implemented Interfaces:
EntityLogHandler<AuthorizationLevel,AuthorizationLevelDTO>
@Component public class AuthorizationLevelEntityLogHandlerImpl extends BaseEntityLogHandlerImpl<AuthorizationLevel,AuthorizationLevelDTO>
Handler for AuthorizationLevel 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 AuthorizationLevelEntityLogHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<AuthorizationLevel>getEntityClass()The entity class related to this handlerStringgetEntityLogName(AuthorizationLevel oldEntity, AuthorizationLevel newEntity, EntityLogEvent event)Return the name of the entity log being generated.protected AuthorizationLevelgetEntityToViewLog(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.EntityLogDescriptor<AuthorizationLevelDTO>resolveLogDescriptor(AuthorizationLevel authorizationLevel)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, getRelatedUser, getValues, 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<AuthorizationLevel> getEntityClass()
Description copied from interface:EntityLogHandlerThe entity class related to this handler
-
getEntityLogName
public String getEntityLogName(AuthorizationLevel oldEntity, AuthorizationLevel newEntity, EntityLogEvent event)
Description copied from interface:EntityLogHandlerReturn the name of the entity log being generated.- Specified by:
getEntityLogNamein interfaceEntityLogHandler<AuthorizationLevel,AuthorizationLevelDTO>- Overrides:
getEntityLogNamein classBaseEntityLogHandlerImpl<AuthorizationLevel,AuthorizationLevelDTO>
-
getType
public EntityLogType getType()
Description copied from interface:EntityLogHandlerThe log type this handler manages.
-
resolveLogDescriptor
public EntityLogDescriptor<AuthorizationLevelDTO> resolveLogDescriptor(AuthorizationLevel authorizationLevel)
Description copied from interface:EntityLogHandlerReturn the descriptor with the mappings for each DTO property.
-
getEntityToViewLog
protected AuthorizationLevel 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<AuthorizationLevel,AuthorizationLevelDTO>
-
-