Ejemplo n.º 1
0
 public DocumentModelList getPageWidgets(String docType) {
   DocumentModelList list = new DocumentModelListImpl();
   Directories dirEnum = Directories.fromString("labs_" + docType + "_widgets");
   Map<String, Serializable> filter = new HashMap<String, Serializable>();
   filter.put("obsolete", "0");
   list.addAll(DirectoriesUtils.getDirDocumentModelList(dirEnum, filter));
   return list;
 }
Ejemplo n.º 2
0
 public List<String> getPageWidgetGroups(String docType) {
   List<String> list = new ArrayList<String>();
   String docTypeTmp = docType;
   if ("sidebar".equals(docTypeTmp)) {
     docTypeTmp = Docs.HTMLPAGE.type();
   }
   Directories dirEnum = Directories.fromString("labs_" + docTypeTmp + "_widgetGroups");
   list.addAll(DirectoriesUtils.getDirMap(dirEnum).values());
   return list;
 }
Ejemplo n.º 3
0
 public List<String> getPageContentViews(String docType) {
   List<String> list = new ArrayList<String>();
   Directories dirEnum = Directories.fromString("labs_" + docType + "_contentviews");
   if (dirEnum == null) {
     list.add(LabsCustomView.PAGE_DEFAULT_VIEW);
   } else {
     Map<String, Serializable> filter = new HashMap<String, Serializable>();
     filter.put("obsolete", "0");
     list.addAll(DirectoriesUtils.getDirMap(dirEnum, filter).values());
   }
   return list;
 }