Beispiel #1
0
 @Override
 public ProtocolMapperModel getProtocolMapperById(String id) {
   for (ProtocolMapperModel mapping : cached.getProtocolMappers()) {
     if (mapping.getId().equals(id)) return mapping;
   }
   return null;
 }
Beispiel #2
0
 @Override
 public ProtocolMapperModel getProtocolMapperByName(String protocol, String name) {
   for (ProtocolMapperModel mapping : cached.getProtocolMappers()) {
     if (mapping.getProtocol().equals(protocol) && mapping.getName().equals(name)) return mapping;
   }
   return null;
 }
Beispiel #3
0
 @Override
 public Set<ProtocolMapperModel> getProtocolMappers() {
   if (updated != null) return updated.getProtocolMappers();
   return cached.getProtocolMappers();
 }