Interface CMPerson
- All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity,BelowRootNavigation,CMHasContexts,CMLinkable,CMLocalized,CMObject,CMTeasable,com.coremedia.objectserver.beans.ContentBean,HasViewTypeName,Linkable,com.coremedia.blueprint.common.datevalidation.ValidityPeriod
CMPerson.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringName of the ContentType'CMPerson'.static final StringFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMHasContexts
CONTEXTSFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLinkable
EXTERNALLY_DISPLAYED_DATE, HTML_DESCRIPTION, HTML_TITLE, KEYWORDS, LINKED_SETTINGS, LOCAL_SETTINGS, LOCATION_TAXONOMY, RESOURCE_BUNDLES2, SEGMENT, SUBJECT_TAXONOMY, TITLE, VALID_FROM, VALID_TO, VIEWTYPEFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
LOCALE, MASTER, MASTER_VERSIONFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMTeasable
AUTHORS, DETAIL_TEXT, NOT_SEARCHABLE, PICTURES, RELATED, TEASER_OVERLAY_SETTINGS_STRUCT_NAME, TEASER_OVERLAY_SETTINGS_STYLE_SUB_STRUCT_NAME, TEASER_SETTINGS_STRUCT_NAME, TEASER_TEXT, TEASER_TITLEFields inherited from interface com.coremedia.objectserver.beans.ContentBean
METADATA_PROPERTIES_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since 1907.1; Implement optional features as extensions.Deprecated.since 1907.1; Implement optional features as extensions.@PersonalData StringReturns the value of the document propertyDISPLAY_NAME.@PersonalData StringgetEMail()Returns the value of the document propertyEMAIL.@PersonalData StringReturns the value of the document propertyFIRST_NAME.Returns the value of the document propertyMISCas nested map.Returns the value of the document propertyCMLinkable.HTML_TITLE.@PersonalData StringReturns the value of the document propertyJOB_TITLE.@PersonalData StringReturns the value of the document propertyLAST_NAME.Collection<? extends CMPerson>Returns theLocalespecific variants of thisCMLocalizedReturns the value of the document propertyCMLocalized.MASTER.@PersonalData com.coremedia.cap.struct.StructgetMisc()Returns the value of the document propertyMISC.@PersonalData StringReturns the value of the document propertyORGANIZATION.Returns the value of the document propertyCMTeasable.TEASER_TITLE.Returns the variants of thisCMLocalizedindexed by theirLocaleMethods inherited from interface com.coremedia.objectserver.dataviews.AssumesIdentity
assumeIdentityMethods inherited from interface com.coremedia.blueprint.common.contentbeans.BelowRootNavigation
getRootNavigationsMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLinkable
getContexts, getExternallyDisplayedDate, getHtmlDescription, getKeywords, getLinkedSettings, getLocalSettings, getLocationTaxonomy, getResourceBundles2, getSubjectTaxonomy, getTitle, getValidFrom, getValidTo, getViewtype, isOpenInNewTabMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
getCountry, getLang, getLocale, getMasterVersionMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMObject
getAspectsProvider, getContentId, getUuidMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMTeasable
fetchMediaWithRecursionDetection, getAuthors, getCallToActionSettings, getDetailText, getFirstMedia, getMedia, getPicture, getPictures, getRelated, getRelatedAll, getRelatedAllByType, getRelatedByReferrers, getRelatedBySimilarTaxonomies, getRelatedImplicitly, getRelatedImplicitlyByType, getTarget, getTeaserOverlaySettings, getTeaserOverlayStyle, getTeaserSettings, getTeaserText, getTextAsParagraphs, isNotSearchableMethods inherited from interface com.coremedia.objectserver.beans.ContentBean
getContent, getContentBeanFactoryMethods inherited from interface com.coremedia.blueprint.common.navigation.HasViewTypeName
getViewTypeNameMethods inherited from interface com.coremedia.blueprint.common.navigation.Linkable
getLocale, getSegment
-
Field Details
-
NAME
Name of the ContentType'CMPerson'.- See Also:
-
FIRST_NAME
- See Also:
-
LAST_NAME
- See Also:
-
DISPLAY_NAME
- See Also:
-
EMAIL
- See Also:
-
ORGANIZATION
- See Also:
-
JOB_TITLE
- See Also:
-
MISC
- See Also:
-
-
Method Details
-
getMaster
CMPerson getMaster()Returns the value of the document propertyCMLocalized.MASTER.- Specified by:
getMasterin interfaceCMHasContexts- Specified by:
getMasterin interfaceCMLinkable- Specified by:
getMasterin interfaceCMLocalized- Specified by:
getMasterin interfaceCMTeasable- Returns:
- a
CMPersonobject
-
getVariantsByLocale
Description copied from interface:CMLocalizedReturns the variants of thisCMLocalizedindexed by theirLocale- Specified by:
getVariantsByLocalein interfaceCMHasContexts- Specified by:
getVariantsByLocalein interfaceCMLinkable- Specified by:
getVariantsByLocalein interfaceCMLocalized- Specified by:
getVariantsByLocalein interfaceCMTeasable- Returns:
- the variants of this
CMLocalizedindexed by theirLocale
-
getLocalizations
Collection<? extends CMPerson> getLocalizations()Description copied from interface:CMLocalizedReturns the
Localespecific variants of thisCMLocalized- Usage:
Add elements for each variant excluding self (self is of type
Pagein this example).- Freemarker:
-
<#if (self.content.localizations)?has_content> <#assign localizations=self.content.localizations![] /> <#list localizations as localization> <#if localization.locale != self.content.locale> <link rel="alternate" ... /> </#if> </#list> </#if> - JSP:
-
<c:set var="locales" value="${self.content.localizations}"/> <c:if test="${not empty locales}"> <c:forEach var="localization" items="${locales}"> <c:if test="${localization.locale != self.content.locale}"> <cm:link var="localitationLink" target="${localization}"/> <link rel="alternate" ... /> </c:if> </c:forEach> </c:if>
- Specified by:
getLocalizationsin interfaceCMHasContexts- Specified by:
getLocalizationsin interfaceCMLinkable- Specified by:
getLocalizationsin interfaceCMLocalized- Specified by:
getLocalizationsin interfaceCMTeasable- Returns:
- the
Localespecific variants of thisCMLocalized
-
getAspectByName
@Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMPerson>> getAspectByName()Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObjectReturns a Map from aspectIDs to Aspects. AspectIDs consists of an aspectname with a prefix which identifies the plugin provider.
- Usage:
Access an aspect named osmPlugin.
- Freemarker:
-
<#assign osmSocialPlugin=self.aspectByName['osmPlugin'] /> - JSP:
-
<c:set var="osmSocialPlugin" value="${self.aspectByName['osmPlugin']}"/>
- Specified by:
getAspectByNamein interfaceCMHasContexts- Specified by:
getAspectByNamein interfaceCMLinkable- Specified by:
getAspectByNamein interfaceCMLocalized- Specified by:
getAspectByNamein interfaceCMObject- Specified by:
getAspectByNamein interfaceCMTeasable- Returns:
- a Map from aspectIDs to Aspects
-
getAspects
Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObjectReturns a list of all
Aspectfrom all available PlugIns that are registered to this contentbean.- Usage:
Add all aspects with view
asHead.- Freemarker:
-
<#list self.aspects as aspect> <@cm.include self=aspect view="asHeader"/> </#list> - JSP:
-
<c:forEach items="${self.aspects}" var="aspect"> <cm:include self="${aspect}" view="asHeader"/> </c:forEach>
- Specified by:
getAspectsin interfaceCMHasContexts- Specified by:
getAspectsin interfaceCMLinkable- Specified by:
getAspectsin interfaceCMLocalized- Specified by:
getAspectsin interfaceCMObject- Specified by:
getAspectsin interfaceCMTeasable- Returns:
- a list of Aspects
-
getHtmlTitle
String getHtmlTitle()Returns the value of the document property
CMLinkable.HTML_TITLE. If propertyCMLinkable.HTML_TITLEis empty, propertyDISPLAY_NAMEwill be used as fallback.- Specified by:
getHtmlTitlein interfaceCMLinkable- Returns:
- the value of the document property
CMLinkable.HTML_TITLEor propertyDISPLAY_NAMEas fallback
-
getFirstName
@PersonalData String getFirstName()Returns the value of the document property
FIRST_NAME.- Returns:
- the value of the document property
FIRST_NAME
-
getLastName
@PersonalData String getLastName()Returns the value of the document property
LAST_NAME.- Returns:
- the value of the document property
LAST_NAME
-
getDisplayName
@PersonalData String getDisplayName()Returns the value of the document property
DISPLAY_NAME.- Returns:
- the value of the document property
DISPLAY_NAME
-
getEMail
@PersonalData String getEMail()Returns the value of the document property
EMAIL.- Returns:
- the value of the document property
EMAIL
-
getOrganization
@PersonalData String getOrganization()Returns the value of the document property
ORGANIZATION.- Returns:
- the value of the document property
ORGANIZATION
-
getJobTitle
@PersonalData String getJobTitle()Returns the value of the document property
JOB_TITLE.- Returns:
- the value of the document property
JOB_TITLE
-
getMisc
@PersonalData com.coremedia.cap.struct.Struct getMisc()Returns the value of the document property
MISC.- Returns:
- the value of the document property
MISC
-
getFurtherDetails
Returns the value of the document property
MISCas nested map.- Returns:
- the value of the document property
MISCas map
-