Interface Field
- All Superinterfaces:
MultiTenantCloneable<Field>,Serializable
- All Known Implementing Classes:
FieldImpl
Represents a String-based mapping of entities and properties. This is used in various places,
including search facets and report fields.
- Author:
- Andre Azzolini (apazzolini)
-
Method Summary
Modifier and TypeMethodDescriptionGets the abbreviation of this Field.Gets the entityType of this FieldReturns the friendly name of the field, for use by admin or other UI.getId()Gets the idGets the propertyName of this Field.Returns the qualified name of this Field.Deprecated.Returns whether or not this field should be considered translatablevoidsetAbbreviation(String abbreviation) Sets the abbreviationvoidsetEntityType(FieldEntity entityType) Sets the entityTypevoidsetFriendlyName(String friendlyName) The friendly name of the field, for use by admin or other UI.voidSets the idvoidsetOverrideGeneratedPropertyName(Boolean overrideGeneratedPropertyName) voidsetPropertyName(String propertyName) Sets the propertyNamevoidsetSearchConfigs(List<SearchConfig> searchConfigs) Deprecated.voidsetTranslatable(Boolean translatable) Sets whether or not this field should be considered translatableMethods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId()Gets the id- Returns:
- the id
-
setId
Sets the id- Parameters:
id-
-
getFriendlyName
String getFriendlyName()Returns the friendly name of the field, for use by admin or other UI.- Returns:
-
setFriendlyName
The friendly name of the field, for use by admin or other UI.- Parameters:
friendlyName-
-
getEntityType
FieldEntity getEntityType()Gets the entityType of this Field- Returns:
- the entityType
-
setEntityType
Sets the entityType- Parameters:
entityType-
-
getPropertyName
String getPropertyName()Gets the propertyName of this Field. This would be something like "manufacturer" or "defaultSku.price" if the EntityType was "product"- Returns:
- the propertyName
-
setPropertyName
Sets the propertyName- Parameters:
propertyName-
-
getOverrideGeneratedPropertyName
Boolean getOverrideGeneratedPropertyName() -
setOverrideGeneratedPropertyName
-
getAbbreviation
String getAbbreviation()Gets the abbreviation of this Field. This will be used in URL query string parameters for sorting and filtering- Returns:
- the abbreviation
-
setAbbreviation
Sets the abbreviation- Parameters:
abbreviation-
-
getSearchConfigs
Deprecated.Gets the searchConfigs. Note that a concrete implementation or usage of this class is not available in the community version of Broadleaf Commerce.- Returns:
- the searchConfigs
-
setSearchConfigs
Deprecated.Sets the searchConfigs.- Parameters:
searchConfigs-
-
getQualifiedFieldName
String getQualifiedFieldName()Returns the qualified name of this Field. The default implementation returns the entityType joined with the properName by a "."- Returns:
- the qualifiedFieldName
-
getTranslatable
Boolean getTranslatable()Returns whether or not this field should be considered translatable- Returns:
- translatable
-
setTranslatable
Sets whether or not this field should be considered translatable- Parameters:
translatable-
-