@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 Pagepublic void setPageTemplate(PageTemplate pageTemplate)
setPageTemplate in interface Pagepublic Map<String,PageField> getPageFields()
getPageFields in interface Pagepublic void setPageFields(Map<String,PageField> pageFields)
setPageFields in interface Pagepublic String getFullUrl()
getFullUrl in interface Pagepublic void setFullUrl(String fullUrl)
setFullUrl in interface Pagepublic String getDescription()
getDescription in interface Pagepublic void setDescription(String description)
setDescription in interface Pagepublic Boolean getOfflineFlag()
PagegetOfflineFlag in interface Pagepublic void setOfflineFlag(Boolean offlineFlag)
PagesetOfflineFlag in interface Pagepublic Integer getPriority()
PagegetPriority in interface Pagepublic void setPriority(Integer priority)
PagesetPriority in interface Pagepublic Map<String,PageRule> getPageMatchRules()
PagegetPageMatchRules in interface Pagepublic void setPageMatchRules(Map<String,PageRule> pageMatchRules)
PagesetPageMatchRules in interface Pagepublic Set<PageItemCriteria> getQualifyingItemCriteria()
PagegetQualifyingItemCriteria in interface Pagepublic void setQualifyingItemCriteria(Set<PageItemCriteria> qualifyingItemCriteria)
PagesetQualifyingItemCriteria in interface Pagepublic boolean getExcludeFromSiteMap()
PagegetExcludeFromSiteMap in interface Pagepublic void setExcludeFromSiteMap(boolean excludeFromSiteMap)
PagesetExcludeFromSiteMap in interface Pagepublic <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 AdminMainEntitypublic String getLocation()
LocatablegetLocation in interface Locatablepublic Map<String,PageAttribute> getAdditionalAttributes()
getAdditionalAttributes in interface Pagepublic void setAdditionalAttributes(Map<String,PageAttribute> additionalAttributes)
setAdditionalAttributes in interface Pagepublic Date getActiveStartDate()
getActiveStartDate in interface Pagepublic void setActiveStartDate(Date activeStartDate)
setActiveStartDate in interface Pagepublic Date getActiveEndDate()
getActiveEndDate in interface Pagepublic void setActiveEndDate(Date activeEndDate)
setActiveEndDate in interface Pagepublic String getMetaTitle()
getMetaTitle in interface Pagepublic void setMetaTitle(String metaTitle)
setMetaTitle in interface Pagepublic String getMetaDescription()
getMetaDescription in interface Pagepublic void setMetaDescription(String metaDescription)
setMetaDescription in interface PageCopyright © 2019. All rights reserved.