Class AbstractMediaContainerComponentModel

    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • MEDIA

        public static final java.lang.String MEDIA
        Generated constant - Attribute key of AbstractMediaContainerComponent.media attribute defined at extension acceleratorcms.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractMediaContainerComponentModel

        public AbstractMediaContainerComponentModel()
        Generated constructor - Default constructor for generic creation.
      • AbstractMediaContainerComponentModel

        public AbstractMediaContainerComponentModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • AbstractMediaContainerComponentModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public AbstractMediaContainerComponentModel​(CatalogVersionModel _catalogVersion,
                                                    java.lang.String _uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _catalogVersion - initial attribute declared by type CMSItem at extension cms2
        _uid - initial attribute declared by type CMSItem at extension cms2
      • AbstractMediaContainerComponentModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public AbstractMediaContainerComponentModel​(CatalogVersionModel _catalogVersion,
                                                    ItemModel _owner,
                                                    java.lang.String _uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _catalogVersion - initial attribute declared by type CMSItem at extension cms2
        _owner - initial attribute declared by type Item at extension core
        _uid - initial attribute declared by type CMSItem at extension cms2
    • Method Detail

      • getMedia

        @Accessor(qualifier="media",
                  type=GETTER)
        public MediaContainerModel getMedia()
        Generated method - Getter of the AbstractMediaContainerComponent.media attribute defined at extension acceleratorcms.
        Returns:
        the media - It is a media container containing images for specific resolutions
      • getMedia

        @Accessor(qualifier="media",
                  type=GETTER)
        public MediaContainerModel getMedia​(java.util.Locale loc)
        Generated method - Getter of the AbstractMediaContainerComponent.media attribute defined at extension acceleratorcms.
        Parameters:
        loc - the value localization key
        Returns:
        the media - It is a media container containing images for specific resolutions
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setMedia

        @Accessor(qualifier="media",
                  type=SETTER)
        public void setMedia​(MediaContainerModel value)
        Generated method - Setter of AbstractMediaContainerComponent.media attribute defined at extension acceleratorcms.
        Parameters:
        value - the media - It is a media container containing images for specific resolutions
      • setMedia

        @Accessor(qualifier="media",
                  type=SETTER)
        public void setMedia​(MediaContainerModel value,
                             java.util.Locale loc)
        Generated method - Setter of AbstractMediaContainerComponent.media attribute defined at extension acceleratorcms.
        Parameters:
        value - the media - It is a media container containing images for specific resolutions
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language