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.boolean
getId()
Returns the idgetName()
The namegetPage()
Returns thePage
getValue()
The valueint
hashCode()
void
Sets the idvoid
The namevoid
Sets thePage
void
The valuetoString()
-
Field Details
-
id
-
name
-
value
-
page
-
-
Constructor Details
-
PageAttributeImpl
public PageAttributeImpl()
-
-
Method Details
-
getId
Description copied from interface:PageAttribute
Returns the id- Specified by:
getId
in interfacePageAttribute
- Returns:
- the id
-
setId
Description copied from interface:PageAttribute
Sets the id- Specified by:
setId
in interfacePageAttribute
-
getValue
Description copied from interface:ValueAssignable
The value- Specified by:
getValue
in interfaceValueAssignable<String>
- Returns:
- The value
-
setValue
Description copied from interface:ValueAssignable
The value- Specified by:
setValue
in interfaceValueAssignable<String>
- Parameters:
value
- The value
-
getName
Description copied from interface:ValueAssignable
The name- Specified by:
getName
in interfaceValueAssignable<String>
- Returns:
- The name
-
setName
Description copied from interface:ValueAssignable
The name- Specified by:
setName
in interfaceValueAssignable<String>
- Parameters:
name
- The name
-
toString
-
getPage
Description copied from interface:PageAttribute
Returns thePage
- Specified by:
getPage
in interfacePageAttribute
- Returns:
- the Page
-
setPage
Description copied from interface:PageAttribute
Sets thePage
- Specified by:
setPage
in interfacePageAttribute
-
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends PageAttribute> 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<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
-