コード例 #1
0
 /**
  * Get the trigger object with the trigger name
  *
  * @param triggerName
  * @return
  */
 public Trigger getTrigger(String triggerName) {
   for (Trigger trigger : service.getTriggers().values()) {
     if (trigger.getTriggerTag().equals(triggerName)) {
       return trigger;
     }
   }
   return null;
 }
コード例 #2
0
  public List<String> getTriggers() {
    List<String> list = new LinkedList<String>();

    if (service.getTriggers() != null) {
      for (Trigger trig : service.getTriggers().values()) list.add(trig.getTriggerTag());
    }
    return list;
  }