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
_RESTRICTIONSFORCOMPONENTS
Generated relation code constant for relationRestrictionsForComponents
defining source attributecomponents
in extensioncms2
.static java.lang.String
_RESTRICTIONSFORPAGES
Generated relation code constant for relationRestrictionsForPages
defining source attributepages
in extensioncms2
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
COMPONENTS
Generated constant - Attribute key ofAbstractRestriction.components
attribute defined at extensioncms2
.static java.lang.String
DESCRIPTION
Generated constant - Attribute key ofAbstractRestriction.description
attribute defined at extensioncms2
.static java.lang.String
INVERSERESTRICTIONS
Generated constant - Attribute key ofAbstractRestriction.inverseRestrictions
attribute defined at extensioncms2
.static java.lang.String
PAGES
Generated constant - Attribute key ofAbstractRestriction.pages
attribute defined at extensioncms2
.static java.lang.String
TYPE
Generated constant - Attribute key ofAbstractRestriction.type
attribute defined at extensioncms2
.static java.lang.String
TYPECODE
Generated constant - Attribute key ofAbstractRestriction.typeCode
attribute 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.components
attribute defined at extensioncms2
.java.lang.String
getDescription()
Generated method - Getter of theAbstractRestriction.description
dynamic attribute defined at extensioncms2
.java.util.Collection<CMSInverseRestrictionModel>
getInverseRestrictions()
Generated method - Getter of theAbstractRestriction.inverseRestrictions
attribute defined at extensioncms2
.java.util.Collection<AbstractPageModel>
getPages()
Generated method - Getter of theAbstractRestriction.pages
attribute defined at extensioncms2
.java.lang.String
getType()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3java.lang.String
getType(java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.java.lang.String
getTypeCode()
Deprecated, for removal: This API element is subject to removal in a future version.since 4.3void
setComponents(java.util.Collection<AbstractCMSComponentModel> value)
Generated method - Setter ofAbstractRestriction.components
attribute defined at extensioncms2
.void
setInverseRestrictions(java.util.Collection<CMSInverseRestrictionModel> value)
Generated method - Setter ofAbstractRestriction.inverseRestrictions
attribute defined at extensioncms2
.void
setPages(java.util.Collection<AbstractPageModel> value)
Generated method - Setter ofAbstractRestriction.pages
attribute 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 relationRestrictionsForPages
defining source attributepages
in extensioncms2
.- See Also:
- Constant Field Values
-
_RESTRICTIONSFORCOMPONENTS
public static final java.lang.String _RESTRICTIONSFORCOMPONENTS
Generated relation code constant for relationRestrictionsForComponents
defining source attributecomponents
in extensioncms2
.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Generated constant - Attribute key ofAbstractRestriction.type
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
TYPECODE
public static final java.lang.String TYPECODE
Generated constant - Attribute key ofAbstractRestriction.typeCode
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofAbstractRestriction.description
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
PAGES
public static final java.lang.String PAGES
Generated constant - Attribute key ofAbstractRestriction.pages
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
COMPONENTS
public static final java.lang.String COMPONENTS
Generated constant - Attribute key ofAbstractRestriction.components
attribute defined at extensioncms2
.- See Also:
- Constant Field Values
-
INVERSERESTRICTIONS
public static final java.lang.String INVERSERESTRICTIONS
Generated constant - Attribute key ofAbstractRestriction.inverseRestrictions
attribute 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 typeCMSItem
at extensioncms2
_uid
- initial attribute declared by typeCMSItem
at 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 typeCMSItem
at extensioncms2
_owner
- initial attribute declared by typeItem
at extensioncore
_uid
- initial attribute declared by typeCMSItem
at extensioncms2
-
-
Method Detail
-
getComponents
@Accessor(qualifier="components", type=GETTER) public java.util.Collection<AbstractCMSComponentModel> getComponents()
Generated method - Getter of theAbstractRestriction.components
attribute 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.description
dynamic attribute defined at extensioncms2
.- Returns:
- the description
-
getInverseRestrictions
@Accessor(qualifier="inverseRestrictions", type=GETTER) public java.util.Collection<CMSInverseRestrictionModel> getInverseRestrictions()
Generated method - Getter of theAbstractRestriction.inverseRestrictions
attribute 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.pages
attribute 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.type
attribute 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.type
attribute 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.typeCode
attribute defined at extensioncms2
.- Returns:
- the typeCode
-
setComponents
@Accessor(qualifier="components", type=SETTER) public void setComponents(java.util.Collection<AbstractCMSComponentModel> value)
Generated method - Setter ofAbstractRestriction.components
attribute 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.inverseRestrictions
attribute 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.pages
attribute defined at extensioncms2
.- Parameters:
value
- the pages
-
-