@MappedSuperclass public abstract class AbstractContent<CA extends AbstractContentAttribute,CF extends AbstractContentFacet> extends HierarchialDomainObject implements PageIdentifier, Content<CA,CF>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractContent.BIT_MASKS |
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
bitmask |
protected String |
country |
protected Date |
created |
protected String |
displayName
Human readable String to represent the Content.
The name is unique for a language and locale but not in totality. |
protected Collection<CF> |
facets
We don't want to load all Content (disable this side or OR relation)
This is because, when content refers to Product, and the product fetches all
AbstractContent. |
protected Long |
id |
protected String |
language |
protected Date |
launchDate
For Search, ordering etc.
|
protected String |
metaData
JSON Object String, that can store many content level properties in one string.
|
protected String |
name
Unique (for a language/locale/variant & status) Name to refer to the record
Id is an Auto generated number used by the system,
but is difficult for the outside world to get a handle on it.
|
protected String |
pagePath
A page path that will be applied as a Prefix.
If null then the page name itself will be the path from the root context. |
protected Status |
status |
protected Date |
statusDate
The Date when the
status was updated, or would be changed (incase of a scheduled change) |
protected Date |
updated |
protected String |
variant |
ATTRIB_HIERARCHY_STARTS_LIKE, ATTRIB_PRODUCT_PARENT, parentIdROOT| Constructor and Description |
|---|
AbstractContent() |
AbstractContent(String name) |
| Modifier and Type | Method and Description |
|---|---|
AbstractContent |
clone() |
Integer |
getBitmask() |
String |
getCountry() |
Date |
getCreated()
Date when the flow state was created.
|
String |
getDisplayName()
Display Name
|
Collection<CF> |
getFacets() |
FlowStatus |
getFlowStatus()
Existing
FlowStatus |
Long |
getId() |
String |
getLanguage() |
Date |
getLaunchDate()
For Search, ordering etc.
|
Locale |
getLocale() |
String |
getMetaData()
JSON Object String, that can store many content level properties in one string.
|
String |
getName()
Unique Name to refer to the record
Id is an Auto generated number used by the system,
but is difficult for the outside world to get a handle on it.
|
String |
getPagePath()
A page path that will be applied as a Prefix.
If null then the page name itself will be the path from the root context. |
String |
getRegion() |
Status |
getStatus() |
Date |
getStatusDate()
The Date when the
status was updated, or would be changed (incase of a scheduled change) |
Date |
getUpdated()
Last Date when this was updated
|
String |
getVariant() |
boolean |
isBitOn(int mask)
Convenience method
|
String |
safeDisplayName()
Display Name
|
void |
setBitmask(Integer bitmask) |
void |
setCreated(Date created) |
void |
setDisplayName(String displayName)
Display Name
|
void |
setFacets(Collection<CF> facets) |
void |
setId(Long id) |
void |
setLaunchDate(Date launchDate)
For Search, ordering etc.
|
void |
setLocale(Locale locale) |
void |
setMetaData(String metaData)
JSON Object String, that can store many content level properties in one string.
|
void |
setName(String name)
Unique Name to refer to the record
Id is an Auto generated number used by the system,
but is difficult for the outside world to get a handle on it.
|
void |
setPagePath(String pagePath)
A page path that will be applied as a Prefix.
If null then the page name itself will be the path from the root context. |
void |
setStatus(Status status) |
void |
setStatusDate(Date statusDate)
The Date when the
status was updated, or would be changed (incase of a scheduled change) |
void |
setUpdated(Date updated)
Last Date when this was updated
|
equals, getHierarchy, getParentId, hashCode, setHierarchy, setParentId, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeNames, getAttributeValuegetAttributes, setAttributesgetAttributeValue, setAttributeprotected Long id
protected Integer bitmask
AbstractContent.BIT_MASKSprotected String name
protected String displayName
protected Date created
protected Date updated
protected String pagePath
protected String language
protected String country
protected String variant
protected Status status
protected Date statusDate
status was updated, or would be changed (incase of a scheduled change)@Type(value="DATE") protected Date launchDate
created, updated, statusDate are auto controlled by the system. This allows manual control of intended date of launch.@Type(value="INPUT") protected String metaData
protected Collection<CF extends AbstractContentFacet> facets
AbstractContent. Just Content will not contribute to much pay-load, but ContentFacet
then it will be a huge pay-load. Unnecessary in most situations.
public AbstractContent()
public AbstractContent(String name)
public Long getId()
getId in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>getId in interface IHierarchialReference<Long>getId in interface Identifiable<Long>public void setId(Long id)
setId in interface IHierarchialReference<Long>setId in interface Identifiable<Long>public Integer getBitmask()
getBitmask in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>AbstractContent.BIT_MASKSpublic void setBitmask(Integer bitmask)
setBitmask in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>AbstractContent.BIT_MASKSpublic void setDisplayName(String displayName)
setDisplayName in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>setDisplayName in class HierarchialDomainObjectgetName() will return namepublic String getDisplayName()
getDisplayName in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>getDisplayName in interface DisplayablegetDisplayName in class HierarchialDomainObjectpublic String safeDisplayName()
public String getName()
IHierarchialReferencegetName in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>getName in interface PageIdentifiergetName in interface IHierarchialReference<Long>public void setName(String name)
IHierarchialReferencesetName in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>setName in interface IHierarchialReference<Long>public Collection<CF> getFacets()
getFacets in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public void setFacets(Collection<CF> facets)
setFacets in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public Status getStatus()
getStatus in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>getStatus in interface PageIdentifierpublic void setStatus(Status status)
setStatus in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public Date getStatusDate()
status was updated, or would be changed (incase of a scheduled change)getStatusDate in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>getStatusDate in interface FlowStatepublic void setStatusDate(Date statusDate)
status was updated, or would be changed (incase of a scheduled change)setStatusDate in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public String getPagePath()
getPagePath in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>getPagePath in interface PageIdentifierpublic void setPagePath(String pagePath)
setPagePath in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public String getLanguage()
public String getCountry()
public String getRegion()
getCountry()public String getVariant()
public Locale getLocale()
getLocale in interface PageIdentifiergetLocale in interface Localizablepublic void setLocale(Locale locale)
setLocale in interface Localizablepublic AbstractContent clone() throws CloneNotSupportedException
clone in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>clone in class ObjectCloneNotSupportedExceptionpublic boolean isBitOn(int mask)
isBitOn in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>mask - public FlowStatus getFlowStatus()
FlowStateFlowStatusgetFlowStatus in interface FlowStatepublic Date getUpdated()
getUpdated in interface FlowStatepublic void setUpdated(Date updated)
setUpdated in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public Date getCreated()
FlowStategetCreated in interface FlowStatepublic void setCreated(Date created)
setCreated in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public Date getLaunchDate()
created, updated, statusDate are auto controlled by the system. This allows manual control of intended date of launch.getLaunchDate in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public void setLaunchDate(Date launchDate)
created, updated, statusDate are auto controlled by the system. This allows manual control of intended date of launch.setLaunchDate in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public String getMetaData()
getMetaData in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>public void setMetaData(String metaData)
setMetaData in interface Content<CA extends AbstractContentAttribute,CF extends AbstractContentFacet>Copyright © 2018. All rights reserved.