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:
java.io.Serializable
- Direct Known Subclasses:
AssistedServiceSessionRestrictionModel,CMSActionRestrictionModel,CMSCampaignRestrictionModel,CMSCartConfigurationRestrictionModel,CMSCatalogRestrictionModel,CMSCategoryRestrictionModel,CMSInverseRestrictionModel,CMSProductRestrictionModel,CMSSecurePortalRestrictionModel,CMSTimeRestrictionModel,CMSUiExperienceRestrictionModel,CMSUserGroupRestrictionModel,CMSUserRestrictionModel,CMSVendorRestrictionModel,CMSYmktCampaignRestrictionModel
public class AbstractRestrictionModel extends CMSItemModel
Generated model class for type AbstractRestriction first defined at extension cms2.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_RESTRICTIONSFORCOMPONENTSGenerated relation code constant for relationRestrictionsForComponentsdefining source attributecomponentsin extensioncms2.static java.lang.String_RESTRICTIONSFORPAGESGenerated relation code constant for relationRestrictionsForPagesdefining source attributepagesin extensioncms2.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCOMPONENTSGenerated constant - Attribute key ofAbstractRestriction.componentsattribute defined at extensioncms2.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofAbstractRestriction.descriptionattribute defined at extensioncms2.static java.lang.StringINVERSERESTRICTIONSGenerated constant - Attribute key ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.static java.lang.StringPAGESGenerated constant - Attribute key ofAbstractRestriction.pagesattribute defined at extensioncms2.static java.lang.StringTYPEGenerated constant - Attribute key ofAbstractRestriction.typeattribute defined at extensioncms2.static java.lang.StringTYPECODEGenerated constant - Attribute key ofAbstractRestriction.typeCodeattribute defined at extensioncms2.-
Fields inherited from class de.hybris.platform.cms2.model.contents.CMSItemModel
CATALOGVERSION, NAME, UID
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description AbstractRestrictionModel()Generated constructor - Default constructor for generic creation.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 parametersAbstractRestrictionModel(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 parametersAbstractRestrictionModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<AbstractCMSComponentModel>getComponents()Generated method - Getter of theAbstractRestriction.componentsattribute defined at extensioncms2.java.lang.StringgetDescription()Generated method - Getter of theAbstractRestriction.descriptiondynamic attribute defined at extensioncms2.java.util.Collection<CMSInverseRestrictionModel>getInverseRestrictions()Generated method - Getter of theAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.java.util.Collection<AbstractPageModel>getPages()Generated method - Getter of theAbstractRestriction.pagesattribute defined at extensioncms2.java.lang.StringgetType()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.StringgetType(java.util.Locale loc)Deprecated, for removal: This API element is subject to removal in a future version.java.lang.StringgetTypeCode()Deprecated, for removal: This API element is subject to removal in a future version.since 4.3voidsetComponents(java.util.Collection<AbstractCMSComponentModel> value)Generated method - Setter ofAbstractRestriction.componentsattribute defined at extensioncms2.voidsetInverseRestrictions(java.util.Collection<CMSInverseRestrictionModel> value)Generated method - Setter ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.voidsetPages(java.util.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, setCatalogVersion, setName, setUid
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods 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 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 relationRestrictionsForPagesdefining source attributepagesin extensioncms2.- See Also:
- Constant Field Values
-
_RESTRICTIONSFORCOMPONENTS
public static final java.lang.String _RESTRICTIONSFORCOMPONENTS
Generated relation code constant for relationRestrictionsForComponentsdefining source attributecomponentsin extensioncms2.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Generated constant - Attribute key ofAbstractRestriction.typeattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
TYPECODE
public static final java.lang.String TYPECODE
Generated constant - Attribute key ofAbstractRestriction.typeCodeattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofAbstractRestriction.descriptionattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
PAGES
public static final java.lang.String PAGES
Generated constant - Attribute key ofAbstractRestriction.pagesattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
COMPONENTS
public static final java.lang.String COMPONENTS
Generated constant - Attribute key ofAbstractRestriction.componentsattribute defined at extensioncms2.- See Also:
- Constant Field Values
-
INVERSERESTRICTIONS
public static final java.lang.String INVERSERESTRICTIONS
Generated constant - Attribute key ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.- 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 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, 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 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 Detail
-
getComponents
@Accessor(qualifier="components", type=GETTER) public java.util.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
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theAbstractRestriction.descriptiondynamic attribute defined at extensioncms2.- Returns:
- the description
-
getInverseRestrictions
@Accessor(qualifier="inverseRestrictions", type=GETTER) public java.util.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
@Accessor(qualifier="pages", type=GETTER) public java.util.Collection<AbstractPageModel> 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 java.lang.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 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 theAbstractRestriction.typeattribute defined at extensioncms2.- 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.3Generated method - Getter of theAbstractRestriction.typeCodeattribute defined at extensioncms2.- Returns:
- the typeCode
-
setComponents
@Accessor(qualifier="components", type=SETTER) public void setComponents(java.util.Collection<AbstractCMSComponentModel> value)
Generated method - Setter ofAbstractRestriction.componentsattribute defined at extensioncms2.- Parameters:
value- the components
-
setInverseRestrictions
@Accessor(qualifier="inverseRestrictions", type=SETTER) public void setInverseRestrictions(java.util.Collection<CMSInverseRestrictionModel> value)
Generated method - Setter ofAbstractRestriction.inverseRestrictionsattribute defined at extensioncms2.- Parameters:
value- the inverseRestrictions
-
setPages
@Accessor(qualifier="pages", type=SETTER) public void setPages(java.util.Collection<AbstractPageModel> value)
Generated method - Setter ofAbstractRestriction.pagesattribute defined at extensioncms2.- Parameters:
value- the pages
-
-