Class StructuredContentFieldXrefImpl
java.lang.Object
org.broadleafcommerce.cms.structure.domain.StructuredContentFieldXrefImpl
- All Implemented Interfaces:
Serializable,StructuredContentFieldXref,MultiTenantCloneable<StructuredContentFieldXref>,ProfileEntity
@Entity
public class StructuredContentFieldXrefImpl
extends Object
implements StructuredContentFieldXref, Serializable, ProfileEntity
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected Stringprotected StructuredContentprotected StructuredContentField -
Constructor Summary
ConstructorsConstructorDescriptionStructuredContentFieldXrefImpl(StructuredContent sc, StructuredContentField scField, String key) -
Method Summary
Modifier and TypeMethodDescription<G extends StructuredContentFieldXref>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.getId()getKey()voidvoidvoidvoid
-
Field Details
-
id
-
structuredContent
-
structuredContentField
-
key
-
-
Constructor Details
-
StructuredContentFieldXrefImpl
public StructuredContentFieldXrefImpl() -
StructuredContentFieldXrefImpl
public StructuredContentFieldXrefImpl(StructuredContent sc, StructuredContentField scField, String key)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceStructuredContentFieldXref
-
setId
- Specified by:
setIdin interfaceStructuredContentFieldXref
-
getStructuredContent
- Specified by:
getStructuredContentin interfaceStructuredContentFieldXref
-
setStructuredContent
- Specified by:
setStructuredContentin interfaceStructuredContentFieldXref
-
setStrucuturedContentField
- Specified by:
setStrucuturedContentFieldin interfaceStructuredContentFieldXref
-
getStructuredContentField
- Specified by:
getStructuredContentFieldin interfaceStructuredContentFieldXref
-
getKey
- Specified by:
getKeyin interfaceStructuredContentFieldXref
-
setKey
- Specified by:
setKeyin interfaceStructuredContentFieldXref
-
createOrRetrieveCopyInstance
public <G extends StructuredContentFieldXref> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException Description copied from interface:MultiTenantCloneableClone this entity for the purpose of multiple tenancy. Note, extending classes should follow this pattern:public CreateResponse<MyClass> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException { CreateResponse<MyClass> createResponse = super.createOrRetrieveCopyInstance(context); if (createResponse.isAlreadyPopulated()) { return createResponse; } MyClass myClone = createResponse.getClone();Support should also be added for @Embeddable classes that contribute fields (collections or basic) to a cloneable entity://copy extended field values on myClone here
return createResponse; }
public CreateResponse<G extends MyClass> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException { CreateResponsecreateResponse = context.createOrRetrieveCopyInstance(this); MyClass myClone = createResponse.getClone(); //copy extended field values on myClone here
return createResponse; }
- Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<StructuredContentFieldXref>- Parameters:
context- a context object providing persistence and library functionality for copying entities- Returns:
- the resulting copy container, possibly already persisted
- Throws:
CloneNotSupportedException- if there's a problem detected with the cloning configuration
-