Exemple #1
0
 public MessageDialog getMessageDialogByTarget(String target) {
   for (MessageDialog m : messages) {
     if (m.getTarget().equalsIgnoreCase(target)) {
       return m;
     }
   }
   return null;
 }
Exemple #2
0
 public boolean hasMessage(String target) {
   for (MessageDialog m : messages) {
     if (m.getTarget().equalsIgnoreCase(target)) {
       return true;
     }
   }
   return false;
 }