@Service(value="blCustomFieldService") public class CustomFieldServiceImpl extends Object implements CustomFieldService
| Modifier and Type | Field and Description |
|---|---|
protected javax.cache.Cache |
cache |
protected static String |
CACHE_KEY_PREFIX |
protected static String |
CACHE_NAME |
protected org.broadleafcommerce.common.extensibility.cache.JCacheUtil |
cacheUtil |
protected CustomFieldDao |
customFieldDao |
| Constructor and Description |
|---|
CustomFieldServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildCacheKey(String className) |
void |
clearCustomFieldMetadataCache(org.broadleafcommerce.core.search.domain.FieldEntity fieldEntity) |
void |
clearCustomFieldMetadataCache(List<String> types) |
CustomField |
findById(Long id) |
List<CustomField> |
findByTargetEntityName(String targetEntityName) |
protected javax.cache.Cache |
getCache() |
List<AllowedEnumValue> |
readAllowedEnumValuesForCustomField(CustomField customField) |
CustomField |
save(CustomField customField) |
protected CustomFieldDao customFieldDao
protected static String CACHE_NAME
protected static String CACHE_KEY_PREFIX
@Autowired protected org.broadleafcommerce.common.extensibility.cache.JCacheUtil cacheUtil
protected javax.cache.Cache cache
protected javax.cache.Cache getCache()
public CustomField findById(Long id)
findById in interface CustomFieldServicepublic List<CustomField> findByTargetEntityName(String targetEntityName)
findByTargetEntityName in interface CustomFieldService@Transactional(value="blTransactionManager") public CustomField save(CustomField customField)
save in interface CustomFieldServicepublic void clearCustomFieldMetadataCache(org.broadleafcommerce.core.search.domain.FieldEntity fieldEntity)
clearCustomFieldMetadataCache in interface CustomFieldServicepublic void clearCustomFieldMetadataCache(List<String> types)
clearCustomFieldMetadataCache in interface CustomFieldServicepublic List<AllowedEnumValue> readAllowedEnumValuesForCustomField(CustomField customField)
readAllowedEnumValuesForCustomField in interface CustomFieldServicepublic String buildCacheKey(String className)
buildCacheKey in interface CustomFieldServiceCopyright © 2020. All rights reserved.