Class GeneratedCustomerReview

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
CustomerReview

public abstract class GeneratedCustomerReview extends GenericItem
Generated class for type CustomerReview.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedCustomerReview

      public GeneratedCustomerReview()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getAlias

      public String getAlias(SessionContext ctx)
      Generated method - Getter of the CustomerReview.alias attribute.
      Returns:
      the alias - It holds the alias of the customer who wrote the review.
    • getAlias

      public String getAlias()
      Generated method - Getter of the CustomerReview.alias attribute.
      Returns:
      the alias - It holds the alias of the customer who wrote the review.
    • setAlias

      public void setAlias(SessionContext ctx, String value)
      Generated method - Setter of the CustomerReview.alias attribute.
      Parameters:
      value - the alias - It holds the alias of the customer who wrote the review.
    • setAlias

      public void setAlias(String value)
      Generated method - Setter of the CustomerReview.alias attribute.
      Parameters:
      value - the alias - It holds the alias of the customer who wrote the review.
    • getApprovalStatus

      public EnumerationValue getApprovalStatus(SessionContext ctx)
      Generated method - Getter of the CustomerReview.approvalStatus attribute.
      Returns:
      the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.
    • getApprovalStatus

      public EnumerationValue getApprovalStatus()
      Generated method - Getter of the CustomerReview.approvalStatus attribute.
      Returns:
      the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.
    • setApprovalStatus

      public void setApprovalStatus(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the CustomerReview.approvalStatus attribute.
      Parameters:
      value - the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.
    • setApprovalStatus

      public void setApprovalStatus(EnumerationValue value)
      Generated method - Setter of the CustomerReview.approvalStatus attribute.
      Parameters:
      value - the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.
    • isBlocked

      public Boolean isBlocked(SessionContext ctx)
      Generated method - Getter of the CustomerReview.blocked attribute.
      Returns:
      the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • isBlocked

      public Boolean isBlocked()
      Generated method - Getter of the CustomerReview.blocked attribute.
      Returns:
      the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • isBlockedAsPrimitive

      public boolean isBlockedAsPrimitive(SessionContext ctx)
      Generated method - Getter of the CustomerReview.blocked attribute.
      Returns:
      the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • isBlockedAsPrimitive

      public boolean isBlockedAsPrimitive()
      Generated method - Getter of the CustomerReview.blocked attribute.
      Returns:
      the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • setBlocked

      public void setBlocked(SessionContext ctx, Boolean value)
      Generated method - Setter of the CustomerReview.blocked attribute.
      Parameters:
      value - the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • setBlocked

      public void setBlocked(Boolean value)
      Generated method - Setter of the CustomerReview.blocked attribute.
      Parameters:
      value - the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • setBlocked

      public void setBlocked(SessionContext ctx, boolean value)
      Generated method - Setter of the CustomerReview.blocked attribute.
      Parameters:
      value - the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • setBlocked

      public void setBlocked(boolean value)
      Generated method - Setter of the CustomerReview.blocked attribute.
      Parameters:
      value - the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
    • getComment

      public String getComment(SessionContext ctx)
      Generated method - Getter of the CustomerReview.comment attribute.
      Returns:
      the comment - Comment for the customer review
    • getComment

      public String getComment()
      Generated method - Getter of the CustomerReview.comment attribute.
      Returns:
      the comment - Comment for the customer review
    • setComment

      public void setComment(SessionContext ctx, String value)
      Generated method - Setter of the CustomerReview.comment attribute.
      Parameters:
      value - the comment - Comment for the customer review
    • setComment

      public void setComment(String value)
      Generated method - Setter of the CustomerReview.comment attribute.
      Parameters:
      value - the comment - Comment for the customer review
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getHeadline

      public String getHeadline(SessionContext ctx)
      Generated method - Getter of the CustomerReview.headline attribute.
      Returns:
      the headline - Headline for the customer review
    • getHeadline

      public String getHeadline()
      Generated method - Getter of the CustomerReview.headline attribute.
      Returns:
      the headline - Headline for the customer review
    • setHeadline

      public void setHeadline(SessionContext ctx, String value)
      Generated method - Setter of the CustomerReview.headline attribute.
      Parameters:
      value - the headline - Headline for the customer review
    • setHeadline

      public void setHeadline(String value)
      Generated method - Setter of the CustomerReview.headline attribute.
      Parameters:
      value - the headline - Headline for the customer review
    • getLanguage

      public Language getLanguage(SessionContext ctx)
      Generated method - Getter of the CustomerReview.language attribute.
      Returns:
      the language - It holds the information about language that review was written with.
    • getLanguage

      public Language getLanguage()
      Generated method - Getter of the CustomerReview.language attribute.
      Returns:
      the language - It holds the information about language that review was written with.
    • setLanguage

      public void setLanguage(SessionContext ctx, Language value)
      Generated method - Setter of the CustomerReview.language attribute.
      Parameters:
      value - the language - It holds the information about language that review was written with.
    • setLanguage

      public void setLanguage(Language value)
      Generated method - Setter of the CustomerReview.language attribute.
      Parameters:
      value - the language - It holds the information about language that review was written with.
    • getProduct

      public Product getProduct(SessionContext ctx)
      Generated method - Getter of the CustomerReview.product attribute.
      Returns:
      the product
    • getProduct

      public Product getProduct()
      Generated method - Getter of the CustomerReview.product attribute.
      Returns:
      the product
    • setProduct

      protected void setProduct(SessionContext ctx, Product value)
      Generated method - Setter of the CustomerReview.product attribute.
      Parameters:
      value - the product
    • setProduct

      protected void setProduct(Product value)
      Generated method - Setter of the CustomerReview.product attribute.
      Parameters:
      value - the product
    • getRating

      public Double getRating(SessionContext ctx)
      Generated method - Getter of the CustomerReview.rating attribute.
      Returns:
      the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • getRating

      public Double getRating()
      Generated method - Getter of the CustomerReview.rating attribute.
      Returns:
      the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • getRatingAsPrimitive

      public double getRatingAsPrimitive(SessionContext ctx)
      Generated method - Getter of the CustomerReview.rating attribute.
      Returns:
      the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • getRatingAsPrimitive

      public double getRatingAsPrimitive()
      Generated method - Getter of the CustomerReview.rating attribute.
      Returns:
      the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • setRating

      public void setRating(SessionContext ctx, Double value)
      Generated method - Setter of the CustomerReview.rating attribute.
      Parameters:
      value - the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • setRating

      public void setRating(Double value)
      Generated method - Setter of the CustomerReview.rating attribute.
      Parameters:
      value - the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • setRating

      public void setRating(SessionContext ctx, double value)
      Generated method - Setter of the CustomerReview.rating attribute.
      Parameters:
      value - the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • setRating

      public void setRating(double value)
      Generated method - Setter of the CustomerReview.rating attribute.
      Parameters:
      value - the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • getUser

      public User getUser(SessionContext ctx)
      Generated method - Getter of the CustomerReview.user attribute.
      Returns:
      the user
    • getUser

      public User getUser()
      Generated method - Getter of the CustomerReview.user attribute.
      Returns:
      the user
    • setUser

      public void setUser(SessionContext ctx, User value)
      Generated method - Setter of the CustomerReview.user attribute.
      Parameters:
      value - the user
    • setUser

      public void setUser(User value)
      Generated method - Setter of the CustomerReview.user attribute.
      Parameters:
      value - the user