Class PageAttributeImpl
java.lang.Object
org.broadleafcommerce.cms.page.domain.PageAttributeImpl
- All Implemented Interfaces:
Serializable,PageAttribute,MultiTenantCloneable<PageAttribute>,ProfileEntity,ValueAssignable<String>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends PageAttribute>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.booleangetId()Returns the idgetName()The namegetPage()Returns thePagegetValue()The valueinthashCode()voidSets the idvoidThe namevoidSets thePagevoidThe valuetoString()
-
Field Details
-
id
-
name
-
value
-
page
-
-
Constructor Details
-
PageAttributeImpl
public PageAttributeImpl()
-
-
Method Details
-
getId
Description copied from interface:PageAttributeReturns the id- Specified by:
getIdin interfacePageAttribute- Returns:
- the id
-
setId
Description copied from interface:PageAttributeSets the id- Specified by:
setIdin interfacePageAttribute
-
getValue
Description copied from interface:ValueAssignableThe value- Specified by:
getValuein interfaceValueAssignable<String>- Returns:
- The value
-
setValue
Description copied from interface:ValueAssignableThe value- Specified by:
setValuein interfaceValueAssignable<String>- Parameters:
value- The value
-
getName
Description copied from interface:ValueAssignableThe name- Specified by:
getNamein interfaceValueAssignable<String>- Returns:
- The name
-
setName
Description copied from interface:ValueAssignableThe name- Specified by:
setNamein interfaceValueAssignable<String>- Parameters:
name- The name
-
toString
-
getPage
Description copied from interface:PageAttributeReturns thePage- Specified by:
getPagein interfacePageAttribute- Returns:
- the Page
-
setPage
Description copied from interface:PageAttributeSets thePage- Specified by:
setPagein interfacePageAttribute
-
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends PageAttribute> 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<PageAttribute>- 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
-