Interface PageMetaData

    • Method Detail

      • getReferencedContentItems

        @ReferField(stored=false,
                    indexed=true,
                    adapter=ContentReferenceFieldAdapter.class)
        ContentItem<?>[] getReferencedContentItems()
        Returns an array of content items that this page metadata instance refers to. This information is used to determine all referenced content items by all page metadata instances of a page version. Referenced content items are stored in the index field pageversion_pagemetadata_referencedcontentitems. This information is used by the Used in facet and widget, which keeps track of all references to a content item. The default implementation returns an empty array. Overrule this method to return any content item references created in the custom implementation of this page metadata.
        Returns:
        List of referred content items, or an empty array or null if no content item is referenced to by this page metadata instance.
      • getCustomMetadataRepresentation

        Map<String,​Object> getCustomMetadataRepresentation()
        Retrieve a map with a representation of the fields of this metadata object. The output will be used as input for setCustomMetadataRepresentation on another contentitem. The keys of the map should make sense in the corresponding setCustomMetadataRepresentation as well.
        Returns:
        a map with a representation of the fields of this metadata object
        Since:
        10.37.0
      • setCustomMetadataRepresentation

        void setCustomMetadataRepresentation​(Map<String,​Object> metadata)
        Process a map of metadata fields and set custom fields when the key of the field is recognized.
        Parameters:
        metadata - map of metadata fields retrieved from a getCustomMetadataRepresentation on another object
        Since:
        10.37.0