Class PageTemplateImpl
java.lang.Object
org.broadleafcommerce.cms.page.domain.PageTemplateImpl
- All Implemented Interfaces:
Serializable,PageTemplate,AdminMainEntity,MultiTenantCloneable<PageTemplate>,ProfileEntity
@Entity
public class PageTemplateImpl
extends Object
implements PageTemplate, AdminMainEntity, ProfileEntity
Created by bpolster.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<PageTemplateFieldGroupXref>protected Longprotected LocaleDeprecated.protected Stringprotected Stringprotected StringFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends PageTemplate>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.getId()voidsetFieldGroupXrefs(List<PageTemplateFieldGroupXref> fieldGroups) voidvoidvoidsetTemplateDescription(String templateDescription) voidsetTemplateName(String templateName) voidsetTemplatePath(String templatePath)
-
Field Details
-
id
-
templateName
-
templateDescription
-
templatePath
-
locale
Deprecated. -
fieldGroups
-
-
Constructor Details
-
PageTemplateImpl
public PageTemplateImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfacePageTemplate
-
setId
- Specified by:
setIdin interfacePageTemplate
-
getTemplateName
- Specified by:
getTemplateNamein interfacePageTemplate
-
setTemplateName
- Specified by:
setTemplateNamein interfacePageTemplate
-
getTemplateDescription
- Specified by:
getTemplateDescriptionin interfacePageTemplate
-
setTemplateDescription
- Specified by:
setTemplateDescriptionin interfacePageTemplate
-
getTemplatePath
- Specified by:
getTemplatePathin interfacePageTemplate
-
setTemplatePath
- Specified by:
setTemplatePathin interfacePageTemplate
-
getLocale
- Specified by:
getLocalein interfacePageTemplate- Returns:
-
setLocale
- Specified by:
setLocalein interfacePageTemplate
-
getFieldGroupXrefs
- Specified by:
getFieldGroupXrefsin interfacePageTemplate
-
setFieldGroupXrefs
- Specified by:
setFieldGroupXrefsin interfacePageTemplate
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceAdminMainEntity- Returns:
- the display name of this entity for the admin screen
-
createOrRetrieveCopyInstance
public <G extends PageTemplate> 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<PageTemplate>- 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
-