Exemplo n.º 1
0
 @Override
 public MonitorResult monitor(String login, String key, boolean full) {
   try {
     User user = getLoggedUser(login, key);
     if (user != null)
       if (!user.isMonitoring() && !user.isAdmin()) throw new WebServiceException("Not allowed");
     ClientFactory.INSTANCE.properties.checkApi();
     return new MonitorResult(full);
   } catch (SearchLibException e) {
     throw new WebServiceException(e);
   } catch (InterruptedException e) {
     throw new WebServiceException(e);
   } catch (IOException e) {
     throw new WebServiceException(e);
   }
 }