Class GeneratedCustomerReviewManager
- java.lang.Object
-
- de.hybris.platform.jalo.Manager
-
- de.hybris.platform.jalo.extension.Extension
-
- de.hybris.platform.customerreview.jalo.GeneratedCustomerReviewManager
-
- All Implemented Interfaces:
ItemLifecycleListener,java.io.Serializable
- Direct Known Subclasses:
CustomerReviewManager
public abstract class GeneratedCustomerReviewManager extends Extension
Generated class for typeCustomerReviewManager.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProvider
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<java.lang.String,java.util.Map<java.lang.String,Item.AttributeMode>>DEFAULT_INITIAL_ATTRIBUTESprotected static OneToManyHandler<CustomerReview>REVIEWTOPRODUCTRELPRODUCTREVIEWSHANDLEROneToManyHandlerfor handling 1:n PRODUCTREVIEWS's relation attributes from 'many' side.protected static OneToManyHandler<CustomerReview>REVIEWTOUSERRELCUSTOMERREVIEWSHANDLEROneToManyHandlerfor handling 1:n CUSTOMERREVIEWS's relation attributes from 'many' side.
-
Constructor Summary
Constructors Constructor Description GeneratedCustomerReviewManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddToCustomerReviews(SessionContext ctx, User item, CustomerReview value)Generated method - Addsvalueto customerReviews.protected voidaddToCustomerReviews(User item, CustomerReview value)Generated method - Addsvalueto customerReviews.voidaddToProductReviews(Product item, CustomerReview value)Generated method - Addsvalueto productReviews.voidaddToProductReviews(SessionContext ctx, Product item, CustomerReview value)Generated method - Addsvalueto productReviews.CustomerReviewcreateCustomerReview(SessionContext ctx, java.util.Map attributeValues)CustomerReviewcreateCustomerReview(java.util.Map attributeValues)java.lang.DoublegetAverageRating(Product item)Generated method - Getter of theProduct.averageRatingattribute.abstract java.lang.DoublegetAverageRating(SessionContext ctx, Product item)Generated method - Getter of theProduct.averageRatingattribute.doublegetAverageRatingAsPrimitive(Product item)Generated method - Getter of theProduct.averageRatingattribute.doublegetAverageRatingAsPrimitive(SessionContext ctx, Product item)Generated method - Getter of theProduct.averageRatingattribute.java.util.Collection<CustomerReview>getCustomerReviews(SessionContext ctx, User item)Generated method - Getter of theUser.customerReviewsattribute.java.util.Collection<CustomerReview>getCustomerReviews(User item)Generated method - Getter of theUser.customerReviewsattribute.java.util.Map<java.lang.String,Item.AttributeMode>getDefaultAttributeModes(java.lang.Class<? extends Item> itemClass)java.lang.StringgetName()java.lang.IntegergetNumberOfReviews(Product item)Generated method - Getter of theProduct.numberOfReviewsattribute.abstract java.lang.IntegergetNumberOfReviews(SessionContext ctx, Product item)Generated method - Getter of theProduct.numberOfReviewsattribute.intgetNumberOfReviewsAsPrimitive(Product item)Generated method - Getter of theProduct.numberOfReviewsattribute.intgetNumberOfReviewsAsPrimitive(SessionContext ctx, Product item)Generated method - Getter of theProduct.numberOfReviewsattribute.java.util.Collection<CustomerReview>getProductReviews(Product item)Generated method - Getter of theProduct.productReviewsattribute.java.util.Collection<CustomerReview>getProductReviews(SessionContext ctx, Product item)Generated method - Getter of theProduct.productReviewsattribute.protected voidremoveFromCustomerReviews(SessionContext ctx, User item, CustomerReview value)Generated method - Removesvaluefrom customerReviews.protected voidremoveFromCustomerReviews(User item, CustomerReview value)Generated method - Removesvaluefrom customerReviews.voidremoveFromProductReviews(Product item, CustomerReview value)Generated method - Removesvaluefrom productReviews.voidremoveFromProductReviews(SessionContext ctx, Product item, CustomerReview value)Generated method - Removesvaluefrom productReviews.protected voidsetCustomerReviews(SessionContext ctx, User item, java.util.Collection<CustomerReview> value)Generated method - Setter of theUser.customerReviewsattribute.protected voidsetCustomerReviews(User item, java.util.Collection<CustomerReview> value)Generated method - Setter of theUser.customerReviewsattribute.voidsetProductReviews(Product item, java.util.Collection<CustomerReview> value)Generated method - Setter of theProduct.productReviewsattribute.voidsetProductReviews(SessionContext ctx, Product item, java.util.Collection<CustomerReview> value)Generated method - Setter of theProduct.productReviewsattribute.-
Methods inherited from class de.hybris.platform.jalo.extension.Extension
checkBeforeItemRemoval, createEssentialData, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, isCreatorDisabled, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplace
-
Methods inherited from class de.hybris.platform.jalo.Manager
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, wrap
-
-
-
-
Field Detail
-
REVIEWTOPRODUCTRELPRODUCTREVIEWSHANDLER
protected static final OneToManyHandler<CustomerReview> REVIEWTOPRODUCTRELPRODUCTREVIEWSHANDLER
OneToManyHandlerfor handling 1:n PRODUCTREVIEWS's relation attributes from 'many' side.
-
REVIEWTOUSERRELCUSTOMERREVIEWSHANDLER
protected static final OneToManyHandler<CustomerReview> REVIEWTOUSERRELCUSTOMERREVIEWSHANDLER
OneToManyHandlerfor handling 1:n CUSTOMERREVIEWS's relation attributes from 'many' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,java.util.Map<java.lang.String,Item.AttributeMode>> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
public java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes(java.lang.Class<? extends Item> itemClass)
- Overrides:
getDefaultAttributeModesin classExtension
-
getAverageRating
public abstract java.lang.Double getAverageRating(SessionContext ctx, Product item)
Generated method - Getter of theProduct.averageRatingattribute.- Returns:
- the averageRating - The average rating of the product.
-
getAverageRating
public java.lang.Double getAverageRating(Product item)
Generated method - Getter of theProduct.averageRatingattribute.- Returns:
- the averageRating - The average rating of the product.
-
getAverageRatingAsPrimitive
public double getAverageRatingAsPrimitive(SessionContext ctx, Product item)
Generated method - Getter of theProduct.averageRatingattribute.- Returns:
- the averageRating - The average rating of the product.
-
getAverageRatingAsPrimitive
public double getAverageRatingAsPrimitive(Product item)
Generated method - Getter of theProduct.averageRatingattribute.- Returns:
- the averageRating - The average rating of the product.
-
createCustomerReview
public CustomerReview createCustomerReview(SessionContext ctx, java.util.Map attributeValues)
-
createCustomerReview
public CustomerReview createCustomerReview(java.util.Map attributeValues)
-
getCustomerReviews
public java.util.Collection<CustomerReview> getCustomerReviews(SessionContext ctx, User item)
Generated method - Getter of theUser.customerReviewsattribute.- Returns:
- the customerReviews
-
getCustomerReviews
public java.util.Collection<CustomerReview> getCustomerReviews(User item)
Generated method - Getter of theUser.customerReviewsattribute.- Returns:
- the customerReviews
-
setCustomerReviews
protected void setCustomerReviews(SessionContext ctx, User item, java.util.Collection<CustomerReview> value)
Generated method - Setter of theUser.customerReviewsattribute.- Parameters:
value- the customerReviews
-
setCustomerReviews
protected void setCustomerReviews(User item, java.util.Collection<CustomerReview> value)
Generated method - Setter of theUser.customerReviewsattribute.- Parameters:
value- the customerReviews
-
addToCustomerReviews
protected void addToCustomerReviews(SessionContext ctx, User item, CustomerReview value)
Generated method - Addsvalueto customerReviews.- Parameters:
value- the item to add to customerReviews
-
addToCustomerReviews
protected void addToCustomerReviews(User item, CustomerReview value)
Generated method - Addsvalueto customerReviews.- Parameters:
value- the item to add to customerReviews
-
removeFromCustomerReviews
protected void removeFromCustomerReviews(SessionContext ctx, User item, CustomerReview value)
Generated method - Removesvaluefrom customerReviews.- Parameters:
value- the item to remove from customerReviews
-
removeFromCustomerReviews
protected void removeFromCustomerReviews(User item, CustomerReview value)
Generated method - Removesvaluefrom customerReviews.- Parameters:
value- the item to remove from customerReviews
-
getNumberOfReviews
public abstract java.lang.Integer getNumberOfReviews(SessionContext ctx, Product item)
Generated method - Getter of theProduct.numberOfReviewsattribute.- Returns:
- the numberOfReviews - The number of reviews for the product.
-
getNumberOfReviews
public java.lang.Integer getNumberOfReviews(Product item)
Generated method - Getter of theProduct.numberOfReviewsattribute.- Returns:
- the numberOfReviews - The number of reviews for the product.
-
getNumberOfReviewsAsPrimitive
public int getNumberOfReviewsAsPrimitive(SessionContext ctx, Product item)
Generated method - Getter of theProduct.numberOfReviewsattribute.- Returns:
- the numberOfReviews - The number of reviews for the product.
-
getNumberOfReviewsAsPrimitive
public int getNumberOfReviewsAsPrimitive(Product item)
Generated method - Getter of theProduct.numberOfReviewsattribute.- Returns:
- the numberOfReviews - The number of reviews for the product.
-
getProductReviews
public java.util.Collection<CustomerReview> getProductReviews(SessionContext ctx, Product item)
Generated method - Getter of theProduct.productReviewsattribute.- Returns:
- the productReviews
-
getProductReviews
public java.util.Collection<CustomerReview> getProductReviews(Product item)
Generated method - Getter of theProduct.productReviewsattribute.- Returns:
- the productReviews
-
setProductReviews
public void setProductReviews(SessionContext ctx, Product item, java.util.Collection<CustomerReview> value)
Generated method - Setter of theProduct.productReviewsattribute.- Parameters:
value- the productReviews
-
setProductReviews
public void setProductReviews(Product item, java.util.Collection<CustomerReview> value)
Generated method - Setter of theProduct.productReviewsattribute.- Parameters:
value- the productReviews
-
addToProductReviews
public void addToProductReviews(SessionContext ctx, Product item, CustomerReview value)
Generated method - Addsvalueto productReviews.- Parameters:
value- the item to add to productReviews
-
addToProductReviews
public void addToProductReviews(Product item, CustomerReview value)
Generated method - Addsvalueto productReviews.- Parameters:
value- the item to add to productReviews
-
removeFromProductReviews
public void removeFromProductReviews(SessionContext ctx, Product item, CustomerReview value)
Generated method - Removesvaluefrom productReviews.- Parameters:
value- the item to remove from productReviews
-
removeFromProductReviews
public void removeFromProductReviews(Product item, CustomerReview value)
Generated method - Removesvaluefrom productReviews.- Parameters:
value- the item to remove from productReviews
-
-