public DocumentList getPublishedContent(String docType) { return getPublishedContent(docType, false); }
@Override public DocumentList get(ContentStore db, Map model, String key) { return db.getPublishedContent(customDocumentType); }
public DocumentList getPublishedPosts() { return getPublishedContent("post"); }
public DocumentList getPublishedPosts(boolean applyPaging) { return getPublishedContent("post", applyPaging); }
public DocumentList getPublishedPages() { return getPublishedContent("page"); }
@Override public DocumentList get(ContentStore db, Map model, String key) { DocumentList publishedContent = new DocumentList(); String[] documentTypes = DocumentTypes.getDocumentTypes(); for (String docType : documentTypes) { DocumentList query = db.getPublishedContent(docType); publishedContent.addAll(query); } return publishedContent; }
public DocumentList getPublishedPages() { return getPublishedContent("page"); }
@Override public DocumentList get(ContentStore db, Map model, String key) { return db.getPublishedContent(customDocumentType); }
public DocumentList getPublishedPosts(boolean applyPaging) { return getPublishedContent("post", applyPaging); }
public DocumentList getPublishedContent(String docType) { return getPublishedContent(docType, false); }
public DocumentList getPublishedPosts() { return getPublishedContent("post"); }
@Override public DocumentList get(ContentStore db, Map model, String key) { DocumentList publishedContent = new DocumentList(); String[] documentTypes = DocumentTypes.getDocumentTypes(); for (String docType : documentTypes) { DocumentList query = db.getPublishedContent(docType); publishedContent.addAll(query); } return publishedContent; }