1 package de.webman.content; 2 3 import de.webman.content.workflow.VersionCache; 4 5 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 26 public Content getContent(Integer contentNodeId) 27 { 28 return VersionCache.getContentInfo(contentNodeId); 29 } 30 31 public GroupContent getGroupContent(Integer contentNodeId) 32 { 33 return new GroupContent(contentNodeId); 34 } 35 } | Popular Tags |