public class CustomerReviewModel extends ItemModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_REVIEWTOPRODUCTREL
Generated relation code constant for relation
ReviewToProductRel defining source attribute product in extension customerreview. |
static java.lang.String |
_REVIEWTOUSERREL
Generated relation code constant for relation
ReviewToUserRel defining source attribute user in extension customerreview. |
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
ALIAS
Generated constant - Attribute key of
CustomerReview.alias attribute defined at extension customerreview. |
static java.lang.String |
APPROVALSTATUS
Generated constant - Attribute key of
CustomerReview.approvalStatus attribute defined at extension customerreview. |
static java.lang.String |
BLOCKED
Generated constant - Attribute key of
CustomerReview.blocked attribute defined at extension customerreview. |
static java.lang.String |
COMMENT
Generated constant - Attribute key of
CustomerReview.comment attribute defined at extension customerreview. |
static java.lang.String |
HEADLINE
Generated constant - Attribute key of
CustomerReview.headline attribute defined at extension customerreview. |
static java.lang.String |
LANGUAGE
Generated constant - Attribute key of
CustomerReview.language attribute defined at extension customerreview. |
static java.lang.String |
PRODUCT
Generated constant - Attribute key of
CustomerReview.product attribute defined at extension customerreview. |
static java.lang.String |
RATING
Generated constant - Attribute key of
CustomerReview.rating attribute defined at extension customerreview. |
static java.lang.String |
USER
Generated constant - Attribute key of
CustomerReview.user attribute defined at extension customerreview. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
CustomerReviewModel()
Generated constructor - Default constructor for generic creation.
|
CustomerReviewModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
CustomerReviewModel(ItemModel _owner,
ProductModel _product,
java.lang.Double _rating,
UserModel _user)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
CustomerReviewModel(ProductModel _product,
java.lang.Double _rating,
UserModel _user)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlias()
Generated method - Getter of the
CustomerReview.alias attribute defined at extension customerreview. |
CustomerReviewApprovalType |
getApprovalStatus()
Generated method - Getter of the
CustomerReview.approvalStatus attribute defined at extension customerreview. |
java.lang.Boolean |
getBlocked()
Generated method - Getter of the
CustomerReview.blocked attribute defined at extension customerreview. |
java.lang.String |
getComment()
Generated method - Getter of the
CustomerReview.comment attribute defined at extension customerreview. |
java.lang.String |
getHeadline()
Generated method - Getter of the
CustomerReview.headline attribute defined at extension customerreview. |
LanguageModel |
getLanguage()
Generated method - Getter of the
CustomerReview.language attribute defined at extension customerreview. |
ProductModel |
getProduct()
Generated method - Getter of the
CustomerReview.product attribute defined at extension customerreview. |
java.lang.Double |
getRating()
Generated method - Getter of the
CustomerReview.rating attribute defined at extension customerreview. |
UserModel |
getUser()
Generated method - Getter of the
CustomerReview.user attribute defined at extension customerreview. |
void |
setAlias(java.lang.String value)
Generated method - Setter of
CustomerReview.alias attribute defined at extension customerreview. |
void |
setApprovalStatus(CustomerReviewApprovalType value)
Generated method - Setter of
CustomerReview.approvalStatus attribute defined at extension customerreview. |
void |
setBlocked(java.lang.Boolean value)
Generated method - Setter of
CustomerReview.blocked attribute defined at extension customerreview. |
void |
setComment(java.lang.String value)
Generated method - Setter of
CustomerReview.comment attribute defined at extension customerreview. |
void |
setHeadline(java.lang.String value)
Generated method - Setter of
CustomerReview.headline attribute defined at extension customerreview. |
void |
setLanguage(LanguageModel value)
Generated method - Setter of
CustomerReview.language attribute defined at extension customerreview. |
void |
setProduct(ProductModel value)
Generated method - Initial setter of
CustomerReview.product attribute defined at extension customerreview. |
void |
setRating(java.lang.Double value)
Generated method - Setter of
CustomerReview.rating attribute defined at extension customerreview. |
void |
setUser(UserModel value)
Generated method - Setter of
CustomerReview.user attribute defined at extension customerreview. |
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerequals, 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, writeReplacepublic static final java.lang.String _TYPECODE
public static final java.lang.String _REVIEWTOUSERREL
ReviewToUserRel defining source attribute user in extension customerreview.public static final java.lang.String _REVIEWTOPRODUCTREL
ReviewToProductRel defining source attribute product in extension customerreview.public static final java.lang.String HEADLINE
CustomerReview.headline attribute defined at extension customerreview.public static final java.lang.String COMMENT
CustomerReview.comment attribute defined at extension customerreview.public static final java.lang.String RATING
CustomerReview.rating attribute defined at extension customerreview.public static final java.lang.String BLOCKED
CustomerReview.blocked attribute defined at extension customerreview.public static final java.lang.String ALIAS
CustomerReview.alias attribute defined at extension customerreview.public static final java.lang.String APPROVALSTATUS
CustomerReview.approvalStatus attribute defined at extension customerreview.public static final java.lang.String LANGUAGE
CustomerReview.language attribute defined at extension customerreview.public static final java.lang.String USER
CustomerReview.user attribute defined at extension customerreview.public static final java.lang.String PRODUCT
CustomerReview.product attribute defined at extension customerreview.public CustomerReviewModel()
public CustomerReviewModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public CustomerReviewModel(ProductModel _product, java.lang.Double _rating, UserModel _user)
_product - initial attribute declared by type CustomerReview at extension customerreview_rating - initial attribute declared by type CustomerReview at extension customerreview_user - initial attribute declared by type CustomerReview at extension customerreview@Deprecated public CustomerReviewModel(ItemModel _owner, ProductModel _product, java.lang.Double _rating, UserModel _user)
_owner - initial attribute declared by type Item at extension core_product - initial attribute declared by type CustomerReview at extension customerreview_rating - initial attribute declared by type CustomerReview at extension customerreview_user - initial attribute declared by type CustomerReview at extension customerreview@Accessor(qualifier="alias", type=GETTER) public java.lang.String getAlias()
CustomerReview.alias attribute defined at extension customerreview.@Accessor(qualifier="approvalStatus", type=GETTER) public CustomerReviewApprovalType getApprovalStatus()
CustomerReview.approvalStatus attribute defined at extension customerreview.@Accessor(qualifier="blocked", type=GETTER) public java.lang.Boolean getBlocked()
CustomerReview.blocked attribute defined at extension customerreview.@Accessor(qualifier="comment", type=GETTER) public java.lang.String getComment()
CustomerReview.comment attribute defined at extension customerreview.@Accessor(qualifier="headline", type=GETTER) public java.lang.String getHeadline()
CustomerReview.headline attribute defined at extension customerreview.@Accessor(qualifier="language", type=GETTER) public LanguageModel getLanguage()
CustomerReview.language attribute defined at extension customerreview.@Accessor(qualifier="product", type=GETTER) public ProductModel getProduct()
CustomerReview.product attribute defined at extension customerreview.@Accessor(qualifier="rating", type=GETTER) public java.lang.Double getRating()
CustomerReview.rating attribute defined at extension customerreview.@Accessor(qualifier="user", type=GETTER) public UserModel getUser()
CustomerReview.user attribute defined at extension customerreview.@Accessor(qualifier="alias", type=SETTER) public void setAlias(java.lang.String value)
CustomerReview.alias attribute defined at extension customerreview.value - the alias - It holds the alias of the customer who wrote the review.@Accessor(qualifier="approvalStatus", type=SETTER) public void setApprovalStatus(CustomerReviewApprovalType value)
CustomerReview.approvalStatus attribute defined at extension customerreview.value - the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.@Accessor(qualifier="blocked", type=SETTER) public void setBlocked(java.lang.Boolean value)
CustomerReview.blocked attribute defined at extension customerreview.value - the blocked - This attribute can be set to true to indicate,
that the review should be blocked, eg when it is
offensive.@Accessor(qualifier="comment", type=SETTER) public void setComment(java.lang.String value)
CustomerReview.comment attribute defined at extension customerreview.value - the comment - Comment for the customer review@Accessor(qualifier="headline", type=SETTER) public void setHeadline(java.lang.String value)
CustomerReview.headline attribute defined at extension customerreview.value - the headline - Headline for the customer review@Accessor(qualifier="language", type=SETTER) public void setLanguage(LanguageModel value)
CustomerReview.language attribute defined at extension customerreview.value - the language - It holds the information about language that review was written with.@Accessor(qualifier="product", type=SETTER) public void setProduct(ProductModel value)
CustomerReview.product attribute defined at extension customerreview. Can only be used at creation of model - before first save.value - the product@Accessor(qualifier="rating", type=SETTER) public void setRating(java.lang.Double value)
CustomerReview.rating attribute defined at extension customerreview.value - the rating - The rating, between customerreview.minimalrating (lowest rating) and
customerreview.maximalrating (highest rating)Copyright © 2018 SAP SE. All Rights Reserved.