public class SettingsMigration extends Object implements StartableClusterAware
| Modifier and Type | Field and Description |
|---|---|
static String |
SETTINGS_JCR_DATA_USER_MIGRATED_KEY |
static String |
SETTINGS_MIGRATION_GLOBAL_KEY |
static String |
SETTINGS_MIGRATION_USER_KEY |
static String |
SETTINGS_RDBMS_CLEANUP_DONE |
static String |
SETTINGS_RDBMS_MIGRATION_DONE |
| Constructor and Description |
|---|
SettingsMigration(org.exoplatform.commons.chromattic.ChromatticManager chromatticManager,
org.exoplatform.services.organization.OrganizationService organizationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
ScopeEntity |
getGlobalScope(String scope) |
ScopeEntity |
getGlobalScopeOfUser(String user,
String scope) |
Set<String> |
getGlobalSettings() |
JPASettingServiceImpl |
getJpaSettingService() |
boolean |
isDone()
Check if service is done
|
Boolean |
migrateGlobalSettingsOfGlobalScopes(String scope) |
Boolean |
migrateUserSettingsOfGlobalScope(String user,
String scope) |
void |
start()
Start service by the current node
|
void |
stop()
Stop service by the current node
|
public static final String SETTINGS_MIGRATION_USER_KEY
public static final String SETTINGS_MIGRATION_GLOBAL_KEY
public static final String SETTINGS_JCR_DATA_USER_MIGRATED_KEY
public static final String SETTINGS_RDBMS_MIGRATION_DONE
public static final String SETTINGS_RDBMS_CLEANUP_DONE
public SettingsMigration(org.exoplatform.commons.chromattic.ChromatticManager chromatticManager,
org.exoplatform.services.organization.OrganizationService organizationService)
public void start()
StartableClusterAwarestart in interface StartableClusterAwarepublic void cleanup()
public boolean isDone()
StartableClusterAwareisDone in interface StartableClusterAwarepublic void stop()
StartableClusterAwarestop in interface StartableClusterAwarepublic ScopeEntity getGlobalScope(String scope)
public Boolean migrateGlobalSettingsOfGlobalScopes(String scope)
public ScopeEntity getGlobalScopeOfUser(String user, String scope)
public Boolean migrateUserSettingsOfGlobalScope(String user, String scope)
public JPASettingServiceImpl getJpaSettingService()
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.