org.broadleafcommerce.cms.page.domain
Class PageImpl

java.lang.Object
  extended by org.broadleafcommerce.cms.page.domain.PageImpl
All Implemented Interfaces:
Serializable, Page, AdminMainEntity, Locatable

@Entity
public class PageImpl
extends Object
implements Page, AdminMainEntity, Locatable

Created by bpolster.

See Also:
Serialized Form

Nested Class Summary
static class PageImpl.Presentation
           
 
Field Summary
protected  AdminAuditable auditable
           
protected  String description
           
protected  String fullUrl
           
protected  Long id
           
protected  Boolean offlineFlag
           
protected  Map<String,PageField> pageFields
           
protected  PageTemplate pageTemplate
           
protected  Integer priority
           
protected  Set<PageItemCriteria> qualifyingItemCriteria
           
 
Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY
 
Constructor Summary
PageImpl()
           
 
Method Summary
 AdminAuditable getAuditable()
           
 String getDescription()
           
 String getFullUrl()
           
 Long getId()
           
 String getLocation()
           
 String getMainEntityName()
           
 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 setAuditable(AdminAuditable auditable)
           
 void setDescription(String description)
           
 void setFullUrl(String fullUrl)
           
 void setId(Long id)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

pageTemplate

protected PageTemplate pageTemplate

description

protected String description

fullUrl

protected String fullUrl

pageFields

protected Map<String,PageField> pageFields

priority

protected Integer priority

offlineFlag

protected Boolean offlineFlag

qualifyingItemCriteria

protected Set<PageItemCriteria> qualifyingItemCriteria

auditable

protected AdminAuditable auditable
Constructor Detail

PageImpl

public PageImpl()
Method Detail

getId

public Long getId()
Specified by:
getId in interface Page

setId

public void setId(Long id)
Specified by:
setId in interface Page

getPageTemplate

public PageTemplate getPageTemplate()
Specified by:
getPageTemplate in interface Page

setPageTemplate

public void setPageTemplate(PageTemplate pageTemplate)
Specified by:
setPageTemplate in interface Page

getPageFields

public Map<String,PageField> getPageFields()
Specified by:
getPageFields in interface Page

setPageFields

public void setPageFields(Map<String,PageField> pageFields)
Specified by:
setPageFields in interface Page

getFullUrl

public String getFullUrl()
Specified by:
getFullUrl in interface Page

setFullUrl

public void setFullUrl(String fullUrl)
Specified by:
setFullUrl in interface Page

getDescription

public String getDescription()
Specified by:
getDescription in interface Page

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface Page

getAuditable

public AdminAuditable getAuditable()
Specified by:
getAuditable in interface Page

setAuditable

public void setAuditable(AdminAuditable auditable)
Specified by:
setAuditable in interface Page

getOfflineFlag

public Boolean getOfflineFlag()
Description copied from interface: Page
Returns the offlineFlag. True indicates that the page should no longer appear on the site. The item will still appear within the content administration program but no longer be returned as part of the client facing APIs.

Specified by:
getOfflineFlag in interface Page
Returns:
true if this item is offline

setOfflineFlag

public void setOfflineFlag(Boolean offlineFlag)
Description copied from interface: Page
Sets the offline flag.

Specified by:
setOfflineFlag in interface Page

getPriority

public Integer getPriority()
Description copied from interface: Page
Gets the integer priority of this content item. Items with a lower priority should be displayed before items with a higher priority.

Specified by:
getPriority in interface Page
Returns:
the priority as a numeric value

setPriority

public void setPriority(Integer priority)
Description copied from interface: Page
Sets the display priority of this item. Lower priorities should be displayed first.

Specified by:
setPriority in interface Page

getPageMatchRules

public Map<String,PageRule> getPageMatchRules()
Description copied from interface: Page
Returns a map of the targeting rules associated with this page. Targeting rules are defined in the content mangagement system and used to enforce which page is returned to the client.

Specified by:
getPageMatchRules in interface Page
Returns:

setPageMatchRules

public void setPageMatchRules(Map<String,PageRule> pageMatchRules)
Description copied from interface: Page
Sets the targeting rules for this content item.

Specified by:
setPageMatchRules in interface Page

getQualifyingItemCriteria

public Set<PageItemCriteria> getQualifyingItemCriteria()
Description copied from interface: Page
Returns the item (or cart) based rules associated with this content item.

Specified by:
getQualifyingItemCriteria in interface Page
Returns:

setQualifyingItemCriteria

public void setQualifyingItemCriteria(Set<PageItemCriteria> qualifyingItemCriteria)
Description copied from interface: Page
Sets the item (e.g. cart) based rules associated with this content item.

Specified by:
setQualifyingItemCriteria in interface Page

getMainEntityName

public String getMainEntityName()
Specified by:
getMainEntityName in interface AdminMainEntity

getLocation

public String getLocation()
Specified by:
getLocation in interface Locatable


Copyright © 2013. All Rights Reserved.