Class LanguageSynchronizeCheck
java.lang.Object
ch.tocco.nice2.userbase.impl.LanguageSynchronizeCheck
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageSynchronizeCheck(Context context, LocaleResolverService localeResolverService, SecurityManager securityManager, org.slf4j.Logger log, RunEnvironmentService runEnvironmentService) -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Throws anIllegalArgumentExceptionif the languages defined in the application.properties file are not the same than the available correspondence languages or the interface languages persisted in the database.
-
Constructor Details
-
LanguageSynchronizeCheck
public LanguageSynchronizeCheck(Context context, LocaleResolverService localeResolverService, SecurityManager securityManager, org.slf4j.Logger log, RunEnvironmentService runEnvironmentService)
-
-
Method Details
-
run
public void run()Throws anIllegalArgumentExceptionif the languages defined in the application.properties file are not the same than the available correspondence languages or the interface languages persisted in the database. A possiblePersistExceptionwill be rethrown with a proper error message. This can happen if the application.properties file defines more available languages as there are.
-