Class ProfilesUpdaterRestartHandler
- java.lang.Object
-
- org.bonitasoft.engine.tenant.restart.ProfilesUpdaterRestartHandler
-
- All Implemented Interfaces:
TenantRestartHandler
@Component public class ProfilesUpdaterRestartHandler extends java.lang.Object implements TenantRestartHandler
Check that default profiles are up to date- Author:
- Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description ProfilesUpdaterRestartHandler(java.lang.Long tenantId, TechnicalLoggerService logger, ProfilesImporter profileImporter, TransactionService transactionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterServicesStart()called outside of a transaction afterPlatformAPI.startNode()in a separate thread than the api callvoidbeforeServicesStart()called in a transaction duringPlatformAPI.startNode()protected DefaultProfilesUpdatergetDefaultProfilesUpdater()
-
-
-
Constructor Detail
-
ProfilesUpdaterRestartHandler
public ProfilesUpdaterRestartHandler(@Value("${tenantId}") java.lang.Long tenantId, TechnicalLoggerService logger, ProfilesImporter profileImporter, TransactionService transactionService)
-
-
Method Detail
-
beforeServicesStart
public void beforeServicesStart()
Description copied from interface:TenantRestartHandlercalled in a transaction duringPlatformAPI.startNode()- Specified by:
beforeServicesStartin interfaceTenantRestartHandler
-
afterServicesStart
public void afterServicesStart()
Description copied from interface:TenantRestartHandlercalled outside of a transaction afterPlatformAPI.startNode()in a separate thread than the api call- Specified by:
afterServicesStartin interfaceTenantRestartHandler
-
getDefaultProfilesUpdater
protected DefaultProfilesUpdater getDefaultProfilesUpdater()
-
-