org.broadleafcommerce.cms.structure.domain
Class StructuredContentFieldImpl

java.lang.Object
  extended by org.broadleafcommerce.cms.structure.domain.StructuredContentFieldImpl
All Implemented Interfaces:
Serializable, StructuredContentField

@Entity
public class StructuredContentFieldImpl
extends Object
implements StructuredContentField

Created by bpolster.

See Also:
Serialized Form

Field Summary
protected  AdminAuditable auditable
           
protected  String fieldKey
           
protected  Long id
           
protected  String lobValue
           
protected  String stringValue
           
protected  StructuredContent structuredContent
           
 
Constructor Summary
StructuredContentFieldImpl()
           
 
Method Summary
 StructuredContentField cloneEntity()
          Builds a copy of this item.
 AdminAuditable getAuditable()
          Returns audit information for this content item.
 String getFieldKey()
          Returns the fieldKey associated with this field.
 Long getId()
          Gets the primary key.
 StructuredContent getStructuredContent()
          Returns the parent StructuredContent item to which this field belongs.
 String getValue()
          Sets the value of this custom field.
 void setAuditable(AdminAuditable auditable)
          Sets audit information for this content item.
 void setFieldKey(String fieldKey)
          Sets the fieldKey.
 void setId(Long id)
          Sets the primary key.
 void setStructuredContent(StructuredContent structuredContent)
          Sets the parent StructuredContent item.
 void setValue(String value)
          Returns the value for this custom field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

auditable

protected AdminAuditable auditable

fieldKey

protected String fieldKey

structuredContent

protected StructuredContent structuredContent

stringValue

protected String stringValue

lobValue

protected String lobValue
Constructor Detail

StructuredContentFieldImpl

public StructuredContentFieldImpl()
Method Detail

getId

public Long getId()
Description copied from interface: StructuredContentField
Gets the primary key.

Specified by:
getId in interface StructuredContentField
Returns:
the primary key

setId

public void setId(Long id)
Description copied from interface: StructuredContentField
Sets the primary key.

Specified by:
setId in interface StructuredContentField
Parameters:
id - the new primary key

getFieldKey

public String getFieldKey()
Description copied from interface: StructuredContentField
Returns the fieldKey associated with this field. The key used for a StructuredContentField is determined by the associated FieldDefinition 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".

Specified by:
getFieldKey in interface StructuredContentField
Returns:
the key associated with this item
See Also:
FieldDefinition

setFieldKey

public void setFieldKey(String fieldKey)
Description copied from interface: StructuredContentField
Sets the fieldKey.

Specified by:
setFieldKey in interface StructuredContentField
See Also:
FieldDefinition

getStructuredContent

public StructuredContent getStructuredContent()
Description copied from interface: StructuredContentField
Returns the parent StructuredContent item to which this field belongs.

Specified by:
getStructuredContent in interface StructuredContentField
Returns:

setStructuredContent

public void setStructuredContent(StructuredContent structuredContent)
Description copied from interface: StructuredContentField
Sets the parent StructuredContent item.

Specified by:
setStructuredContent in interface StructuredContentField

getValue

public String getValue()
Description copied from interface: StructuredContentField
Sets the value of this custom field.

Specified by:
getValue in interface StructuredContentField
Returns:

setValue

public void setValue(String value)
Description copied from interface: StructuredContentField
Returns the value for this custom field.

Specified by:
setValue in interface StructuredContentField

cloneEntity

public StructuredContentField cloneEntity()
Description copied from interface: StructuredContentField
Builds a copy of this item. Used by the content management system when an item is edited.

Specified by:
cloneEntity in interface StructuredContentField
Returns:
a copy of this item

getAuditable

public AdminAuditable getAuditable()
Description copied from interface: StructuredContentField
Returns audit information for this content item.

Specified by:
getAuditable in interface StructuredContentField
Returns:

setAuditable

public void setAuditable(AdminAuditable auditable)
Description copied from interface: StructuredContentField
Sets audit information for this content item. Default implementations automatically populate this data during persistence.

Specified by:
setAuditable in interface StructuredContentField


Copyright © 2013. All Rights Reserved.