KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > content > ContentFactory


1 package de.webman.content;
2
3 import de.webman.content.workflow.VersionCache;
4
5 /**
6     Factory zum Erhalten von Content Objekten
7  * @author $Author: alex $
8  * @version $Revision: 1.2 $
9 */

10 public class ContentFactory
11 {
12     private static ContentFactory instance = new ContentFactory();
13     
14     private ContentFactory()
15     {
16     }
17     
18     public static ContentFactory getInstance()
19     {
20         return instance;
21     }
22     
23     /**
24         liefert Content mit durchgeführtem Workflow zurueck
25     */

26     public Content getContent(Integer JavaDoc contentNodeId)
27     {
28         return VersionCache.getContentInfo(contentNodeId);
29     }
30     
31     public GroupContent getGroupContent(Integer JavaDoc contentNodeId)
32     {
33         return new GroupContent(contentNodeId);
34     }
35 }
Popular Tags