001/*
002 * (C) Copyright 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl-2.1.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     Thomas Roger <troger@nuxeo.com>
016 */
017
018package org.nuxeo.ecm.platform.web.common;
019
020/**
021 * Helper class to detect Html5 Dnd compliant browsers based on the User Agent string
022 *
023 * @author Tiry (tdelprat@nuxeo.com)
024 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a>
025 * @deprecated since 7.1, use {@link org.nuxeo.common.utils.UserAgentMatcher} instead.
026 */
027@Deprecated
028public class UserAgentMatcher {
029
030    private UserAgentMatcher() {
031        // Helper class
032    }
033
034    public static boolean isFirefox3(String UA) {
035        return org.nuxeo.common.utils.UserAgentMatcher.isFirefox3(UA);
036    }
037
038    public static boolean isFirefox4OrMore(String UA) {
039        return org.nuxeo.common.utils.UserAgentMatcher.isFirefox4OrMore(UA);
040    }
041
042    public static boolean isSafari5(String UA) {
043        return org.nuxeo.common.utils.UserAgentMatcher.isSafari5(UA);
044    }
045
046    public static boolean isChrome(String UA) {
047        return org.nuxeo.common.utils.UserAgentMatcher.isChrome(UA);
048    }
049
050    public static boolean html5DndIsSupported(String UA) {
051        return org.nuxeo.common.utils.UserAgentMatcher.html5DndIsSupported(UA);
052    }
053
054    public static boolean isMSIE6or7(String UA) {
055        return org.nuxeo.common.utils.UserAgentMatcher.isMSIE6or7(UA);
056    }
057
058    /**
059     * @since 5.9.5
060     */
061    public static boolean isMSIE10OrMore(String UA) {
062        return org.nuxeo.common.utils.UserAgentMatcher.isMSIE10OrMore(UA);
063    }
064
065    public static boolean isHistoryPushStateSupported(String UA) {
066        return org.nuxeo.common.utils.UserAgentMatcher.isHistoryPushStateSupported(UA);
067    }
068}