Interface MediaContentType


  • public interface MediaContentType
    This interface represents a media content type and contains setters and getters for its properties.
    Author:
    ivol
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getId()
      Returns the internal id of the content type.
      String getValue()
      Returns the value of the content type, which is a external string identifier.
      boolean isActive()
      Returns if this content type is active.
      boolean isArticle()
      Returns if this content type is a subtype of the standard content type "Article".
      boolean isBundle()
      Returns if this content type is registered from a WCB.
      boolean isDownload()
      Returns if this content type is a subtype of the standard content type "Download".
      boolean isElementHolder()
      Returns if this content type specifies that the media item may contain elements.
      boolean isImage()
      Returns if this content type is a subtype of the standard content type "Image".
      boolean isMultimedia()
      Returns if this content type is a subtype of the standard content type "Multimedia".
      boolean isPage()
      Returns if this content type is a subtype of the standard content type "Page".
      void setId​(int id)
      Sets the internal id of the content type.
      void setIsActive​(boolean isActive)
      Specifies if this content type is active.
      void setIsBundle​(boolean isBundle)
      Specifies if this content type is registered from a WCB.
      void setIsElementHolder​(boolean hasElementHolder)
      Sets if this content type specifies that the media item may contain elements.
      void setValue​(String value)
      Sets the value of the content type, which is a external string identifier.
    • Method Detail

      • getId

        int getId()
        Returns the internal id of the content type.
        Returns:
        the internal id of the content type
      • setId

        void setId​(int id)
        Sets the internal id of the content type.
        Parameters:
        id - the internal id of the content type
      • getValue

        String getValue()
        Returns the value of the content type, which is a external string identifier.
        Returns:
        the value of the content type
      • setValue

        void setValue​(String value)
        Sets the value of the content type, which is a external string identifier.
        Parameters:
        value - the value of the content type
      • isElementHolder

        boolean isElementHolder()
        Returns if this content type specifies that the media item may contain elements.
        Returns:
        true if media item of this type may contain elements, false otherwise
      • setIsElementHolder

        void setIsElementHolder​(boolean hasElementHolder)
        Sets if this content type specifies that the media item may contain elements.
        Parameters:
        hasElementHolder - true to specify that the media item of this type may contain elements, false otherwise
      • isBundle

        boolean isBundle()
        Returns if this content type is registered from a WCB.
        Returns:
        true if this content type is registered from a WCB, false otherwise
      • setIsBundle

        void setIsBundle​(boolean isBundle)
        Specifies if this content type is registered from a WCB.
        Parameters:
        isBundle - boolean indicating if this content type is registered from a WCB or not
      • isActive

        boolean isActive()
        Returns if this content type is active. It is non-active when the conten type is registered from a WCB and that WCB is inactive.
        Returns:
        true if this content type is active, false otherwise
      • setIsActive

        void setIsActive​(boolean isActive)
        Specifies if this content type is active.
        Parameters:
        isActive - boolean indicating if this content type is active or not
      • isImage

        boolean isImage()
        Returns if this content type is a subtype of the standard content type "Image".
        Returns:
        true if this content type is a subtype of the content type "Image", false otherwise
      • isDownload

        boolean isDownload()
        Returns if this content type is a subtype of the standard content type "Download".
        Returns:
        true if this content type is a subtype of the content type "Download", false otherwise
      • isArticle

        boolean isArticle()
        Returns if this content type is a subtype of the standard content type "Article".
        Returns:
        true if this content type is a subtype of the content type "Article", false otherwise
      • isPage

        boolean isPage()
        Returns if this content type is a subtype of the standard content type "Page".
        Returns:
        true if this content type is a subtype of the content type "Page", false otherwise
        Since:
        10.31.0
      • isMultimedia

        boolean isMultimedia()
        Returns if this content type is a subtype of the standard content type "Multimedia".
        Returns:
        true if this content type is a subtype of the content type "Multimedia", false otherwise
        Since:
        10.31.0