Interface CMFolderProperties
- All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity,CMLocalized,CMObject,com.coremedia.objectserver.beans.ContentBean
CMFolderProperties documents hold a list of contexts which is inherited by all resources under this document's folder. If most resources have the same contexts, this is more convenient than assigning the CMHasContexts.contexts property.
Represents document type CMFolderProperties.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the document property 'contexts'.static final StringName of the ContentType'CMFolderProperties'.Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
LOCALE, MASTER, MASTER_VERSIONFields inherited from interface com.coremedia.objectserver.beans.ContentBean
METADATA_PROPERTIES_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionMap<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMFolderProperties>> Deprecated.since 1907.1; Implement optional features as extensions.List<? extends com.coremedia.cae.aspect.Aspect<? extends CMFolderProperties>>Deprecated.since 1907.1; Implement optional features as extensions.Returns the contexts that documents in and below this folder should belong toMethods inherited from interface com.coremedia.objectserver.dataviews.AssumesIdentity
assumeIdentityMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
getCountry, getLang, getLocale, getLocalizations, getMaster, getMasterVersion, getVariantsByLocaleMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMObject
getAspectsProvider, getContentId, getUuidMethods inherited from interface com.coremedia.objectserver.beans.ContentBean
getContent, getContentBeanFactory
-
Field Details
-
NAME
Name of the ContentType'CMFolderProperties'.- See Also:
-
CONTEXTS
Name of the document property 'contexts'.- See Also:
-
-
Method Details
-
getAspectByName
@Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMFolderProperties>> 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 interfaceCMLocalized- Specified by:
getAspectByNamein interfaceCMObject- Returns:
- a Map from aspectIDs to Aspects
-
getAspects
@Deprecated List<? extends com.coremedia.cae.aspect.Aspect<? extends CMFolderProperties>> 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 interfaceCMLocalized- Specified by:
getAspectsin interfaceCMObject- Returns:
- a list of Aspects
-
getContexts
Returns the contexts that documents in and below this folder should belong to- Returns:
- a list of
CMContextobjects
-