Interface MediaItemComponentType

    • Method Detail

      • setAsAvailableContentType

        void setAsAvailableContentType​(MediaItemComponentDefinition mediaCompDef)
        Appends this media component as available content type among all webinitiatifs. This effectively checks the content type in the "Active content types" section of the Channel Configuration panel such that it will be available in the edit UI. This method is invoked automatically in the installComponent, such that newly deployed custom content types are available automatically.
        Parameters:
        mediaCompDef - The media item component definition to activate
      • setAsAvailableContentType

        void setAsAvailableContentType​(MediaItemComponentDefinition mediaCompDef,
                                       int webId,
                                       boolean available)
        Appends or removes this media component as available content type on the specified webinitiatif. This effectively checks or unchecks the content type in the "Active content types" section of the Channel Configuration panel on that webinitiatif.
        Parameters:
        mediaCompDef - The media item component definition to activate
        webId - The id of the website to enable to content type on
        available - If true, the contenttype is added as available, if false, it is removed