public class CustomerReviewModel extends ItemModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_REVIEWTOPRODUCTREL
Generated relation code constant for relation
ReviewToProductRel defining source attribute product in extension customerreview. |
static String |
_REVIEWTOUSERREL
Generated relation code constant for relation
ReviewToUserRel defining source attribute user in extension customerreview. |
static String |
_TYPECODE
Generated model type code constant.
|
static String |
ALIAS
Generated constant - Attribute key of
CustomerReview.alias attribute defined at extension customerreview. |
static String |
APPROVALSTATUS
Generated constant - Attribute key of
CustomerReview.approvalStatus attribute defined at extension customerreview. |
static String |
BLOCKED
Generated constant - Attribute key of
CustomerReview.blocked attribute defined at extension customerreview. |
static String |
COMMENT
Generated constant - Attribute key of
CustomerReview.comment attribute defined at extension customerreview. |
static String |
HEADLINE
Generated constant - Attribute key of
CustomerReview.headline attribute defined at extension customerreview. |
static String |
LANGUAGE
Generated constant - Attribute key of
CustomerReview.language attribute defined at extension customerreview. |
static String |
PRODUCT
Generated constant - Attribute key of
CustomerReview.product attribute defined at extension customerreview. |
static String |
RATING
Generated constant - Attribute key of
CustomerReview.rating attribute defined at extension customerreview. |
static String |
USER
Generated constant - Attribute key of
CustomerReview.user attribute defined at extension customerreview. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_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,
Double _rating,
UserModel _user)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
CustomerReviewModel(ProductModel _product,
Double _rating,
UserModel _user)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
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. |
Boolean |
getBlocked()
Generated method - Getter of the
CustomerReview.blocked attribute defined at extension customerreview. |
String |
getComment()
Generated method - Getter of the
CustomerReview.comment attribute defined at extension customerreview. |
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. |
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(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(Boolean value)
Generated method - Setter of
CustomerReview.blocked attribute defined at extension customerreview. |
void |
setComment(String value)
Generated method - Setter of
CustomerReview.comment attribute defined at extension customerreview. |
void |
setHeadline(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(Double value)
Generated method - Setter of
CustomerReview.rating attribute defined at extension customerreview. |
void |
setUser(UserModel value)
Generated method - Initial setter of
CustomerReview.user attribute defined at extension customerreview. |
getComments, getCreationtime, getModifiedtime, getOwner, 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 String _TYPECODE
public static final String _REVIEWTOUSERREL
ReviewToUserRel defining source attribute user in extension customerreview.public static final String _REVIEWTOPRODUCTREL
ReviewToProductRel defining source attribute product in extension customerreview.public static final String HEADLINE
CustomerReview.headline attribute defined at extension customerreview.public static final String COMMENT
CustomerReview.comment attribute defined at extension customerreview.public static final String RATING
CustomerReview.rating attribute defined at extension customerreview.public static final String BLOCKED
CustomerReview.blocked attribute defined at extension customerreview.public static final String ALIAS
CustomerReview.alias attribute defined at extension customerreview.public static final String APPROVALSTATUS
CustomerReview.approvalStatus attribute defined at extension customerreview.public static final String LANGUAGE
CustomerReview.language attribute defined at extension customerreview.public static final String USER
CustomerReview.user attribute defined at extension customerreview.public static final 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, 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, 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 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 Boolean getBlocked()
CustomerReview.blocked attribute defined at extension customerreview.@Accessor(qualifier="comment", type=GETTER) public String getComment()
CustomerReview.comment attribute defined at extension customerreview.@Accessor(qualifier="headline", type=GETTER) public 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 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(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(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(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(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(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 © 2017 SAP SE. All Rights Reserved.