Class ComponentModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.comments.model.ComponentModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ComponentModel extends ItemModel
Generated model class for type Component first defined at extension comments.- 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_COMMENTCOMPONENTRELATIONGenerated relation code constant for relationCommentComponentRelationdefining source attributecommentin extensioncomments.static java.lang.String_DOMAINCOMPONENTRELATIONGenerated relation code constant for relationDomainComponentRelationdefining source attributedomainin extensioncomments.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringAVAILABLECOMMENTTYPESGenerated constant - Attribute key ofComponent.availableCommentTypesattribute defined at extensioncomments.static java.lang.StringCODEGenerated constant - Attribute key ofComponent.codeattribute defined at extensioncomments.static java.lang.StringCOMMENTGenerated constant - Attribute key ofComponent.commentattribute defined at extensioncomments.static java.lang.StringCREATEPERMITTEDGenerated constant - Attribute key ofComponent.createPermittedattribute defined at extensioncomments.static java.lang.StringDOMAINGenerated constant - Attribute key ofComponent.domainattribute defined at extensioncomments.static java.lang.StringNAMEGenerated constant - Attribute key ofComponent.nameattribute defined at extensioncomments.static java.lang.StringREADPERMITTEDGenerated constant - Attribute key ofComponent.readPermittedattribute defined at extensioncomments.static java.lang.StringREMOVEPERMITTEDGenerated constant - Attribute key ofComponent.removePermittedattribute defined at extensioncomments.static java.lang.StringWRITEPERMITTEDGenerated constant - Attribute key ofComponent.writePermittedattribute defined at extensioncomments.-
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 ComponentModel()Generated constructor - Default constructor for generic creation.ComponentModel(DomainModel _domain)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersComponentModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextComponentModel(java.lang.String _code, DomainModel _domain, ItemModel _owner)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
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<CommentTypeModel>getAvailableCommentTypes()Deprecated, for removal: This API element is subject to removal in a future version.since agesjava.lang.StringgetCode()Generated method - Getter of theComponent.codeattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getCreatePermitted()Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getCreatePermitted(java.util.Locale loc)Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.DomainModelgetDomain()Generated method - Getter of theComponent.domainattribute defined at extensioncomments.java.lang.StringgetName()Generated method - Getter of theComponent.nameattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getReadPermitted()Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getReadPermitted(java.util.Locale loc)Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getRemovePermitted()Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getRemovePermitted(java.util.Locale loc)Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getWritePermitted()Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.java.util.Collection<PrincipalModel>getWritePermitted(java.util.Locale loc)Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.voidsetCode(java.lang.String value)Generated method - Initial setter ofComponent.codeattribute defined at extensioncomments.voidsetCreatePermitted(java.util.Collection<PrincipalModel> value)Generated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.voidsetCreatePermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)Generated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.voidsetDomain(DomainModel value)Generated method - Initial setter ofComponent.domainattribute defined at extensioncomments.voidsetName(java.lang.String value)Generated method - Setter ofComponent.nameattribute defined at extensioncomments.voidsetReadPermitted(java.util.Collection<PrincipalModel> value)Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.voidsetReadPermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.voidsetRemovePermitted(java.util.Collection<PrincipalModel> value)Generated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.voidsetRemovePermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)Generated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.voidsetWritePermitted(java.util.Collection<PrincipalModel> value)Generated method - Setter ofComponent.writePermittedattribute defined at extensioncomments.voidsetWritePermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)Generated method - Setter ofComponent.writePermittedattribute defined at extensioncomments.-
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
-
_DOMAINCOMPONENTRELATION
public static final java.lang.String _DOMAINCOMPONENTRELATION
Generated relation code constant for relationDomainComponentRelationdefining source attributedomainin extensioncomments.- See Also:
- Constant Field Values
-
_COMMENTCOMPONENTRELATION
public static final java.lang.String _COMMENTCOMPONENTRELATION
Generated relation code constant for relationCommentComponentRelationdefining source attributecommentin extensioncomments.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofComponent.codeattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofComponent.nameattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
AVAILABLECOMMENTTYPES
public static final java.lang.String AVAILABLECOMMENTTYPES
Generated constant - Attribute key ofComponent.availableCommentTypesattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
DOMAIN
public static final java.lang.String DOMAIN
Generated constant - Attribute key ofComponent.domainattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
COMMENT
public static final java.lang.String COMMENT
Generated constant - Attribute key ofComponent.commentattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
READPERMITTED
public static final java.lang.String READPERMITTED
Generated constant - Attribute key ofComponent.readPermittedattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
WRITEPERMITTED
public static final java.lang.String WRITEPERMITTED
Generated constant - Attribute key ofComponent.writePermittedattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
CREATEPERMITTED
public static final java.lang.String CREATEPERMITTED
Generated constant - Attribute key ofComponent.createPermittedattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
REMOVEPERMITTED
public static final java.lang.String REMOVEPERMITTED
Generated constant - Attribute key ofComponent.removePermittedattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ComponentModel
public ComponentModel()
Generated constructor - Default constructor for generic creation.
-
ComponentModel
public ComponentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public ComponentModel(DomainModel _domain)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:
_domain- initial attribute declared by typeComponentat extensioncomments
-
ComponentModel
@Deprecated(since="4.1.1", forRemoval=true) public ComponentModel(java.lang.String _code, DomainModel _domain, ItemModel _owner)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:
_code- initial attribute declared by typeComponentat extensioncomments_domain- initial attribute declared by typeComponentat extensioncomments_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getAvailableCommentTypes
@Deprecated(since="ages", forRemoval=true) @Accessor(qualifier="availableCommentTypes", type=GETTER) public java.util.Collection<CommentTypeModel> getAvailableCommentTypes()Deprecated, for removal: This API element is subject to removal in a future version.since agesGenerated method - Getter of theComponent.availableCommentTypesattribute defined at extensioncomments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the availableCommentTypes
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theComponent.codeattribute defined at extensioncomments.- Returns:
- the code - unique identifier of the component
-
getCreatePermitted
@Accessor(qualifier="createPermitted", type=GETTER) public java.util.Collection<PrincipalModel> getCreatePermitted()
Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.- Returns:
- the createPermitted
-
getCreatePermitted
@Accessor(qualifier="createPermitted", type=GETTER) public java.util.Collection<PrincipalModel> getCreatePermitted(java.util.Locale loc)
Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the createPermitted
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getDomain
@Accessor(qualifier="domain", type=GETTER) public DomainModel getDomain()
Generated method - Getter of theComponent.domainattribute defined at extensioncomments.- Returns:
- the domain
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theComponent.nameattribute defined at extensioncomments.- Returns:
- the name - Name of the component
-
getReadPermitted
@Accessor(qualifier="readPermitted", type=GETTER) public java.util.Collection<PrincipalModel> getReadPermitted()
Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.- Returns:
- the readPermitted
-
getReadPermitted
@Accessor(qualifier="readPermitted", type=GETTER) public java.util.Collection<PrincipalModel> getReadPermitted(java.util.Locale loc)
Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the readPermitted
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getRemovePermitted
@Accessor(qualifier="removePermitted", type=GETTER) public java.util.Collection<PrincipalModel> getRemovePermitted()
Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.- Returns:
- the removePermitted
-
getRemovePermitted
@Accessor(qualifier="removePermitted", type=GETTER) public java.util.Collection<PrincipalModel> getRemovePermitted(java.util.Locale loc)
Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the removePermitted
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getWritePermitted
@Accessor(qualifier="writePermitted", type=GETTER) public java.util.Collection<PrincipalModel> getWritePermitted()
Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.- Returns:
- the writePermitted
-
getWritePermitted
@Accessor(qualifier="writePermitted", type=GETTER) public java.util.Collection<PrincipalModel> getWritePermitted(java.util.Locale loc)
Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the writePermitted
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Initial setter ofComponent.codeattribute defined at extensioncomments. Can only be used at creation of model - before first save.- Parameters:
value- the code - unique identifier of the component
-
setCreatePermitted
@Accessor(qualifier="createPermitted", type=SETTER) public void setCreatePermitted(java.util.Collection<PrincipalModel> value)
Generated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.- Parameters:
value- the createPermitted
-
setCreatePermitted
@Accessor(qualifier="createPermitted", type=SETTER) public void setCreatePermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)
Generated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.- Parameters:
value- the createPermittedloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setDomain
@Accessor(qualifier="domain", type=SETTER) public void setDomain(DomainModel value)
Generated method - Initial setter ofComponent.domainattribute defined at extensioncomments. Can only be used at creation of model - before first save.- Parameters:
value- the domain
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofComponent.nameattribute defined at extensioncomments.- Parameters:
value- the name - Name of the component
-
setReadPermitted
@Accessor(qualifier="readPermitted", type=SETTER) public void setReadPermitted(java.util.Collection<PrincipalModel> value)
Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.- Parameters:
value- the readPermitted
-
setReadPermitted
@Accessor(qualifier="readPermitted", type=SETTER) public void setReadPermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)
Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.- Parameters:
value- the readPermittedloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setRemovePermitted
@Accessor(qualifier="removePermitted", type=SETTER) public void setRemovePermitted(java.util.Collection<PrincipalModel> value)
Generated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.- Parameters:
value- the removePermitted
-
setRemovePermitted
@Accessor(qualifier="removePermitted", type=SETTER) public void setRemovePermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)
Generated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.- Parameters:
value- the removePermittedloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setWritePermitted
@Accessor(qualifier="writePermitted", type=SETTER) public void setWritePermitted(java.util.Collection<PrincipalModel> value)
Generated method - Setter ofComponent.writePermittedattribute defined at extensioncomments.- Parameters:
value- the writePermitted
-
setWritePermitted
@Accessor(qualifier="writePermitted", type=SETTER) public void setWritePermitted(java.util.Collection<PrincipalModel> value, java.util.Locale loc)
Generated method - Setter ofComponent.writePermittedattribute defined at extensioncomments.- Parameters:
value- the writePermittedloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
-