Class CMSTimeRestrictionModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CMSBaseStoreTimeRestrictionModel

public class CMSTimeRestrictionModel extends AbstractRestrictionModel
Generated model class for type CMSTimeRestriction first defined at extension cms2.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • ACTIVEFROM

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

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

      public static final String USESTORETIMEZONE
      Generated constant - Attribute key of CMSTimeRestriction.useStoreTimeZone attribute defined at extension cms2.
      See Also:
  • Constructor Details

    • 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, 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, 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 Details

    • getActiveFrom

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

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

      @Accessor(qualifier="useStoreTimeZone", type=GETTER) public 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(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(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(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