Class SectionReferenceBuilder
java.lang.Object
ch.tocco.nice2.optional.cms.impl.form.reference.SectionReferenceBuilder
- All Implemented Interfaces:
ReferenceBuilder
@Component
@Order(-100)
public class SectionReferenceBuilder
extends Object
implements ReferenceBuilder
Builds the reference object for sections.
We display the full page URL, the name of the container and the position of the section
within the container. We also display the information whether the section is currently published.
If the target entity is a Widget, we additionally provide the label of the widget.
With all this information the user should be able to locate the origin of the reference.
-
Field Summary
Fields inherited from interface ch.tocco.nice2.dms.spi.reference.form.ReferenceBuilder
ENTITY_REFERENCE_BUILDER_ORDER
-
Constructor Summary
ConstructorDescriptionSectionReferenceBuilder
(ContentTreeService contentTreeService, CmsTemplateService cmsTemplateService, BusinessUnitManager businessUnitManager, TextResources textResources, Context context, L10N l10n, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(ContentReferenceSource referenceSource, Entity targetEntity)
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
-
Constructor Details
-
SectionReferenceBuilder
public SectionReferenceBuilder(ContentTreeService contentTreeService, CmsTemplateService cmsTemplateService, BusinessUnitManager businessUnitManager, TextResources textResources, Context context, L10N l10n, org.slf4j.Logger log)
-
-
Method Details
-
build
- Specified by:
build
in interfaceReferenceBuilder
-