Class AbstractRestrictionModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AssistedServiceSessionRestrictionModel, CMSActionRestrictionModel, CMSCampaignRestrictionModel, CMSCartConfigurationRestrictionModel, CMSCatalogRestrictionModel, CMSCategoryRestrictionModel, CMSInverseRestrictionModel, CMSProductRestrictionModel, CMSSecurePortalRestrictionModel, CMSTimeRestrictionModel, CMSUiExperienceRestrictionModel, CMSUserGroupRestrictionModel, CMSUserRestrictionModel, CMSVendorRestrictionModel

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

    • _TYPECODE

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

      public static final String _RESTRICTIONSFORPAGES
      Generated relation code constant for relation RestrictionsForPages defining source attribute pages in extension cms2.
      See Also:
    • _RESTRICTIONSFORCOMPONENTS

      public static final String _RESTRICTIONSFORCOMPONENTS
      Generated relation code constant for relation RestrictionsForComponents defining source attribute components in extension cms2.
      See Also:
    • TYPE

      public static final String TYPE
      Generated constant - Attribute key of AbstractRestriction.type attribute defined at extension cms2.
      See Also:
    • TYPECODE

      public static final String TYPECODE
      Generated constant - Attribute key of AbstractRestriction.typeCode attribute defined at extension cms2.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of AbstractRestriction.description attribute defined at extension cms2.
      See Also:
    • PAGES

      public static final String PAGES
      Generated constant - Attribute key of AbstractRestriction.pages attribute defined at extension cms2.
      See Also:
    • COMPONENTS

      public static final String COMPONENTS
      Generated constant - Attribute key of AbstractRestriction.components attribute defined at extension cms2.
      See Also:
    • INVERSERESTRICTIONS

      public static final String INVERSERESTRICTIONS
      Generated constant - Attribute key of AbstractRestriction.inverseRestrictions attribute defined at extension cms2.
      See Also:
  • Constructor Details

    • AbstractRestrictionModel

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

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

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

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

    • getComponents

      @Accessor(qualifier="components", type=GETTER) public Collection<AbstractCMSComponentModel> getComponents()
      Generated method - Getter of the AbstractRestriction.components attribute defined at extension cms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the components
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the AbstractRestriction.description dynamic attribute defined at extension cms2.
      Returns:
      the description
    • getInverseRestrictions

      @Accessor(qualifier="inverseRestrictions", type=GETTER) public Collection<CMSInverseRestrictionModel> getInverseRestrictions()
      Generated method - Getter of the AbstractRestriction.inverseRestrictions attribute defined at extension cms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the inverseRestrictions
    • getPages

      Generated method - Getter of the AbstractRestriction.pages attribute defined at extension cms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the pages
    • getType

      @Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="type", type=GETTER) public String getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.3
      Generated method - Getter of the AbstractRestriction.type attribute defined at extension cms2.
      Returns:
      the type
    • getType

      @Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="type", type=GETTER) public String getType(Locale loc)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generated method - Getter of the AbstractRestriction.type attribute defined at extension cms2.
      Parameters:
      loc - the value localization key
      Returns:
      the type
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getTypeCode

      @Deprecated(since="4.3", forRemoval=true) @Accessor(qualifier="typeCode", type=GETTER) public String getTypeCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.3
      Generated method - Getter of the AbstractRestriction.typeCode attribute defined at extension cms2.
      Returns:
      the typeCode
    • setComponents

      @Accessor(qualifier="components", type=SETTER) public void setComponents(Collection<AbstractCMSComponentModel> value)
      Generated method - Setter of AbstractRestriction.components attribute defined at extension cms2.
      Parameters:
      value - the components
    • setInverseRestrictions

      @Accessor(qualifier="inverseRestrictions", type=SETTER) public void setInverseRestrictions(Collection<CMSInverseRestrictionModel> value)
      Generated method - Setter of AbstractRestriction.inverseRestrictions attribute defined at extension cms2.
      Parameters:
      value - the inverseRestrictions
    • setPages

      @Accessor(qualifier="pages", type=SETTER) public void setPages(Collection<AbstractPageModel> value)
      Generated method - Setter of AbstractRestriction.pages attribute defined at extension cms2.
      Parameters:
      value - the pages