Class MediaItemComponentDefinitionImpl

    • Constructor Detail

      • MediaItemComponentDefinitionImpl

        public MediaItemComponentDefinitionImpl​(boolean isLicensed,
                                                Class<?> mediaClass)
        Creates a new MediaItemComponentDefinitionImpl instance.
        Parameters:
        isLicensed - Indicates whether the MediaComponent requires a license.
        mediaClass - The implementation class for the media item
    • Method Detail

      • setIsArticle

        public void setIsArticle​(boolean isArticle)
        Setter for is article indication. An article may contain elements.
        Parameters:
        isArticle - Indicates if this media type is of type article
      • isArticle

        public boolean isArticle()
        Description copied from interface: MediaItemComponentDefinition
        Return if the type is an article or not. Media types of the article type are considered to be element holders
        Specified by:
        isArticle in interface MediaItemComponentDefinition
        Returns:
        if the type is an article or not
      • setContentType

        public void setContentType​(String contentType)
        Setter for the content type.
        Parameters:
        contentType - The content type
      • setIcon

        public void setIcon​(String icon)
        Set the icon with which the content type is identified.
        Parameters:
        icon - Name of the icon to identify the content type with
      • getIcon

        public String getIcon()
        Description copied from interface: MediaItemComponentDefinition
        Return filename of the icon to use to display the content type in WebManager. This is for WM9 backwards-compatibility and is the fallback for the WM 10.0 small icon.
        Specified by:
        getIcon in interface MediaItemComponentDefinition
        Returns:
        the filename
      • setSmallIcon

        public void setSmallIcon​(String smallIcon)
        Sets the small icon.
        Parameters:
        smallIcon - the small icon to set
      • getSmallWmFileIcon

        public String getSmallWmFileIcon()
        Description copied from interface: MediaItemComponentDefinition
        Returns the small icon as the UUID of a wm:file node. This is added in R23 to support modular content types, in which case the icon is determined by the editor and uploaded to the JCR, instead of being available in the bundle jar as a static file.
        Specified by:
        getSmallWmFileIcon in interface MediaItemComponentDefinition
        Returns:
        The UUID of the wm:file node holding the small icon, or null if no such icon is available for this media item.
      • setSmallWmFileIcon

        public void setSmallWmFileIcon​(String smallIcon)
        Sets the small icon as the UUID of a wm:file node, needed for Modular Content Types in R23. If both smallIcon and smallFileResourceIcon are set, the smallFileResourceIcon takes precedence.
        Parameters:
        smallIcon - the small icon to set
      • setLargeIcon

        public void setLargeIcon​(String largeIcon)
        Sets the large icon.
        Parameters:
        largeIcon - the large icon to set
      • getLargeWmFileIcon

        public String getLargeWmFileIcon()
        Description copied from interface: MediaItemComponentDefinition
        Returns the large icon as the UUID of a wm:file node. This is added in R23 to support modular content types, in which case the icon is determined by the editor and uploaded to the JCR, instead of being available in the bundle jar as a static file.
        Specified by:
        getLargeWmFileIcon in interface MediaItemComponentDefinition
        Returns:
        The UUID of the wm:file node holding the large icon, or null if no such icon is available for this media item.
      • setLargeWmFileIcon

        public void setLargeWmFileIcon​(String largeIcon)
        Sets the large icon as the UUID of a wm:file node, needed for Modular Content Types in R23. If both largeIcon and largeFileResourceIcon are set, the largeFileResourceIcon takes precedence.
        Parameters:
        largeIcon - the large icon to set
      • setContentTypeLabelId

        public void setContentTypeLabelId​(String labelId)
        Sets the label id to be associated with the content type.
        Parameters:
        labelId - Label id to be associated with the content type