Class AdvancedTag
java.lang.Object
com.broadleafcommerce.cartoperation.domain.AdvancedTag
- All Implemented Interfaces:
Serializable
A "tag" represents a unique purchasing attribute for a product such "new", "on sale",
"fairtrade", etc. Tags may also be configured as tags with a rich text message and some controls
for how or where they should be displayed on the storefront. By default, tags are facetable and
can be configured to be searchable.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
Return any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.getId()
A unique system identifier.getName()
A friendly identifier for the tag.Defines the position over a display component this tag should be displayed such as the "top-left" of a Product's image on a list or details page.Priority of this tag relative to other tags that may share the sameposition
ortype
.getType()
Defines the type of this tag such as "key feature" or "discount".int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.void
A unique system identifier.void
A friendly identifier for the tag.void
setPosition
(String position) Defines the position over a display component this tag should be displayed such as the "top-left" of a Product's image on a list or details page.void
setPriority
(Long priority) Priority of this tag relative to other tags that may share the sameposition
ortype
.void
Defines the type of this tag such as "key feature" or "discount".toString()
-
Constructor Details
-
AdvancedTag
public AdvancedTag()
-
-
Method Details
-
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name
- Name of the additional attributevalue
- Value of the additional attribute
-
getAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getId
A unique system identifier.- Returns:
- A unique system identifier.
-
getName
A friendly identifier for the tag.- Returns:
- A friendly identifier for the tag.
-
getPosition
Defines the position over a display component this tag should be displayed such as the "top-left" of a Product's image on a list or details page. If multiple tags have the same position, then their relative order on a product or theirpriority
will determine which is displayed.- Returns:
- The position over a component this tag should be displayed.
-
getType
Defines the type of this tag such as "key feature" or "discount". This allows categorizing tags to enhance user's ability to prioritize related tags such as only showing one "discount" tag even if a product has several.- Returns:
- The type of this tag such as "key feature" or "discount".
-
getPriority
Priority of this tag relative to other tags that may share the sameposition
ortype
. This provides a way to pick on tag over another when there is a conflict. This could be overridden in the context of a specific product depending on theProductTag.getSorting()
.- Returns:
- Priority of this tag relative to other tags that may share the same
position
ortype
.
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setId
A unique system identifier.- Parameters:
id
- A unique system identifier.
-
setName
A friendly identifier for the tag.- Parameters:
name
- A friendly identifier for the tag.
-
setPosition
Defines the position over a display component this tag should be displayed such as the "top-left" of a Product's image on a list or details page. If multiple tags have the same position, then their relative order on a product or theirpriority
will determine which is displayed.- Parameters:
position
- The position over a component this tag should be displayed.
-
setType
Defines the type of this tag such as "key feature" or "discount". This allows categorizing tags to enhance user's ability to prioritize related tags such as only showing one "discount" tag even if a product has several.- Parameters:
type
- The type of this tag such as "key feature" or "discount".
-
setPriority
Priority of this tag relative to other tags that may share the sameposition
ortype
. This provides a way to pick on tag over another when there is a conflict. This could be overridden in the context of a specific product depending on theProductTag.getSorting()
.- Parameters:
priority
- Priority of this tag relative to other tags that may share the sameposition
ortype
.
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-