public interface DynamicAttributesManagerAPI
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
<E extends BaseGenericIdEntity> |
fetchDynamicAttributes(java.util.List<E> entities,
java.util.Set<java.lang.Class> dependentClasses)
Fetch dynamic attributes from database for each entity
|
CategoryAttribute |
getAttributeForMetaClass(MetaClass metaClass,
java.lang.String code)
Get certain category attribute for metaClass by attribute code
|
java.util.Collection<CategoryAttribute> |
getAttributesForMetaClass(MetaClass metaClass)
Get all categories attributes for metaClass from cache
|
DynamicAttributesCache |
getCacheIfNewer(java.util.Date clientCacheDate) |
java.util.Collection<Category> |
getCategoriesForMetaClass(MetaClass metaClass)
Get all categories linked with metaClass from cache
|
void |
loadCache()
Reload dynamic attributes cache from database
|
void |
storeDynamicAttributes(BaseGenericIdEntity entity)
Store dynamic attributes from the entity to database
|
static final java.lang.String NAME
void loadCache()
java.util.Collection<Category> getCategoriesForMetaClass(MetaClass metaClass)
java.util.Collection<CategoryAttribute> getAttributesForMetaClass(MetaClass metaClass)
@Nullable CategoryAttribute getAttributeForMetaClass(MetaClass metaClass, java.lang.String code)
@Nullable DynamicAttributesCache getCacheIfNewer(java.util.Date clientCacheDate)
<E extends BaseGenericIdEntity> void fetchDynamicAttributes(java.util.List<E> entities, @Nonnull java.util.Set<java.lang.Class> dependentClasses)
void storeDynamicAttributes(BaseGenericIdEntity entity)