Interface StandardDocument.Standard

  • Enclosing class:
    StandardDocument

    @StableMinor(version="14.2",
                 sinceVersion="8.1")
    public static interface StandardDocument.Standard
    API that provides access to standard fields.
    Since:
    8.1.0
    Version:
    $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
    • Method Detail

      • setIntroductionImageFileId

        void setIntroductionImageFileId​(String introductionImageFileId)
        Sets the file identifier corresponding to the introduction image in this document.
        Parameters:
        introductionImageFileId - the introduction image file identifier to set.
        Since:
        8.1.0
        See Also:
        StandardDocumentType.StandardFields.INTRODUCTION_IMAGE_FILE_ID
      • setIntroductionImageHref

        void setIntroductionImageHref​(String introductionImageHref)
        Sets the href (absolute or relative to portal root) corresponding to the introduction image in this document.
        Parameters:
        introductionImageHref - the introduction image href value to set.
        Since:
        8.1.0
        See Also:
        StandardDocumentType.StandardFields.INTRODUCTION_IMAGE_HREF
      • getIntroductionImageHref

        String getIntroductionImageHref()
        Returns the href (absolute or relative to portal root) of the introduction image present in this document.
        Returns:
        the href (absolute or relative to portal root) of the introduction image present in this document.
        Since:
        8.1.0
        See Also:
        StandardDocumentType.StandardFields.INTRODUCTION_IMAGE_HREF
      • setLocale

        void setLocale​(String locale)
        Sets the locale.
        Parameters:
        locale - the locale.
        Since:
        8.1.0
      • getLocale

        String getLocale()
        Returns this document locale.
        Returns:
        this document locale.
        Since:
        8.1.0
      • setDefaultLocale

        void setDefaultLocale​(Boolean isDefault)
        Sets whether this document is the default document for missing locales.
        This means this document should be used when no other equivalent document exist for a given search or filter.
        Parameters:
        isDefault - whether this document is the default document for missing locales.
        Since:
        8.1.0
      • isDefaultLocale

        Boolean isDefaultLocale()
        Returns whether this document is the default document for missing locales.
        Returns:
        whether this document is the default document for missing locales.
        Since:
        8.1.0
        See Also:
        setDefaultLocale(Boolean)
      • addOtherLocales

        void addOtherLocales​(String... otherLocales)
        Adds other locales of this document. These are the other languages this document is also available in.
        Parameters:
        otherLocales - the other locales of this document.
        Since:
        8.1.0
      • addOtherLocales

        void addOtherLocales​(Collection<String> otherLocales)
        Adds other locales of this document. These are the other languages this document is also available in.
        Parameters:
        otherLocales - the other locales of this document.
        Since:
        8.1.0
      • getOtherLocales

        Collection<String> getOtherLocales()
        Returns the other locales of this document.
        Returns:
        the other locales of this document.
        Since:
        8.1.0
      • getTags

        List<StandardDocument.Standard.Tag> getTags()
        Returns the tag list present in this content locale.
        Returns:
        the tag list present in this content locale.
        Since:
        9.0.0
      • addTag

        StandardDocument.Standard.Tag addTag()
        Adds a tag in the tag list of this content locale and returns it.
        Returns:
        the created tag.
        Since:
        9.0.0
      • setPopularity

        void setPopularity​(Double popularity)
        Sets the popularity.
        Parameters:
        popularity - the popularity.
        Since:
        11.1.0
      • getPopularity

        Double getPopularity()
        Returns this document popularity.
        Returns:
        this document popularity.
        Since:
        11.1.0
      • setSourceId

        void setSourceId​(String sourceId)
        Sets the sourceId.
        Parameters:
        sourceId - the sourceId.
        Since:
        11.1.0
      • getSourceId

        String getSourceId()
        Returns this document sourceId.
        Returns:
        this document sourceId.
        Since:
        11.1.0
      • setSlug

        void setSlug​(String slug)
        Sets the slug.
        Parameters:
        slug -
        Since:
        14.2.0
      • getSlug

        String getSlug()
        Returns the slug in this document.
        Returns:
        the slug in this document.
        Since:
        14.2.0