Package ch.tocco.nice2.userbase.impl
Class LanguageSynchronizeCheck
java.lang.Object
ch.tocco.nice2.userbase.impl.LanguageSynchronizeCheck
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorDescriptionLanguageSynchronizeCheck
(Context context, LocaleResolverService localeResolverService, SecurityManager securityManager, org.slf4j.Logger log, RunEnvironmentService runEnvironmentService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Throws anIllegalArgumentException
if 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 anIllegalArgumentException
if 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 possiblePersistException
will be rethrown with a proper error message. This can happen if the application.properties file defines more available languages as there are.
-