Interface StructuredContentField
- All Superinterfaces:
Cloneable
,MultiTenantCloneable<StructuredContentField>
,Serializable
- All Known Implementing Classes:
StructuredContentFieldImpl
public interface StructuredContentField
extends Serializable, Cloneable, MultiTenantCloneable<StructuredContentField>
Holds the values for custom fields that are part of a
Each item maintains a list of its custom fields. The fields associated with an item are determined by the
StructuredContent
item.
Each item maintains a list of its custom fields. The fields associated with an item are determined by the
FieldDefinition
s associated
with the StructuredContentType
.- Author:
- bpolster
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns the fieldKey associated with this field.getId()
Gets the primary key.getValue()
Sets the value of this custom field.void
setFieldKey
(String fieldKey) Sets the fieldKey.void
Sets the primary key.void
Returns the value for this custom field.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Gets the primary key.- Returns:
- the primary key
-
setId
Sets the primary key.- Parameters:
id
- the new primary key
-
getFieldKey
Returns the fieldKey associated with this field. The key used for aStructuredContentField
is determined by the associatedFieldDefinition
that was used by the Content Management System to create this instance.As an example, a
StructuredContentType
might be configured to contain a field definition with a key of "targetUrl".- Returns:
- the key associated with this item
- See Also:
-
setFieldKey
Sets the fieldKey.- Parameters:
fieldKey
-- See Also:
-
getValue
Sets the value of this custom field.- Returns:
-
setValue
Returns the value for this custom field.- Parameters:
value
-
-
clone
StructuredContentField clone()- Returns:
- a deep copy of this object. By default, clones the fieldKey and value fields and ignores the auditable and id fields.
-