@Entity public class PageImpl extends Object implements Page, AdminMainEntity, Locatable, ProfileEntity, PageAdminPresentation
PageAdminPresentation.GroupName, PageAdminPresentation.GroupOrder, PageAdminPresentation.TabName, PageAdminPresentation.TabOrder
Modifier and Type | Field and Description |
---|---|
protected Date |
activeEndDate |
protected Date |
activeStartDate |
protected Map<String,PageAttribute> |
additionalAttributes |
protected String |
description |
protected Boolean |
excludeFromSiteMap |
protected String |
fullUrl |
protected Long |
id |
protected String |
metaDescription |
protected String |
metaTitle |
protected Boolean |
offlineFlag |
protected Map<String,PageField> |
pageFields |
protected Map<String,PageRule> |
pageMatchRules
Deprecated.
|
protected PageTemplate |
pageTemplate |
protected Integer |
priority
Deprecated.
|
protected Set<PageItemCriteria> |
qualifyingItemCriteria
Deprecated.
|
MAIN_ENTITY_NAME_PROPERTY
Constructor and Description |
---|
PageImpl() |
Modifier and Type | Method and Description |
---|---|
<G extends Page> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context)
Clone this entity for the purpose of multiple tenancy.
|
Date |
getActiveEndDate() |
Date |
getActiveStartDate() |
Map<String,PageAttribute> |
getAdditionalAttributes() |
String |
getDescription() |
boolean |
getExcludeFromSiteMap()
Returns the excludeFromSiteMap flag.
|
String |
getFullUrl() |
Long |
getId() |
String |
getLocation()
If this is returning something that is non-null, this MUST return a String that starts with a slash
and does not end with a slash.
|
String |
getMainEntityName() |
String |
getMetaDescription() |
String |
getMetaTitle() |
Boolean |
getOfflineFlag()
Returns the offlineFlag.
|
Map<String,PageField> |
getPageFields() |
Map<String,PageRule> |
getPageMatchRules()
Returns a map of the targeting rules associated with this page.
|
PageTemplate |
getPageTemplate() |
Integer |
getPriority()
Gets the integer priority of this content item.
|
Set<PageItemCriteria> |
getQualifyingItemCriteria()
Returns the item (or cart) based rules associated with this content item.
|
void |
setActiveEndDate(Date activeEndDate) |
void |
setActiveStartDate(Date activeStartDate) |
void |
setAdditionalAttributes(Map<String,PageAttribute> additionalAttributes) |
void |
setDescription(String description) |
void |
setExcludeFromSiteMap(boolean excludeFromSiteMap)
Sets the excludeFromSiteMap flag.
|
void |
setFullUrl(String fullUrl) |
void |
setId(Long id) |
void |
setMetaDescription(String metaDescription) |
void |
setMetaTitle(String metaTitle) |
void |
setOfflineFlag(Boolean offlineFlag)
Sets the offline flag.
|
void |
setPageFields(Map<String,PageField> pageFields) |
void |
setPageMatchRules(Map<String,PageRule> pageMatchRules)
Sets the targeting rules for this content item.
|
void |
setPageTemplate(PageTemplate pageTemplate) |
void |
setPriority(Integer priority)
Sets the display priority of this item.
|
void |
setQualifyingItemCriteria(Set<PageItemCriteria> qualifyingItemCriteria)
Sets the item (e.g.
|
protected Long id
protected PageTemplate pageTemplate
protected String description
protected String fullUrl
@Deprecated protected Integer priority
protected Boolean offlineFlag
@Deprecated protected Map<String,PageRule> pageMatchRules
@Deprecated protected Set<PageItemCriteria> qualifyingItemCriteria
protected Boolean excludeFromSiteMap
protected Map<String,PageAttribute> additionalAttributes
protected Date activeStartDate
protected Date activeEndDate
protected String metaTitle
protected String metaDescription
public PageTemplate getPageTemplate()
getPageTemplate
in interface Page
public void setPageTemplate(PageTemplate pageTemplate)
setPageTemplate
in interface Page
public Map<String,PageField> getPageFields()
getPageFields
in interface Page
public void setPageFields(Map<String,PageField> pageFields)
setPageFields
in interface Page
public String getFullUrl()
getFullUrl
in interface Page
public void setFullUrl(String fullUrl)
setFullUrl
in interface Page
public String getDescription()
getDescription
in interface Page
public void setDescription(String description)
setDescription
in interface Page
public Boolean getOfflineFlag()
Page
getOfflineFlag
in interface Page
public void setOfflineFlag(Boolean offlineFlag)
Page
setOfflineFlag
in interface Page
public Integer getPriority()
Page
getPriority
in interface Page
public void setPriority(Integer priority)
Page
setPriority
in interface Page
public Map<String,PageRule> getPageMatchRules()
Page
getPageMatchRules
in interface Page
public void setPageMatchRules(Map<String,PageRule> pageMatchRules)
Page
setPageMatchRules
in interface Page
public Set<PageItemCriteria> getQualifyingItemCriteria()
Page
getQualifyingItemCriteria
in interface Page
public void setQualifyingItemCriteria(Set<PageItemCriteria> qualifyingItemCriteria)
Page
setQualifyingItemCriteria
in interface Page
public boolean getExcludeFromSiteMap()
Page
getExcludeFromSiteMap
in interface Page
public void setExcludeFromSiteMap(boolean excludeFromSiteMap)
Page
setExcludeFromSiteMap
in interface Page
public <G extends Page> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
MultiTenantCloneable
public CreateResponse<MyClass> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException {
CreateResponse<MyClass> createResponse = super.createOrRetrieveCopyInstance(context);
if (createResponse.isAlreadyPopulated()) {
return createResponse;
}
MyClass myClone = createResponse.getClone();
//copy extended field values on myClone here
return createResponse;
}
Support should also be added for @Embeddable classes that contribute fields (collections or basic) to a cloneable entity:
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;
}
createOrRetrieveCopyInstance
in interface MultiTenantCloneable<Page>
context
- a context object providing persistence and library functionality for copying entitiesCloneNotSupportedException
- if there's a problem detected with the cloning configurationpublic String getMainEntityName()
getMainEntityName
in interface AdminMainEntity
public String getLocation()
Locatable
getLocation
in interface Locatable
public Map<String,PageAttribute> getAdditionalAttributes()
getAdditionalAttributes
in interface Page
public void setAdditionalAttributes(Map<String,PageAttribute> additionalAttributes)
setAdditionalAttributes
in interface Page
public Date getActiveStartDate()
getActiveStartDate
in interface Page
public void setActiveStartDate(Date activeStartDate)
setActiveStartDate
in interface Page
public Date getActiveEndDate()
getActiveEndDate
in interface Page
public void setActiveEndDate(Date activeEndDate)
setActiveEndDate
in interface Page
public String getMetaTitle()
getMetaTitle
in interface Page
public void setMetaTitle(String metaTitle)
setMetaTitle
in interface Page
public String getMetaDescription()
getMetaDescription
in interface Page
public void setMetaDescription(String metaDescription)
setMetaDescription
in interface Page
Copyright © 2022. All rights reserved.