Class AbstractRestrictionModel

    • Field Detail

      • _TYPECODE

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

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

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

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

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

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

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

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

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

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

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

      • getComponents

        @Accessor(qualifier="components",
                  type=GETTER)
        public java.util.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 java.lang.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 java.util.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

        @Accessor(qualifier="pages",
                  type=GETTER)
        public java.util.Collection<AbstractPageModel> 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 java.lang.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 java.lang.String getType​(java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getTypeCode

        @Deprecated(since="4.3",
                    forRemoval=true)
        @Accessor(qualifier="typeCode",
                  type=GETTER)
        public java.lang.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​(java.util.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​(java.util.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​(java.util.Collection<AbstractPageModel> value)
        Generated method - Setter of AbstractRestriction.pages attribute defined at extension cms2.
        Parameters:
        value - the pages