Class FieldGroupImpl
java.lang.Object
org.broadleafcommerce.cms.field.domain.FieldGroupImpl
- All Implemented Interfaces:
Serializable
,FieldGroup
,MultiTenantCloneable<FieldGroup>
,ProfileEntity
Created by bpolster.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<FieldDefinition>
protected List<StructuredContentFieldGroupXref>
protected Long
protected Boolean
protected Boolean
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends FieldGroup>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.getId()
getName()
void
setFieldDefinitions
(List<FieldDefinition> fieldDefinitions) void
setFieldGroupXrefs
(List<StructuredContentFieldGroupXref> fieldGroupXrefs) void
void
setInitCollapsedFlag
(Boolean initCollapsedFlag) void
setIsMasterFieldGroup
(Boolean isMasterFieldGroup) void
-
Field Details
-
id
-
name
-
initCollapsedFlag
-
fieldDefinitions
-
isMasterFieldGroup
-
fieldGroupXrefs
-
-
Constructor Details
-
FieldGroupImpl
public FieldGroupImpl()
-
-
Method Details
-
getFieldGroupXrefs
- Specified by:
getFieldGroupXrefs
in interfaceFieldGroup
-
setFieldGroupXrefs
- Specified by:
setFieldGroupXrefs
in interfaceFieldGroup
-
getId
- Specified by:
getId
in interfaceFieldGroup
-
setId
- Specified by:
setId
in interfaceFieldGroup
-
getName
- Specified by:
getName
in interfaceFieldGroup
-
setName
- Specified by:
setName
in interfaceFieldGroup
-
getInitCollapsedFlag
- Specified by:
getInitCollapsedFlag
in interfaceFieldGroup
-
setInitCollapsedFlag
- Specified by:
setInitCollapsedFlag
in interfaceFieldGroup
-
getFieldDefinitions
- Specified by:
getFieldDefinitions
in interfaceFieldGroup
-
setFieldDefinitions
- Specified by:
setFieldDefinitions
in interfaceFieldGroup
-
createOrRetrieveCopyInstance
public <G extends FieldGroup> 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<FieldGroup>
- 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
-
isMasterFieldGroup
- Specified by:
isMasterFieldGroup
in interfaceFieldGroup
-
setIsMasterFieldGroup
- Specified by:
setIsMasterFieldGroup
in interfaceFieldGroup
-