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:
Serializable
Generated model class for type Component first defined at extension comments.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationCommentComponentRelationdefining source attributecommentin extensioncomments.static final StringGenerated relation code constant for relationDomainComponentRelationdefining source attributedomainin extensioncomments.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofComponent.availableCommentTypesattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComponent.codeattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComponent.commentattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComponent.createPermittedattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComponent.domainattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComponent.nameattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComponent.readPermittedattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComponent.removePermittedattribute defined at extensioncomments.static final StringGenerated 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, 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.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(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextComponentModel(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
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.since agesgetCode()Generated method - Getter of theComponent.codeattribute defined at extensioncomments.Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.getCreatePermitted(Locale loc) Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.Generated method - Getter of theComponent.domainattribute defined at extensioncomments.getName()Generated method - Getter of theComponent.nameattribute defined at extensioncomments.Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.getReadPermitted(Locale loc) Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.getRemovePermitted(Locale loc) Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.getWritePermitted(Locale loc) Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.voidGenerated method - Initial setter ofComponent.codeattribute defined at extensioncomments.voidGenerated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.voidsetCreatePermitted(Collection<PrincipalModel> value, Locale loc) Generated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.voidsetDomain(DomainModel value) Generated method - Initial setter ofComponent.domainattribute defined at extensioncomments.voidGenerated method - Setter ofComponent.nameattribute defined at extensioncomments.voidsetReadPermitted(Collection<PrincipalModel> value) Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.voidsetReadPermitted(Collection<PrincipalModel> value, Locale loc) Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.voidGenerated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.voidsetRemovePermitted(Collection<PrincipalModel> value, Locale loc) Generated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.voidGenerated method - Setter ofComponent.writePermittedattribute defined at extensioncomments.voidsetWritePermitted(Collection<PrincipalModel> value, 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, 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:
-
_DOMAINCOMPONENTRELATION
Generated relation code constant for relationDomainComponentRelationdefining source attributedomainin extensioncomments.- See Also:
-
_COMMENTCOMPONENTRELATION
Generated relation code constant for relationCommentComponentRelationdefining source attributecommentin extensioncomments.- See Also:
-
CODE
Generated constant - Attribute key ofComponent.codeattribute defined at extensioncomments.- See Also:
-
NAME
Generated constant - Attribute key ofComponent.nameattribute defined at extensioncomments.- See Also:
-
AVAILABLECOMMENTTYPES
Generated constant - Attribute key ofComponent.availableCommentTypesattribute defined at extensioncomments.- See Also:
-
DOMAIN
Generated constant - Attribute key ofComponent.domainattribute defined at extensioncomments.- See Also:
-
COMMENT
Generated constant - Attribute key ofComponent.commentattribute defined at extensioncomments.- See Also:
-
READPERMITTED
Generated constant - Attribute key ofComponent.readPermittedattribute defined at extensioncomments.- See Also:
-
WRITEPERMITTED
Generated constant - Attribute key ofComponent.writePermittedattribute defined at extensioncomments.- See Also:
-
CREATEPERMITTED
Generated constant - Attribute key ofComponent.createPermittedattribute defined at extensioncomments.- See Also:
-
REMOVEPERMITTED
Generated constant - Attribute key ofComponent.removePermittedattribute defined at extensioncomments.- See Also:
-
-
Constructor Details
-
ComponentModel
public ComponentModel()Generated constructor - Default constructor for generic creation. -
ComponentModel
public ComponentModel(de.hybris.platform.servicelayer.model.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, 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(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 Details
-
getAvailableCommentTypes
@Deprecated(since="ages", forRemoval=true) @Accessor(qualifier="availableCommentTypes", type=GETTER) public 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
Generated method - Getter of theComponent.codeattribute defined at extensioncomments.- Returns:
- the code - unique identifier of the component
-
getCreatePermitted
@Accessor(qualifier="createPermitted", type=GETTER) public Collection<PrincipalModel> getCreatePermitted()Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.- Returns:
- the createPermitted
-
getCreatePermitted
@Accessor(qualifier="createPermitted", type=GETTER) public Collection<PrincipalModel> getCreatePermitted(Locale loc) Generated method - Getter of theComponent.createPermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the createPermitted
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getDomain
Generated method - Getter of theComponent.domainattribute defined at extensioncomments.- Returns:
- the domain
-
getName
Generated method - Getter of theComponent.nameattribute defined at extensioncomments.- Returns:
- the name - Name of the component
-
getReadPermitted
@Accessor(qualifier="readPermitted", type=GETTER) public Collection<PrincipalModel> getReadPermitted()Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.- Returns:
- the readPermitted
-
getReadPermitted
@Accessor(qualifier="readPermitted", type=GETTER) public Collection<PrincipalModel> getReadPermitted(Locale loc) Generated method - Getter of theComponent.readPermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the readPermitted
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getRemovePermitted
@Accessor(qualifier="removePermitted", type=GETTER) public Collection<PrincipalModel> getRemovePermitted()Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.- Returns:
- the removePermitted
-
getRemovePermitted
@Accessor(qualifier="removePermitted", type=GETTER) public Collection<PrincipalModel> getRemovePermitted(Locale loc) Generated method - Getter of theComponent.removePermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the removePermitted
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getWritePermitted
@Accessor(qualifier="writePermitted", type=GETTER) public Collection<PrincipalModel> getWritePermitted()Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.- Returns:
- the writePermitted
-
getWritePermitted
@Accessor(qualifier="writePermitted", type=GETTER) public Collection<PrincipalModel> getWritePermitted(Locale loc) Generated method - Getter of theComponent.writePermittedattribute defined at extensioncomments.- Parameters:
loc- the value localization key- Returns:
- the writePermitted
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setCode
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(Collection<PrincipalModel> value) Generated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.- Parameters:
value- the createPermitted
-
setCreatePermitted
@Accessor(qualifier="createPermitted", type=SETTER) public void setCreatePermitted(Collection<PrincipalModel> value, Locale loc) Generated method - Setter ofComponent.createPermittedattribute defined at extensioncomments.- Parameters:
value- the createPermittedloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setDomain
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
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(Collection<PrincipalModel> value) Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.- Parameters:
value- the readPermitted
-
setReadPermitted
@Accessor(qualifier="readPermitted", type=SETTER) public void setReadPermitted(Collection<PrincipalModel> value, Locale loc) Generated method - Setter ofComponent.readPermittedattribute defined at extensioncomments.- Parameters:
value- the readPermittedloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setRemovePermitted
@Accessor(qualifier="removePermitted", type=SETTER) public void setRemovePermitted(Collection<PrincipalModel> value) Generated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.- Parameters:
value- the removePermitted
-
setRemovePermitted
@Accessor(qualifier="removePermitted", type=SETTER) public void setRemovePermitted(Collection<PrincipalModel> value, Locale loc) Generated method - Setter ofComponent.removePermittedattribute defined at extensioncomments.- Parameters:
value- the removePermittedloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setWritePermitted
@Accessor(qualifier="writePermitted", type=SETTER) public void setWritePermitted(Collection<PrincipalModel> value) Generated method - Setter ofComponent.writePermittedattribute defined at extensioncomments.- Parameters:
value- the writePermitted
-
setWritePermitted
@Accessor(qualifier="writePermitted", type=SETTER) public void setWritePermitted(Collection<PrincipalModel> value, Locale loc) Generated method - Setter ofComponent.writePermittedattribute defined at extensioncomments.- Parameters:
value- the writePermittedloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-