Class BTTranslationsCreate
java.lang.Object
overit.geocall.bl.BusinessTask<TranslationsCreateEvent>
overit.geocall.basic.bl.dictionary.task.BTTranslationsCreate
- All Implemented Interfaces:
Serializable,Tool
@Event(TranslationsCreateEvent.class)
@Permission("server.administration|company.administration")
public class BTTranslationsCreate
extends BusinessTask<TranslationsCreateEvent>
Task that listens to the
Can raise a
TranslationsCreateEvent and creates the translations in a dictionary.
Can raise a
DAException if there is some connection problem with the database.- Since:
- 13.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(TranslationsCreateEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected StringgetConfigChapterCacheEntryKey(String dictionaryId, Long companyId) protected overit.geocall.basic.lang.DictionarySubsetCachegetDictionarySubsetCache(Cache cache, Company company) protected JackMapperprotected StringgetOmissionCacheEntryKey(String dictionaryId, Company company, Long companyId) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTranslationsCreate
public BTTranslationsCreate()
-
-
Method Details
-
body
protected void body(TranslationsCreateEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<TranslationsCreateEvent>- Parameters:
event- the object upon which the task will works onpk- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
serializeString
- Throws:
IOException
-
getJackMapper
-
getConfigChapterCacheEntryKey
-
getOmissionCacheEntryKey
-
getDictionarySubsetCache
-