public class PresentationContentSummaryElement extends AbstractFieldsPresentationElement
PresentationElement
to represent content summaries
in presentation layer.Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger
a common logger for all implementing classes
|
protected static String |
TO_STRING_FORMAT |
Constructor and Description |
---|
PresentationContentSummaryElement(ContentSummary pSummary,
int pPublicationID)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Map<String,PresentationElement> |
getAreas()
Deprecated.
Returns the areas in a
PresentationElement that represents
a group. |
PresentationArticle |
getContent()
Deprecated.
Returns the content item referenced by a
PresentationElement that represents
a summary. |
List<PresentationElement> |
getItems()
Deprecated.
Returns the summaries in a
PresentationElement that represents
an area. |
List<String> |
getKeys()
Deprecated.
Returns the names of the areas in a
PresentationElement that represents
a group. |
String |
getLabel()
Returns the label of the
PresentationElement if the
PresentationElement representas a group or area. |
Map<String,Object> |
getOptions()
Deprecated.
Returns a
Map of options for this PresentationElement . |
PresentationElement |
getParent()
Deprecated.
Returns the parent of this element.
|
protected PresentationArticle |
getPresentationArticle() |
PresentationLoader |
getPresentationLoader() |
protected int |
getPublicationId() |
String |
getType()
Deprecated.
Returns the type of the
PresentationElement . |
protected void |
handleOptions(Map<String,Object> pOptions,
MapPropertyDescriptor pOptionsPropertyDescriptor,
neo.xredsys.presentation.PresentationFieldTranslator<PropertyDescriptor> pTranslator) |
getFields, getObjectKey
protected static final String TO_STRING_FORMAT
protected transient org.apache.log4j.Logger mLogger
public PresentationContentSummaryElement(ContentSummary pSummary, int pPublicationID)
public PresentationArticle getContent()
PresentationElement
PresentationElement
that represents
a summary.getContent
in interface PresentationElement
public PresentationElement getParent()
PresentationElement
Teaser
, ListTeaser
: The parent is always an Area
Area
: The parent is always a Group
Group
: The parent is always either an Area
or null
when the group is a
root group.PresentationElement
may not follow this rule if it is not a part of the section
page.getParent
in interface PresentationElement
PresentationElement
. If this element has no parent, then null
is
returned.public List<PresentationElement> getItems()
PresentationElement
PresentationElement
that represents
an area. If this property has zero length then the PresentationElement
represents a group or a summary, not an area.public List<String> getKeys()
PresentationElement
PresentationElement
that represents
a group. The names are returned in the order they are defined in the
layout-group
resource. If this property has zero length then the
PresentationElement
represents an area or a summary, not a group.public Map<String,PresentationElement> getAreas()
PresentationElement
PresentationElement
that represents
a group. If this property has zero length then the PresentationElement
represents an area or a summary, not a group.public Map<String,Object> getOptions()
PresentationElement
Map
of options for this PresentationElement
.map
containing all options for this PresentationElement
. Will never be null
.public String getType()
PresentationElement
PresentationElement
. For a PresentationElement
representing a group or area, this will be the name of the group or area definition
on which it is based. Groups and areas are defined in the layout-group
resource
file. For a PresentationElement
representing a summary, no value is returned.getType
in interface PresentationElement
public String getLabel()
PresentationElement
PresentationElement
if the
PresentationElement
representas a group or area. If the element
represents a different object, null
will be returned.
This comes from the <ui:label/>
inside the XML
element of the layout-group
resource file. If no such XML
element has been defined, the name of the element capitalised
will be retuned.getLabel
in interface PresentationElement
protected final int getPublicationId()
public PresentationLoader getPresentationLoader()
protected PresentationArticle getPresentationArticle()
protected final void handleOptions(Map<String,Object> pOptions, MapPropertyDescriptor pOptionsPropertyDescriptor, neo.xredsys.presentation.PresentationFieldTranslator<PropertyDescriptor> pTranslator)
© 1998- 2018 Stibo DX