Package org.bonitasoft.engine.profile
Class DefaultProfilesUpdater
- java.lang.Object
-
- org.bonitasoft.engine.profile.DefaultProfilesUpdater
-
- All Implemented Interfaces:
LifecycleService,TenantLifecycleService
@Component @Order(3) public class DefaultProfilesUpdater extends java.lang.Object implements TenantLifecycleService
Update provided profiles from profiles.xml from classpath
-
-
Constructor Summary
Constructors Constructor Description DefaultProfilesUpdater(java.lang.Long tenantId, ProfilesImporter profilesImporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute()Executes a default profile updatevoidinit()This method performs actions to initialize a TenantLifecycleService This method is called when creating a new tenant and when starting the platform.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume, start, stop
-
-
-
-
Constructor Detail
-
DefaultProfilesUpdater
public DefaultProfilesUpdater(@Value("${tenantId}") java.lang.Long tenantId, ProfilesImporter profilesImporter)
-
-
Method Detail
-
init
public void init() throws SBonitaExceptionDescription copied from interface:TenantLifecycleServiceThis method performs actions to initialize a TenantLifecycleService This method is called when creating a new tenant and when starting the platform.- Specified by:
initin interfaceTenantLifecycleService- Throws:
SBonitaException
-
execute
public boolean execute()
Executes a default profile update- Returns:
- whether the default profiles where updated
- Throws:
java.lang.Exception- if execution fails
-
-