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 translatablevoid
setAbbreviation
(String abbreviation) Sets the abbreviationvoid
setEntityType
(FieldEntity entityType) Sets the entityTypevoid
setFriendlyName
(String friendlyName) The friendly name of the field, for use by admin or other UI.void
Sets the idvoid
setOverrideGeneratedPropertyName
(Boolean overrideGeneratedPropertyName) void
setPropertyName
(String propertyName) Sets the propertyNamevoid
setSearchConfigs
(List<SearchConfig> searchConfigs) Deprecated.void
setTranslatable
(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
-
-