/** * @see org.opencms.workplace.editors.I_CmsEditorTypeMatcher#getAdditionalResourceTypes() */ public List<String> getAdditionalResourceTypes() { ArrayList<String> additionalTypes = new ArrayList<String>(); // get all explorerTypes List<CmsExplorerTypeSettings> explorerTypes = OpenCms.getWorkplaceManager().getExplorerTypeSettings(); Iterator<CmsExplorerTypeSettings> i = explorerTypes.iterator(); // loop through all types and select those with reference to the type xmlcontent while (i.hasNext()) { CmsExplorerTypeSettings type = i.next(); if ((type.getName().equalsIgnoreCase(TYPE_XMLCONTENT)) || ((type.getReference() != null) && type.getReference().equalsIgnoreCase(TYPE_XMLCONTENT))) { additionalTypes.add(type.getName()); } } return additionalTypes; }
/** * @see org.opencms.workplace.editors.I_CmsEditorTypeMatcher#getAdditionalResourceTypes() */ public List getAdditionalResourceTypes() { ArrayList additionalTypes = new ArrayList(); // get all explorerTypes List explorerTypes = OpenCms.getWorkplaceManager().getExplorerTypeSettings(); Iterator i = explorerTypes.iterator(); // loop through all types and select those with reference to the type xmlcontent while (i.hasNext()) { CmsExplorerTypeSettings type = (CmsExplorerTypeSettings)i.next(); if ((type.getName().equalsIgnoreCase(TYPE_XMLCONTENT)) || ((type.getReference() != null) && type.getReference().equalsIgnoreCase(TYPE_XMLCONTENT))) { additionalTypes.add(type.getName()); } } return additionalTypes; }
/** * Builds the CSS for all resource types.<p> * * @return a string containing the CSS rules for all resource types */ public String buildResourceIconCss() { m_buffer.append(buildUnknownIconCss()); for (CmsExplorerTypeSettings type : OpenCms.getWorkplaceManager().getExplorerTypeSettings()) { addCssForType(type); } addPseudoTypes(); addResourceNotFoundIconRule(); return m_buffer.toString(); }
/** * Gets the explorer types for the given view name.<p> * * @param viewName the view name * * @return the explorer names for the given view names */ public List<CmsExplorerTypeSettings> getExplorerTypesForView(String viewName) { List<CmsExplorerTypeSettings> result = Lists.newArrayList(); for (CmsExplorerTypeSettings explorerType : getExplorerTypeSettings()) { String currentViewName = explorerType.getElementView(); if (currentViewName == null) { currentViewName = getDefaultView(explorerType.getName()); } if ((currentViewName != null) && currentViewName.equals(viewName)) { if (OpenCms.getResourceManager().hasResourceType(explorerType.getName())) { result.add(explorerType); } } else if (CmsResourceTypeFolder.getStaticTypeName().equals(explorerType.getName()) && "view_folders|view_basic".contains(viewName)) { result.add(explorerType); } } return result; }
for (CmsExplorerTypeSettings explorerType : getExplorerTypeSettings()) { if (explorerType.isView()) { explorerTypeViews.add(explorerType.getName());
int currentResTypeId = res.getTypeId(); List resTypes = OpenCms.getWorkplaceManager().getExplorerTypeSettings(); boolean isFolder = res.isFolder();
int currentResTypeId = res.getTypeId(); List<CmsExplorerTypeSettings> resTypes = OpenCms.getWorkplaceManager().getExplorerTypeSettings(); boolean isFolder = res.isFolder();
i = OpenCms.getWorkplaceManager().getExplorerTypeSettings().iterator();
i = OpenCms.getWorkplaceManager().getExplorerTypeSettings().iterator();
List resTypes = OpenCms.getWorkplaceManager().getExplorerTypeSettings(); boolean isFolder = res.isFolder();
List<CmsExplorerTypeSettings> resTypes = OpenCms.getWorkplaceManager().getExplorerTypeSettings(); boolean isFolder = res.isFolder();
List<CmsExplorerTypeSettings> explorerTypes = m_workplaceManager.getExplorerTypeSettings(); generateExplorerTypesXml(explorerTypesElement, explorerTypes, false);
List explorerTypes = m_workplaceManager.getExplorerTypeSettings(); generateExplorerTypesXml(explorerTypesElement, explorerTypes, false);