Search for a notification with the given id.

@param id
the identifier of the wanted notification.
@return
the notification founded or null if no one can be found.
544711
public Notification getByID(String id) {
        //TODO maybe SORT_By_ID then make a better array searching algorithm
        for (Notification n: NotificationManager.notifications){
            if(n.getId().equals(id)){
                logger.fine("...found a match for getByID query. With id: "+id);
                return n;
            }
        }
        logger.fine("There is no notification that match the given ID: "+id);
        return null;
    }
387840
private Node findNode(String id) {
        Node result = doFindNode(id);
        if (result != null) {
            return result;
        }
        throw new IllegalArgumentException("Couldn't find node " + id);
    }
571419
public function see($ID)
    {
        $member = Member::currentUser();
        if (!$member) {
            return false;
        }

        if ($ID) {
            $notification = InternalNotification::get()
                ->filter([
                    'ID' => $ID,
                    'ToID' => $member->ID
                ])->first();
            if ($notification) {
                if (!$notification->IsSeen) {
                    $notification->IsSeen = true;
                    $notification->write();
                }
                return true;
            }
        }
        return false;
    }
1170043
private function getNotification($id)
    {
        /** @var Notification $notification */
        $class = $this->notificationClass;
        $notification = $class::findOne($id);
        if (!$notification) {
            throw new HttpException(404, "Unknown notification");
        }

        if ($notification->user_id != $this->user_id) {
            throw new HttpException(500, "Not your notification");
        }

        return $notification;
    }
808678
public QueryTreeElement getQuery(String id) {
		for (QueryTreeElement query : queries) {
			if (query.getID().equals(id)) {
				return query;
			}
		}
		return null;
	}
519702
public MessageLogModel getMessageLog(String ID)
    {
        int iOldOrder = this.getDefaultOrder();
        try {
            this.addNew();
            this.getField(MessageLog.ID).setString(ID);
            this.setKeyArea(MessageLog.ID_KEY);
            if (this.seek(null))
                return this;
        } catch (DBException ex)    {
            ex.printStackTrace();
        } finally {
            this.setKeyArea(iOldOrder);
        }
        return null;
    }
377046
public Integer getNextIDSeq(final String id) {
        Validate.notNull(id, "ID cannot be null");
        Integer count = this.idCounts.get(id);
        if (count == null) {
            count = Integer.valueOf(1);
        }
        return count;
    }
1238624
public @CheckForNull D findByName(String id) {
        for (D d : this)
            if(d.getId().equals(id))
                return d;
        return null;
    }
645313
protected final Interaction findInteraction(String id) {
        for(Node n= interactions.head(), end= interactions.tail(); (n= n.next()) != end;) {
            Interaction i= (Interaction)n.value();
            
            if(i.id.equals(id)) {
                return i;
            }
        }
        
        return null;
    }
618675
public function findAllForNotifiableIdQb($id, $order = 'DESC')
    {
        return $this->createQueryBuilder('nn')
            ->addSelect('n')
            ->join('nn.notification', 'n')
            ->join('nn.notifiableEntity', 'ne')
            ->where('ne.id = :id')
            ->orderBy('n.id', $order)
            ->setParameter('id', $id)
        ;
    }
575908
@Nullable public View findViewById(int id) {
        if (searchView != null) {
            return searchView.findViewById(id);
        } else if (supportView != null) {
            return supportView.findViewById(id);
        }
        throw new IllegalStateException(ERROR_NO_SEARCHVIEW);
    }
387626
public E getById(String id) {
        if (id == null) {
            for (E element : this) {
                if (element != null && element.getId() == null) {
                    return element;
                }
            }
        } else {
            for (E element : this) {
                if (element != null && id.equals(element.getId())) {
                    return element;
                }
            }
        }
        return null;
    }
418193
def notifications_dismiss(self, id):
        
        id = self.__unpack_id(id)
        params = self.__generate_params(locals())
        self.__api_request('POST', '/api/v1/notifications/dismiss', params)
690668
public E findById(ID id) {
        LOG.trace("Finding " + entityClass.getSimpleName() + " with ID " + id);
        return (E) getSession().get(entityClass, id);
    }
1141859
public static JinxConstants.SuggestionStatus suggestionStatusIdToSuggestionStatusEnum(Integer id) {
        if (id == null) {
            return null;
        }
        JinxConstants.SuggestionStatus status;
        switch (id) {
            case 0:
                status = JinxConstants.SuggestionStatus.pending;
                break;
            case 1:
                status = JinxConstants.SuggestionStatus.approved;
                break;
            case 2:
                status = JinxConstants.SuggestionStatus.rejected;
                break;
            default:
                status = null;
                break;
        }
        return status;
    }
141791
public NotificationEntry getNotification(int notification) {
        RowView rowView = getRowView(notification);
        return rowView != null ? rowView.getNotification() : null;
    }
87657
public String getNameForID(String id) {
        if (!terms.containsKey(id))
            return null;
        return terms.get(id).getName();
    }