001
014
015 package com.liferay.portal.kernel.mobile.device;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import java.util.Collections;
020 import java.util.Map;
021 import java.util.Set;
022
023
029 @ProviderType
030 public class NoKnownDevices implements KnownDevices {
031
032 public static NoKnownDevices getInstance() {
033 return _instance;
034 }
035
036 @Override
037 public Set<VersionableName> getBrands() {
038 return _unknownVersionableNames;
039 }
040
041 @Override
042 public Set<VersionableName> getBrowsers() {
043 return _unknownVersionableNames;
044 }
045
046
049 @Deprecated
050 @Override
051 public Map<Capability, Set<String>> getDeviceIds() {
052 return Collections.emptyMap();
053 }
054
055 @Override
056 public Set<VersionableName> getOperatingSystems() {
057 return _unknownVersionableNames;
058 }
059
060 @Override
061 public Set<String> getPointingMethods() {
062 return _pointingMethods;
063 }
064
065 @Override
066 public void reload() {
067 }
068
069 private NoKnownDevices() {
070 }
071
072 private static final NoKnownDevices _instance = new NoKnownDevices();
073
074 private final Set<String> _pointingMethods = Collections.singleton(
075 VersionableName.UNKNOWN.getName());
076 private final Set<VersionableName> _unknownVersionableNames =
077 Collections.singleton(VersionableName.UNKNOWN);
078
079 }