Class ItemAttributeSearchDescriptor
java.lang.Object
de.hybris.platform.cockpit.services.search.impl.ItemAttributeSearchDescriptor
- All Implemented Interfaces:
PropertyDescriptor,SearchParameterDescriptor,GenericSearchParameterDescriptor
public class ItemAttributeSearchDescriptor
extends Object
implements GenericSearchParameterDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.cockpit.model.meta.PropertyDescriptor
PropertyDescriptor.Multiplicity, PropertyDescriptor.Occurrence -
Field Summary
Fields inherited from interface de.hybris.platform.cockpit.model.meta.PropertyDescriptor
BOOLEAN, DATE, DECIMAL, ENUM, FEATURE, FLOAT, INTEGER, LONG, PK, QUALIFIER_DELIM, QUALIFIER_DELIM_EXP, REFERENCE, TEXT -
Constructor Summary
ConstructorsConstructorDescriptionItemAttributeSearchDescriptor(ItemAttributePropertyDescriptor propertyDescriptor) -
Method Summary
Modifier and TypeMethodDescriptioncreateCondition(GenericQuery query, Object value, Operator operator) Creates the condition for the given generic query combined of the specified arguments.protected GenericQueryParameterCreatorbooleanReturns the attribute qualifier of the underlying property.Returns the default operator for the property, which can be "equals", "contains", etc..localized descriptionThe general editor type.Specifies which type of collection this editor should handle.getName()localized nameTells if this property is mandatory, recommended or optional.The (globally!) unique property qualifier.protected GenericQueryParameterCreatorReturns the required composed type that is enclosing type of underlying property descriptor.qualifier of property descriptor that holds the "selectionOf"inthashCode()booleanTells whether this property contains localized data.booleanbooleanChecks if is simple search property.booleanvoidsetEditorType(String type) Deprecated.voidsetOperators(List<Operator> operators) voidsetSimpleSearchProperty(boolean simpleSearchProperty)
-
Constructor Details
-
ItemAttributeSearchDescriptor
-
-
Method Details
-
createCreator
-
getQueryCreator
-
createCondition
Description copied from interface:GenericSearchParameterDescriptorCreates the condition for the given generic query combined of the specified arguments.- Specified by:
createConditionin interfaceGenericSearchParameterDescriptor- Parameters:
query- the generic query that condition will be created forvalue- the value used to create conditionoperator- the operator used to create condition- Returns:
- the new create generic condition
-
getRequiredComposedType
Description copied from interface:GenericSearchParameterDescriptorReturns the required composed type that is enclosing type of underlying property descriptor.- Specified by:
getRequiredComposedTypein interfaceGenericSearchParameterDescriptor- Returns:
- the required composed type
-
isSimpleSearchProperty
public boolean isSimpleSearchProperty()Description copied from interface:GenericSearchParameterDescriptorChecks if is simple search property.- Specified by:
isSimpleSearchPropertyin interfaceGenericSearchParameterDescriptor- Returns:
- true, if is simple search property
-
setSimpleSearchProperty
public void setSimpleSearchProperty(boolean simpleSearchProperty) -
setEditorType
Deprecated.since 6.3,ItemAttributePropertyDescriptor.setEditorType(String)should be used instead.Sets the editor type of thisItemAttributeSearchDescriptor.- Parameters:
type- the editor type to set
-
setOperators
-
getOperators
- Specified by:
getOperatorsin interfaceSearchParameterDescriptor
-
getDefaultOperator
Description copied from interface:GenericSearchParameterDescriptorReturns the default operator for the property, which can be "equals", "contains", etc..- Specified by:
getDefaultOperatorin interfaceGenericSearchParameterDescriptor- Returns:
- the default operator for the underlying property
-
getDescription
Description copied from interface:PropertyDescriptorlocalized description- Specified by:
getDescriptionin interfacePropertyDescriptor- Returns:
- localized description
-
getEditorType
Description copied from interface:PropertyDescriptorThe general editor type.- Specified by:
getEditorTypein interfacePropertyDescriptor
-
getMultiplicity
Description copied from interface:PropertyDescriptorSpecifies which type of collection this editor should handle. Single valued editors usePropertyDescriptor.Multiplicity.SINGLEor null.- Specified by:
getMultiplicityin interfacePropertyDescriptor
-
getName
Description copied from interface:PropertyDescriptorlocalized name- Specified by:
getNamein interfacePropertyDescriptor- Returns:
- localized name
-
getOccurence
Description copied from interface:PropertyDescriptorTells if this property is mandatory, recommended or optional.- Specified by:
getOccurencein interfacePropertyDescriptor
-
getQualifier
Description copied from interface:PropertyDescriptorThe (globally!) unique property qualifier.- Specified by:
getQualifierin interfacePropertyDescriptor
-
isLocalized
public boolean isLocalized()Description copied from interface:PropertyDescriptorTells whether this property contains localized data.- Specified by:
isLocalizedin interfacePropertyDescriptor
-
getAttributeQualifier
Description copied from interface:GenericSearchParameterDescriptorReturns the attribute qualifier of the underlying property.- Specified by:
getAttributeQualifierin interfaceGenericSearchParameterDescriptor- Returns:
- the attribute qualifier
-
getAttributeDescriptors
-
getFirstAttributeDescriptor
-
getLastAttributeDescriptor
-
getName
- Specified by:
getNamein interfacePropertyDescriptor
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfacePropertyDescriptor
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfacePropertyDescriptor
-
equals
-
hashCode
public int hashCode() -
getSelectionOf
Description copied from interface:PropertyDescriptorqualifier of property descriptor that holds the "selectionOf"- Specified by:
getSelectionOfin interfacePropertyDescriptor- Returns:
- qualifier of property descriptor
-
ItemAttributePropertyDescriptor.setEditorType(String)should be used instead.