public abstract class GeneratedCustomerReviewManager extends Extension
CustomerReviewManager.Extension.RestrictedLanguagesProvider, Extension.RightsProviderManager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Map<String,Item.AttributeMode>> |
DEFAULT_INITIAL_ATTRIBUTES |
protected static OneToManyHandler<CustomerReview> |
REVIEWTOPRODUCTRELPRODUCTREVIEWSHANDLER
OneToManyHandler for handling 1:n PRODUCTREVIEWS's relation attributes from 'many' side. |
protected static OneToManyHandler<CustomerReview> |
REVIEWTOUSERRELCUSTOMERREVIEWSHANDLER
OneToManyHandler for handling 1:n CUSTOMERREVIEWS's relation attributes from 'many' side. |
| Constructor and Description |
|---|
GeneratedCustomerReviewManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToCustomerReviews(SessionContext ctx,
User item,
CustomerReview value)
Generated method - Adds
value to customerReviews. |
protected void |
addToCustomerReviews(User item,
CustomerReview value)
Generated method - Adds
value to customerReviews. |
void |
addToProductReviews(Product item,
CustomerReview value)
Generated method - Adds
value to productReviews. |
void |
addToProductReviews(SessionContext ctx,
Product item,
CustomerReview value)
Generated method - Adds
value to productReviews. |
CustomerReview |
createCustomerReview(Map attributeValues) |
CustomerReview |
createCustomerReview(SessionContext ctx,
Map attributeValues) |
Double |
getAverageRating(Product item)
Generated method - Getter of the
Product.averageRating attribute. |
abstract Double |
getAverageRating(SessionContext ctx,
Product item)
Generated method - Getter of the
Product.averageRating attribute. |
double |
getAverageRatingAsPrimitive(Product item)
Generated method - Getter of the
Product.averageRating attribute. |
double |
getAverageRatingAsPrimitive(SessionContext ctx,
Product item)
Generated method - Getter of the
Product.averageRating attribute. |
Collection<CustomerReview> |
getCustomerReviews(SessionContext ctx,
User item)
Generated method - Getter of the
User.customerReviews attribute. |
Collection<CustomerReview> |
getCustomerReviews(User item)
Generated method - Getter of the
User.customerReviews attribute. |
Map<String,Item.AttributeMode> |
getDefaultAttributeModes(Class<? extends Item> itemClass) |
String |
getName() |
Integer |
getNumberOfReviews(Product item)
Generated method - Getter of the
Product.numberOfReviews attribute. |
abstract Integer |
getNumberOfReviews(SessionContext ctx,
Product item)
Generated method - Getter of the
Product.numberOfReviews attribute. |
int |
getNumberOfReviewsAsPrimitive(Product item)
Generated method - Getter of the
Product.numberOfReviews attribute. |
int |
getNumberOfReviewsAsPrimitive(SessionContext ctx,
Product item)
Generated method - Getter of the
Product.numberOfReviews attribute. |
Collection<CustomerReview> |
getProductReviews(Product item)
Generated method - Getter of the
Product.productReviews attribute. |
Collection<CustomerReview> |
getProductReviews(SessionContext ctx,
Product item)
Generated method - Getter of the
Product.productReviews attribute. |
protected void |
removeFromCustomerReviews(SessionContext ctx,
User item,
CustomerReview value)
Generated method - Removes
value from customerReviews. |
protected void |
removeFromCustomerReviews(User item,
CustomerReview value)
Generated method - Removes
value from customerReviews. |
void |
removeFromProductReviews(Product item,
CustomerReview value)
Generated method - Removes
value from productReviews. |
void |
removeFromProductReviews(SessionContext ctx,
Product item,
CustomerReview value)
Generated method - Removes
value from productReviews. |
protected void |
setCustomerReviews(SessionContext ctx,
User item,
Collection<CustomerReview> value)
Generated method - Setter of the
User.customerReviews attribute. |
protected void |
setCustomerReviews(User item,
Collection<CustomerReview> value)
Generated method - Setter of the
User.customerReviews attribute. |
void |
setProductReviews(Product item,
Collection<CustomerReview> value)
Generated method - Setter of the
Product.productReviews attribute. |
void |
setProductReviews(SessionContext ctx,
Product item,
Collection<CustomerReview> value)
Generated method - Setter of the
Product.productReviews attribute. |
checkBeforeItemRemoval, createEssentialData, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, isCreatorDisabled, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplaceafterItemCreation, beforeItemCreation, destroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrapprotected static final OneToManyHandler<CustomerReview> REVIEWTOPRODUCTRELPRODUCTREVIEWSHANDLER
OneToManyHandler for handling 1:n PRODUCTREVIEWS's relation attributes from 'many' side.protected static final OneToManyHandler<CustomerReview> REVIEWTOUSERRELCUSTOMERREVIEWSHANDLER
OneToManyHandler for handling 1:n CUSTOMERREVIEWS's relation attributes from 'many' side.protected static final Map<String,Map<String,Item.AttributeMode>> DEFAULT_INITIAL_ATTRIBUTES
public Map<String,Item.AttributeMode> getDefaultAttributeModes(Class<? extends Item> itemClass)
getDefaultAttributeModes in class Extensionpublic abstract Double getAverageRating(SessionContext ctx, Product item)
Product.averageRating attribute.public Double getAverageRating(Product item)
Product.averageRating attribute.public double getAverageRatingAsPrimitive(SessionContext ctx, Product item)
Product.averageRating attribute.public double getAverageRatingAsPrimitive(Product item)
Product.averageRating attribute.public CustomerReview createCustomerReview(SessionContext ctx, Map attributeValues)
public CustomerReview createCustomerReview(Map attributeValues)
public Collection<CustomerReview> getCustomerReviews(SessionContext ctx, User item)
User.customerReviews attribute.public Collection<CustomerReview> getCustomerReviews(User item)
User.customerReviews attribute.protected void setCustomerReviews(SessionContext ctx, User item, Collection<CustomerReview> value)
User.customerReviews attribute.value - the customerReviewsprotected void setCustomerReviews(User item, Collection<CustomerReview> value)
User.customerReviews attribute.value - the customerReviewsprotected void addToCustomerReviews(SessionContext ctx, User item, CustomerReview value)
value to customerReviews.value - the item to add to customerReviewsprotected void addToCustomerReviews(User item, CustomerReview value)
value to customerReviews.value - the item to add to customerReviewsprotected void removeFromCustomerReviews(SessionContext ctx, User item, CustomerReview value)
value from customerReviews.value - the item to remove from customerReviewsprotected void removeFromCustomerReviews(User item, CustomerReview value)
value from customerReviews.value - the item to remove from customerReviewspublic abstract Integer getNumberOfReviews(SessionContext ctx, Product item)
Product.numberOfReviews attribute.public Integer getNumberOfReviews(Product item)
Product.numberOfReviews attribute.public int getNumberOfReviewsAsPrimitive(SessionContext ctx, Product item)
Product.numberOfReviews attribute.public int getNumberOfReviewsAsPrimitive(Product item)
Product.numberOfReviews attribute.public Collection<CustomerReview> getProductReviews(SessionContext ctx, Product item)
Product.productReviews attribute.public Collection<CustomerReview> getProductReviews(Product item)
Product.productReviews attribute.public void setProductReviews(SessionContext ctx, Product item, Collection<CustomerReview> value)
Product.productReviews attribute.value - the productReviewspublic void setProductReviews(Product item, Collection<CustomerReview> value)
Product.productReviews attribute.value - the productReviewspublic void addToProductReviews(SessionContext ctx, Product item, CustomerReview value)
value to productReviews.value - the item to add to productReviewspublic void addToProductReviews(Product item, CustomerReview value)
value to productReviews.value - the item to add to productReviewspublic void removeFromProductReviews(SessionContext ctx, Product item, CustomerReview value)
value from productReviews.value - the item to remove from productReviewspublic void removeFromProductReviews(Product item, CustomerReview value)
value from productReviews.value - the item to remove from productReviewsCopyright © 2017 SAP SE. All Rights Reserved.