@Component(value="cuba_DynamicAttributesService") public class DynamicAttributesClientImpl extends java.lang.Object implements DynamicAttributes
| Modifier and Type | Field and Description |
|---|---|
protected ClientCacheManager |
clientCacheManager |
NAME| Constructor and Description |
|---|
DynamicAttributesClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected DynamicAttributesCache |
cache() |
CategoryAttribute |
getAttributeForMetaClass(MetaClass metaClass,
java.lang.String code)
Get certain category attribute for metaClass by attribute's code
|
java.util.Collection<CategoryAttribute> |
getAttributesForMetaClass(MetaClass metaClass)
Get all categories attributes for metaClass from cache
|
java.util.Collection<Category> |
getCategoriesForMetaClass(MetaClass metaClass)
Get all categories linked with metaClass from cache
|
@Inject protected ClientCacheManager clientCacheManager
public java.util.Collection<Category> getCategoriesForMetaClass(MetaClass metaClass)
DynamicAttributesgetCategoriesForMetaClass in interface DynamicAttributespublic java.util.Collection<CategoryAttribute> getAttributesForMetaClass(MetaClass metaClass)
DynamicAttributesgetAttributesForMetaClass in interface DynamicAttributes@Nullable public CategoryAttribute getAttributeForMetaClass(MetaClass metaClass, java.lang.String code)
DynamicAttributesgetAttributeForMetaClass in interface DynamicAttributesprotected DynamicAttributesCache cache()