/** * Returns a document type config.<p> * * @param name the name of the document type config * @return the document type config. */ public CmsSearchDocumentType getDocumentTypeConfig(String name) { // this is really used only for the search manager GUI, // so performance is not an issue and no lookup map is generated for (int i = 0; i < m_documentTypeConfigs.size(); i++) { CmsSearchDocumentType type = m_documentTypeConfigs.get(i); if (type.getName().equals(name)) { return type; } } return null; }
/** * Returns a document type config.<p> * * @param name the name of the document type config * @return the document type config. */ public CmsSearchDocumentType getDocumentTypeConfig(String name) { // this is really used only for the search manager GUI, // so performance is not an issue and no lookup map is generated for (int i = 0; i < m_documentTypeConfigs.size(); i++) { CmsSearchDocumentType type = m_documentTypeConfigs.get(i); if (type.getName().equals(name)) { return type; } } return null; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() { List<CmsListItem> result = new ArrayList<CmsListItem>(); // get content List<CmsSearchDocumentType> doctypes = documentTypes(); Iterator<CmsSearchDocumentType> itDoctypes = doctypes.iterator(); CmsSearchDocumentType doctype; while (itDoctypes.hasNext()) { doctype = itDoctypes.next(); CmsListItem item = getList().newItem(doctype.getName()); item.set(LIST_COLUMN_NAME, doctype.getName()); item.set(LIST_COLUMN_DOCCLASS, doctype.getClassName()); result.add(item); } return result; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() { List<CmsListItem> result = new ArrayList<CmsListItem>(); // get content List<CmsSearchDocumentType> doctypes = documentTypes(); Iterator<CmsSearchDocumentType> itDoctypes = doctypes.iterator(); CmsSearchDocumentType doctype; while (itDoctypes.hasNext()) { doctype = itDoctypes.next(); CmsListItem item = getList().newItem(doctype.getName()); item.set(LIST_COLUMN_NAME, doctype.getName()); item.set(LIST_COLUMN_DOCCLASS, doctype.getClassName()); result.add(item); } return result; }
/** * Adds a document type.<p> * * @param documentType a document type */ public void addDocumentTypeConfig(CmsSearchDocumentType documentType) { m_documentTypeConfigs.add(documentType); if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_SEARCH_DOC_TYPES_2, documentType.getName(), documentType.getClassName())); } }
/** * Adds a document type.<p> * * @param documentType a document type */ public void addDocumentTypeConfig(CmsSearchDocumentType documentType) { m_documentTypeConfigs.add(documentType); if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info( Messages.get().getBundle().key( Messages.INIT_SEARCH_DOC_TYPES_2, documentType.getName(), documentType.getClassName())); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() { List<CmsListItem> result = new ArrayList<CmsListItem>(); // get content List<CmsSearchDocumentType> doctypes = documentTypes(); Iterator<CmsSearchDocumentType> itDoctypes = doctypes.iterator(); CmsSearchDocumentType doctype; while (itDoctypes.hasNext()) { doctype = itDoctypes.next(); CmsListItem item = getList().newItem(doctype.getName()); item.set(LIST_COLUMN_NAME, doctype.getName()); item.set(LIST_COLUMN_DOCCLASS, doctype.getClassName()); result.add(item); } return result; }
html.append(" <li>\n").append(" ").append(docType.getName()).append("\n"); html.append(" </li>");
html.append(" <li>\n").append(" ").append(docType.getName()).append("\n"); html.append(" </li>");
html.append(" <li>\n").append(" ").append(docType.getName()).append("\n"); html.append(" </li>");
html.append(" <li>\n").append(" ").append(docType.getName()).append("\n"); html.append(" </li>");
while (itDocTypes.hasNext()) { CmsSearchDocumentType docType = itDocTypes.next(); systemDoctypeNames.add(docType.getName());
name = documenttype.getName();
name = documenttype.getName();
documenttypeElement.addElement(N_NAME).addText(currSearchDocType.getName());
documenttypeElement.addElement(N_NAME).addText(currSearchDocType.getName());