Class StructuredContentFieldGroupXrefImpl
java.lang.Object
org.broadleafcommerce.cms.structure.domain.StructuredContentFieldGroupXrefImpl
- All Implemented Interfaces:
Serializable
,StructuredContentFieldGroupXref
,MultiTenantCloneable<StructuredContentFieldGroupXref>
@Entity
public class StructuredContentFieldGroupXrefImpl
extends Object
implements StructuredContentFieldGroupXref
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FieldGroup
protected Integer
protected Long
protected StructuredContentFieldTemplate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends StructuredContentFieldGroupXref>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.The order that this field group should have within this templatevoid
setFieldGroup
(FieldGroup fieldGroup) void
setGroupOrder
(Integer groupOrder) void
setTemplate
(StructuredContentFieldTemplate template)
-
Field Details
-
id
-
groupOrder
-
template
-
fieldGroup
-
-
Constructor Details
-
StructuredContentFieldGroupXrefImpl
public StructuredContentFieldGroupXrefImpl()
-
-
Method Details
-
getGroupOrder
Description copied from interface:StructuredContentFieldGroupXref
The order that this field group should have within this template- Specified by:
getGroupOrder
in interfaceStructuredContentFieldGroupXref
-
setGroupOrder
- Specified by:
setGroupOrder
in interfaceStructuredContentFieldGroupXref
-
getTemplate
- Specified by:
getTemplate
in interfaceStructuredContentFieldGroupXref
-
setTemplate
- Specified by:
setTemplate
in interfaceStructuredContentFieldGroupXref
-
getFieldGroup
- Specified by:
getFieldGroup
in interfaceStructuredContentFieldGroupXref
-
setFieldGroup
- Specified by:
setFieldGroup
in interfaceStructuredContentFieldGroupXref
-
createOrRetrieveCopyInstance
public <G extends StructuredContentFieldGroupXref> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException Description copied from interface:MultiTenantCloneable
Clone 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 { CreateResponse
createResponse = context.createOrRetrieveCopyInstance(this); MyClass myClone = createResponse.getClone(); //copy extended field values on myClone here
return createResponse; }
- Specified by:
createOrRetrieveCopyInstance
in interfaceMultiTenantCloneable<StructuredContentFieldGroupXref>
- 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
-