Class ArticleHistory

java.lang.Object
de.calamanari.pk.facade.article.history.ArticleHistory

public class ArticleHistory
extends java.lang.Object
Article History - another class of the component we create a FACADE for.
The history delivers details related to an article but not part of the core information.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    ArticleHistory()  
  • Method Summary

    Modifier and Type Method Description
    double getCurrentMarkDownPrice​(java.lang.String articleId)
    Returns the current markdown price for the specified article.
    void setMarkDownPrice​(java.lang.String articleId, double markDownPrice)
    Sets the current markdown price for the given article

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getCurrentMarkDownPrice

      public double getCurrentMarkDownPrice​(java.lang.String articleId)
      Returns the current markdown price for the specified article.
      Parameters:
      articleId - identifier
      Returns:
      current mark down price or -1 to indicate unknown
    • setMarkDownPrice

      public void setMarkDownPrice​(java.lang.String articleId, double markDownPrice)
      Sets the current markdown price for the given article
      Parameters:
      articleId - identifier
      markDownPrice - 0 or less means unknown