Class ArticleManager

java.lang.Object
de.calamanari.pk.facade.article.ArticleManager

public class ArticleManager
extends java.lang.Object
Article Manager - class of the component we create a FACADE for.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    ArticleManager()  
  • Method Summary

    Modifier and Type Method Description
    Article findArticleById​(java.lang.String articleId)
    Returns the corresponding article for the given id
    void storeArticle​(Article article)
    Stores the article in the internal database

    Methods inherited from class java.lang.Object

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

  • Method Details

    • findArticleById

      public Article findArticleById​(java.lang.String articleId)
      Returns the corresponding article for the given id
      Parameters:
      articleId - identifier
      Returns:
      found article instance or null if not found
    • storeArticle

      public void storeArticle​(Article article)
      Stores the article in the internal database
      Parameters:
      article - to be stored