Class TranslationsProxyImpl
- java.lang.Object
-
- co.mastermindcms.modules.services.TranslationsProxyImpl
-
- All Implemented Interfaces:
TranslationProxy
@Service public class TranslationsProxyImpl extends java.lang.Object implements TranslationProxy
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.data.mongodb.core.MongoTemplate
mongoTemplate
-
Constructor Summary
Constructors Constructor Description TranslationsProxyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
findTranslationById(java.lang.String id, java.lang.Class<?> entityClass)
This method returns data as map.
-
-
-
Method Detail
-
findTranslationById
@Cacheable(value="translations", key="#id") public java.lang.Object findTranslationById(java.lang.String id, java.lang.Class<?> entityClass)
Description copied from interface:TranslationProxy
This method returns data as map.- Specified by:
findTranslationById
in interfaceTranslationProxy
- Parameters:
id
- identification for database entity, which will be revers on mapentityClass
- class of the entity- Returns:
- data as object
-
-