@Immutable
public class DynamicAttributesCache
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,CategoryAttribute>> |
attributesCache |
protected com.google.common.collect.Multimap<java.lang.String,Category> |
categoriesCache |
protected java.util.Date |
creationDate |
Constructor and Description |
---|
DynamicAttributesCache(com.google.common.collect.Multimap<java.lang.String,Category> categoriesCache,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,CategoryAttribute>> attributesCache,
java.util.Date creationDate) |
Modifier and Type | Method and Description |
---|---|
CategoryAttribute |
getAttributeForMetaClass(com.haulmont.chile.core.model.MetaClass metaClass,
java.lang.String code) |
java.util.Collection<CategoryAttribute> |
getAttributesForMetaClass(com.haulmont.chile.core.model.MetaClass metaClass) |
java.util.Collection<Category> |
getCategoriesForMetaClass(com.haulmont.chile.core.model.MetaClass metaClass) |
java.util.Date |
getCreationDate() |
protected com.haulmont.chile.core.model.MetaClass |
resolveTargetMetaClass(com.haulmont.chile.core.model.MetaClass metaClass) |
protected final com.google.common.collect.Multimap<java.lang.String,Category> categoriesCache
protected final java.util.Map<java.lang.String,java.util.Map<java.lang.String,CategoryAttribute>> attributesCache
protected final java.util.Date creationDate
public DynamicAttributesCache(com.google.common.collect.Multimap<java.lang.String,Category> categoriesCache, java.util.Map<java.lang.String,java.util.Map<java.lang.String,CategoryAttribute>> attributesCache, java.util.Date creationDate)
public java.util.Collection<Category> getCategoriesForMetaClass(com.haulmont.chile.core.model.MetaClass metaClass)
public java.util.Collection<CategoryAttribute> getAttributesForMetaClass(com.haulmont.chile.core.model.MetaClass metaClass)
@Nullable public CategoryAttribute getAttributeForMetaClass(com.haulmont.chile.core.model.MetaClass metaClass, java.lang.String code)
protected com.haulmont.chile.core.model.MetaClass resolveTargetMetaClass(com.haulmont.chile.core.model.MetaClass metaClass)
public java.util.Date getCreationDate()