Class AbstractRestrictionModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.cms2.model.contents.CMSItemModel
de.hybris.platform.cms2.model.restrictions.AbstractRestrictionModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AssistedServiceSessionRestrictionModel,CMSActionRestrictionModel,CMSCampaignRestrictionModel,CMSCartConfigurationRestrictionModel,CMSCatalogRestrictionModel,CMSCategoryRestrictionModel,CMSInverseRestrictionModel,CMSProductRestrictionModel,CMSSecurePortalRestrictionModel,CMSTimeRestrictionModel,CMSUiExperienceRestrictionModel,CMSUserGroupRestrictionModel,CMSUserRestrictionModel,CMSVendorRestrictionModel
Generated model class for type AbstractRestriction first defined at extension cms2.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationRestrictionsForComponentsdefining source attributecomponentsin extensioncms2.static final StringGenerated relation code constant for relationRestrictionsForPagesdefining source attributepagesin extensioncms2.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofAbstractRestriction.componentsattribute defined at extensioncms2.static final StringGenerated constant - Attribute key ofAbstractRestriction.descriptionattribute defined at extensioncms2.static final StringGenerated constant - Attribute key ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.static final StringGenerated constant - Attribute key ofAbstractRestriction.pagesattribute defined at extensioncms2.static final StringGenerated constant - Attribute key ofAbstractRestriction.typeattribute defined at extensioncms2.static final StringGenerated constant - Attribute key ofAbstractRestriction.typeCodeattribute defined at extensioncms2.Fields inherited from class de.hybris.platform.cms2.model.contents.CMSItemModel
CATALOGVERSION, NAME, SYNCHRONIZATIONBLOCKED, UIDFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.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 parametersAbstractRestrictionModel(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 parametersGenerated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theAbstractRestriction.componentsattribute defined at extensioncms2.Generated method - Getter of theAbstractRestriction.descriptiondynamic attribute defined at extensioncms2.Generated method - Getter of theAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.getPages()Generated method - Getter of theAbstractRestriction.pagesattribute defined at extensioncms2.getType()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since 4.3voidGenerated method - Setter ofAbstractRestriction.componentsattribute defined at extensioncms2.voidGenerated method - Setter ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.voidsetPages(Collection<AbstractPageModel> value) Generated method - Setter ofAbstractRestriction.pagesattribute defined at extensioncms2.Methods inherited from class de.hybris.platform.cms2.model.contents.CMSItemModel
getCatalogVersion, getName, getUid, isSynchronizationBlocked, setCatalogVersion, setName, setSynchronizationBlocked, setUidMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_RESTRICTIONSFORPAGES
Generated relation code constant for relationRestrictionsForPagesdefining source attributepagesin extensioncms2.- See Also:
-
_RESTRICTIONSFORCOMPONENTS
Generated relation code constant for relationRestrictionsForComponentsdefining source attributecomponentsin extensioncms2.- See Also:
-
TYPE
Generated constant - Attribute key ofAbstractRestriction.typeattribute defined at extensioncms2.- See Also:
-
TYPECODE
Generated constant - Attribute key ofAbstractRestriction.typeCodeattribute defined at extensioncms2.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofAbstractRestriction.descriptionattribute defined at extensioncms2.- See Also:
-
PAGES
Generated constant - Attribute key ofAbstractRestriction.pagesattribute defined at extensioncms2.- See Also:
-
COMPONENTS
Generated constant - Attribute key ofAbstractRestriction.componentsattribute defined at extensioncms2.- See Also:
-
INVERSERESTRICTIONS
Generated constant - Attribute key ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.- See Also:
-
-
Constructor Details
-
AbstractRestrictionModel
public AbstractRestrictionModel()Generated constructor - Default constructor for generic creation. -
AbstractRestrictionModel
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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_catalogVersion- initial attribute declared by typeCMSItemat extensioncms2_uid- initial attribute declared by typeCMSItemat extensioncms2
-
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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_catalogVersion- initial attribute declared by typeCMSItemat extensioncms2_owner- initial attribute declared by typeItemat extensioncore_uid- initial attribute declared by typeCMSItemat extensioncms2
-
-
Method Details
-
getComponents
@Accessor(qualifier="components", type=GETTER) public Collection<AbstractCMSComponentModel> getComponents()Generated method - Getter of theAbstractRestriction.componentsattribute defined at extensioncms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the components
-
getDescription
Generated method - Getter of theAbstractRestriction.descriptiondynamic attribute defined at extensioncms2.- Returns:
- the description
-
getInverseRestrictions
@Accessor(qualifier="inverseRestrictions", type=GETTER) public Collection<CMSInverseRestrictionModel> getInverseRestrictions()Generated method - Getter of theAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the inverseRestrictions
-
getPages
Generated method - Getter of theAbstractRestriction.pagesattribute defined at extensioncms2. 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.3Generated method - Getter of theAbstractRestriction.typeattribute defined at extensioncms2.- 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 theAbstractRestriction.typeattribute defined at extensioncms2.- 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.3Generated method - Getter of theAbstractRestriction.typeCodeattribute defined at extensioncms2.- Returns:
- the typeCode
-
setComponents
@Accessor(qualifier="components", type=SETTER) public void setComponents(Collection<AbstractCMSComponentModel> value) Generated method - Setter ofAbstractRestriction.componentsattribute defined at extensioncms2.- Parameters:
value- the components
-
setInverseRestrictions
@Accessor(qualifier="inverseRestrictions", type=SETTER) public void setInverseRestrictions(Collection<CMSInverseRestrictionModel> value) Generated method - Setter ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.- Parameters:
value- the inverseRestrictions
-
setPages
Generated method - Setter ofAbstractRestriction.pagesattribute defined at extensioncms2.- Parameters:
value- the pages
-