Class CMSTimeRestrictionModel

    • Field Detail

      • _TYPECODE

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

        public static final java.lang.String ACTIVEFROM
        Generated constant - Attribute key of CMSTimeRestriction.activeFrom attribute defined at extension cms2.
        See Also:
        Constant Field Values
      • ACTIVEUNTIL

        public static final java.lang.String ACTIVEUNTIL
        Generated constant - Attribute key of CMSTimeRestriction.activeUntil attribute defined at extension cms2.
        See Also:
        Constant Field Values
      • USESTORETIMEZONE

        public static final java.lang.String USESTORETIMEZONE
        Generated constant - Attribute key of CMSTimeRestriction.useStoreTimeZone attribute defined at extension cms2.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CMSTimeRestrictionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public CMSTimeRestrictionModel​(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
      • CMSTimeRestrictionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public CMSTimeRestrictionModel​(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

      • getActiveFrom

        @Accessor(qualifier="activeFrom",
                  type=GETTER)
        public java.util.Date getActiveFrom()
        Generated method - Getter of the CMSTimeRestriction.activeFrom attribute defined at extension cms2.
        Returns:
        the activeFrom
      • getActiveUntil

        @Accessor(qualifier="activeUntil",
                  type=GETTER)
        public java.util.Date getActiveUntil()
        Generated method - Getter of the CMSTimeRestriction.activeUntil attribute defined at extension cms2.
        Returns:
        the activeUntil
      • getUseStoreTimeZone

        @Accessor(qualifier="useStoreTimeZone",
                  type=GETTER)
        public java.lang.Boolean getUseStoreTimeZone()
        Generated method - Getter of the CMSTimeRestriction.useStoreTimeZone attribute defined at extension cms2.
        Returns:
        the useStoreTimeZone - If true then use the dates relative to the store time zone
      • setActiveFrom

        @Accessor(qualifier="activeFrom",
                  type=SETTER)
        public void setActiveFrom​(java.util.Date value)
        Generated method - Setter of CMSTimeRestriction.activeFrom attribute defined at extension cms2.
        Parameters:
        value - the activeFrom
      • setActiveUntil

        @Accessor(qualifier="activeUntil",
                  type=SETTER)
        public void setActiveUntil​(java.util.Date value)
        Generated method - Setter of CMSTimeRestriction.activeUntil attribute defined at extension cms2.
        Parameters:
        value - the activeUntil
      • setUseStoreTimeZone

        @Accessor(qualifier="useStoreTimeZone",
                  type=SETTER)
        public void setUseStoreTimeZone​(java.lang.Boolean value)
        Generated method - Setter of CMSTimeRestriction.useStoreTimeZone attribute defined at extension cms2.
        Parameters:
        value - the useStoreTimeZone - If true then use the dates relative to the store time zone