@Component(value="cuba_ConditionDescriptorsTreeBuilder") @Scope(value="prototype") public class ConditionDescriptorsTreeBuilder extends java.lang.Object implements ConditionDescriptorsTreeBuilderAPI
Tree
of AbstractConditionDescriptor
.
These descriptors are used in a new condition dialog.Modifier and Type | Class and Description |
---|---|
protected static class |
ConditionDescriptorsTreeBuilder.ConditionDescriptorComparator |
Modifier and Type | Field and Description |
---|---|
protected ConditionsTree |
conditionsTree |
protected static java.lang.String |
CUSTOM_CONDITIONS_PERMISSION |
protected static java.util.List<java.lang.String> |
defaultExcludedProps |
protected DynamicAttributes |
dynamicAttributes |
protected java.lang.String |
entityAlias |
protected com.haulmont.chile.core.model.MetaClass |
entityMetaClass |
protected java.util.List<java.lang.String> |
excludedProperties |
protected boolean |
excludePropertiesRecursively |
protected Filter |
filter |
protected java.lang.String |
filterComponentName |
protected boolean |
hideCustomConditions |
protected boolean |
hideDynamicAttributes |
protected int |
hierarchyDepth |
protected MetadataTools |
metadataTools |
protected Security |
security |
protected java.lang.String |
storeName |
NAME
Constructor and Description |
---|
ConditionDescriptorsTreeBuilder(Filter filter,
int hierarchyDepth,
boolean hideDynamicAttributes,
boolean hideCustomConditions,
ConditionsTree conditionsTree) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMultiplePropertyDescriptors(org.dom4j.Element element,
java.util.List<AbstractConditionDescriptor> descriptors,
Filter filter) |
protected void |
addMultiplePropertyDescriptors(java.lang.String includeRe,
java.lang.String excludeRe,
java.util.List<AbstractConditionDescriptor> descriptors,
Filter filter) |
com.haulmont.bali.datastruct.Tree<AbstractConditionDescriptor> |
build() |
protected java.lang.String |
getFilterComponentName() |
protected boolean |
isPropertyAllowed(com.haulmont.chile.core.model.MetaClass metaClass,
com.haulmont.chile.core.model.MetaProperty property) |
protected void |
recursivelyFillPropertyDescriptors(com.haulmont.bali.datastruct.Node<AbstractConditionDescriptor> parentNode,
int currentDepth) |
protected static final java.util.List<java.lang.String> defaultExcludedProps
protected static final java.lang.String CUSTOM_CONDITIONS_PERMISSION
protected Filter filter
protected int hierarchyDepth
protected Security security
protected java.lang.String filterComponentName
protected MetadataTools metadataTools
protected DynamicAttributes dynamicAttributes
protected java.util.List<java.lang.String> excludedProperties
protected final java.lang.String storeName
protected final com.haulmont.chile.core.model.MetaClass entityMetaClass
protected final java.lang.String entityAlias
protected final boolean hideDynamicAttributes
protected final boolean hideCustomConditions
protected ConditionsTree conditionsTree
protected boolean excludePropertiesRecursively
public ConditionDescriptorsTreeBuilder(Filter filter, int hierarchyDepth, boolean hideDynamicAttributes, boolean hideCustomConditions, ConditionsTree conditionsTree)
filter
- filterhierarchyDepth
- max level of properties hierarchyhideDynamicAttributes
- hide dynamic attributes conditions from wizardpublic com.haulmont.bali.datastruct.Tree<AbstractConditionDescriptor> build()
build
in interface ConditionDescriptorsTreeBuilderAPI
protected void recursivelyFillPropertyDescriptors(com.haulmont.bali.datastruct.Node<AbstractConditionDescriptor> parentNode, int currentDepth)
protected void addMultiplePropertyDescriptors(org.dom4j.Element element, java.util.List<AbstractConditionDescriptor> descriptors, Filter filter)
protected void addMultiplePropertyDescriptors(java.lang.String includeRe, java.lang.String excludeRe, java.util.List<AbstractConditionDescriptor> descriptors, Filter filter)
protected boolean isPropertyAllowed(com.haulmont.chile.core.model.MetaClass metaClass, com.haulmont.chile.core.model.MetaProperty property)
protected java.lang.String getFilterComponentName()