Пример #1
0
 /** The ip white list is a document that is stored in the settings repo */
 @Override
 public void addIPToWhiteList(CallingContext context, String ipAddress) {
   RaptureIPWhiteList wlist = RaptureIPWhiteListStorage.readByFields();
   wlist.getIpWhiteList().add(ipAddress);
   RaptureIPWhiteListStorage.add(
       wlist, context.getUser(), Messages.getString("Admin.AddedToWhiteList")); // $NON-NLS-1$
 }
Пример #2
0
 @Override
 public List<String> getIPWhiteList(CallingContext context) {
   RaptureIPWhiteList wlist = RaptureIPWhiteListStorage.readByFields();
   return wlist.getIpWhiteList();
 }