Class CMSBaseStoreTimeRestrictionModel

All Implemented Interfaces:
Serializable

public class CMSBaseStoreTimeRestrictionModel extends CMSTimeRestrictionModel
Generated model class for type CMSBaseStoreTimeRestriction first defined at extension cms2.

Extension of the CMSTimeRestriction to restrict for a specific set of BaseStores.

See Also:
  • Field Details

    • _TYPECODE

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

      public static final String PASSIFSTOREDOESNTMATCH
      Generated constant - Attribute key of CMSBaseStoreTimeRestriction.passIfStoreDoesntMatch attribute defined at extension cms2.
      See Also:
    • BASESTORES

      public static final String BASESTORES
      Generated constant - Attribute key of CMSBaseStoreTimeRestriction.baseStores attribute defined at extension cms2.
      See Also:
  • Constructor Details

    • CMSBaseStoreTimeRestrictionModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public CMSBaseStoreTimeRestrictionModel(Collection<BaseStoreModel> _baseStores, 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:
      _baseStores - initial attribute declared by type CMSBaseStoreTimeRestriction at extension cms2
      _catalogVersion - initial attribute declared by type CMSItem at extension cms2
      _uid - initial attribute declared by type CMSItem at extension cms2
    • CMSBaseStoreTimeRestrictionModel

      @Deprecated(since="4.1.1", forRemoval=true) public CMSBaseStoreTimeRestrictionModel(Collection<BaseStoreModel> _baseStores, 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:
      _baseStores - initial attribute declared by type CMSBaseStoreTimeRestriction at extension cms2
      _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

    • getBaseStores

      @Accessor(qualifier="baseStores", type=GETTER) public Collection<BaseStoreModel> getBaseStores()
      Generated method - Getter of the CMSBaseStoreTimeRestriction.baseStores attribute defined at extension cms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the baseStores
    • getPassIfStoreDoesntMatch

      @Accessor(qualifier="passIfStoreDoesntMatch", type=GETTER) public Boolean getPassIfStoreDoesntMatch()
      Generated method - Getter of the CMSBaseStoreTimeRestriction.passIfStoreDoesntMatch attribute defined at extension cms2.
      Returns:
      the passIfStoreDoesntMatch - If session store doesn't match store of the restriction then allow a pass
    • setBaseStores

      @Accessor(qualifier="baseStores", type=SETTER) public void setBaseStores(Collection<BaseStoreModel> value)
      Generated method - Setter of CMSBaseStoreTimeRestriction.baseStores attribute defined at extension cms2.
      Parameters:
      value - the baseStores
    • setPassIfStoreDoesntMatch

      @Accessor(qualifier="passIfStoreDoesntMatch", type=SETTER) public void setPassIfStoreDoesntMatch(Boolean value)
      Generated method - Setter of CMSBaseStoreTimeRestriction.passIfStoreDoesntMatch attribute defined at extension cms2.
      Parameters:
      value - the passIfStoreDoesntMatch - If session store doesn't match store of the restriction then allow a pass