String name = currentType.elementText(N_NAME); if (CmsStringUtil.isEmpty(name)) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_NAME_0), null); continue; ranking = Float.parseFloat(currentType.elementText(N_RANKING)); } catch (Throwable t) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_RANKING_1, name), t); continue; assignedTypes = matcher.getAdditionalResourceTypes(); } catch (Throwable t) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_CLASS_1, name), t); continue; ranking = Float.parseFloat(currentClass.elementText(N_RANKING)); } catch (Throwable t) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_RANKING_1, name), t); continue; pattern.add(Pattern.compile(agentName)); } catch (PatternSyntaxException e) { logConfigurationError( Messages.get().getBundle().key(Messages.ERR_COMPILE_EDITOR_REGEX_1, agentName), e); logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_USERAGENT_DEF_0), null);
String name = currentType.elementText(N_NAME); if (CmsStringUtil.isEmpty(name)) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_NAME_0), null); continue; ranking = Float.parseFloat(currentType.elementText(N_RANKING)); } catch (Throwable t) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_RANKING_1, name), t); continue; assignedTypes = matcher.getAdditionalResourceTypes(); } catch (Throwable t) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_CLASS_1, name), t); continue; ranking = Float.parseFloat(currentClass.elementText(N_RANKING)); } catch (Throwable t) { logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_RESTYPE_RANKING_1, name), t); continue; pattern.add(Pattern.compile(agentName)); } catch (PatternSyntaxException e) { logConfigurationError( Messages.get().getBundle().key(Messages.ERR_COMPILE_EDITOR_REGEX_1, agentName), e); logConfigurationError(Messages.get().getBundle().key(Messages.ERR_INVALID_USERAGENT_DEF_0), null);
/** * Constructor with xml data String.<p> * * @param xmlData the XML data String containing the information about the editor * @param editorUri the editor workplace URI */ public CmsWorkplaceEditorConfiguration(byte[] xmlData, String editorUri) { setValidConfiguration(true); try { initialize(CmsXmlUtils.unmarshalHelper(xmlData, null), editorUri); } catch (CmsXmlException e) { // xml String could not be parsed logConfigurationError(Messages.get().getBundle().key(Messages.ERR_XML_PARSE_0), e); } }
/** * Constructor with xml data String.<p> * * @param xmlData the XML data String containing the information about the editor * @param editorUri the editor workplace URI * @param name the editor configuration name */ public CmsWorkplaceEditorConfiguration(byte[] xmlData, String editorUri, String name) { setValidConfiguration(true); try { m_name = name; initialize(CmsXmlUtils.unmarshalHelper(xmlData, null), editorUri); } catch (CmsXmlException e) { // xml String could not be parsed logConfigurationError(Messages.get().getBundle().key(Messages.ERR_XML_PARSE_0), e); } }