Class PageTemplateFieldGroupXrefImpl
java.lang.Object
org.broadleafcommerce.cms.page.domain.PageTemplateFieldGroupXrefImpl
- All Implemented Interfaces:
Serializable,PageTemplateFieldGroupXref,MultiTenantCloneable<PageTemplateFieldGroupXref>,ProfileEntity
@Entity
public class PageTemplateFieldGroupXrefImpl
extends Object
implements PageTemplateFieldGroupXref, ProfileEntity
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FieldGroupprotected BigDecimalprotected Longprotected PageTemplate -
Constructor Summary
ConstructorsConstructorDescriptionPageTemplateFieldGroupXrefImpl(PageTemplate pageTemplate, FieldGroup fieldGroup) -
Method Summary
Modifier and TypeMethodDescription<G extends PageTemplateFieldGroupXref>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.getId()voidsetFieldGroup(FieldGroup fieldGroup) voidsetGroupOrder(BigDecimal groupOrder) voidvoidsetPageTemplate(PageTemplate pageTemplate)
-
Field Details
-
id
-
pageTemplate
-
fieldGroup
-
groupOrder
-
-
Constructor Details
-
PageTemplateFieldGroupXrefImpl
public PageTemplateFieldGroupXrefImpl() -
PageTemplateFieldGroupXrefImpl
-
-
Method Details
-
getId
- Specified by:
getIdin interfacePageTemplateFieldGroupXref
-
setId
- Specified by:
setIdin interfacePageTemplateFieldGroupXref
-
getPageTemplate
- Specified by:
getPageTemplatein interfacePageTemplateFieldGroupXref
-
setPageTemplate
- Specified by:
setPageTemplatein interfacePageTemplateFieldGroupXref
-
getFieldGroup
- Specified by:
getFieldGroupin interfacePageTemplateFieldGroupXref
-
setFieldGroup
- Specified by:
setFieldGroupin interfacePageTemplateFieldGroupXref
-
getGroupOrder
- Specified by:
getGroupOrderin interfacePageTemplateFieldGroupXref
-
setGroupOrder
- Specified by:
setGroupOrderin interfacePageTemplateFieldGroupXref
-
createOrRetrieveCopyInstance
public <G extends PageTemplateFieldGroupXref> 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<PageTemplateFieldGroupXref>- 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
-