Returns all audit entries for a notification.

@param   entity  The object to retrieve alert audits for.

@return  A list of notification audits for the object.
964994
public List<Audit> getAllNotifications(JPAEntity entity) {
		return _auditService.findByEntityHostnameMessage(entity.getId(), null, "Triggering event value:");
	}
870489
def read_audit_log(self, symbol=None, message=None):
        
        query = {}
        if symbol:
            if isinstance(symbol, six.string_types):
                query['symbol'] = {'$regex': symbol}
            else:
                query['symbol'] = {'$in': list(symbol)}

        if message is not None:
            query['message'] = message

        def _pop_id(x):
            x.pop('_id')
            return x

        return [_pop_id(x) for x in self._audit.find(query, sort=[('_id', -1)])]
404465
public java.util.List<InventoryResultEntity> getEntities() {
        if (entities == null) {
            entities = new com.amazonaws.internal.SdkInternalList<InventoryResultEntity>();
        }
        return entities;
    }
150613
private function getAddresses($entity)
    {
        if ($entity instanceof AccountInterface) {
            return $entity->getAccountAddresses();
        } elseif ($entity instanceof Contact) {
            return $entity->getContactAddresses();
        }

        return;
    }
499340
public List<Entity> sortEntities(List<Entity> entities) {
        if (entities != null && entities.size() > 0) {
            Entity[] ents = (Entity[]) entities.toArray(new Entity[entities.size()]);
            WIMSortCompare<Entity> wimSortComparator = new WIMSortCompare<Entity>(sortControl);
            Arrays.sort(ents, wimSortComparator);
            entities.clear();
            for (int i = 0; i < ents.length; i++) {
                entities.add(ents[i]);
            }
        }
        return entities;
    }
648280
@SuppressWarnings("unchecked")
    public <T> List<T> getAll(Class<T> entityCls) {
        if (entityCls == null) {
            throw new IllegalArgumentException("entityCls cannot be null");
        }
        EntityManager entityManager = this.entityManagerProvider.get();
        CriteriaBuilder builder = entityManager.getCriteriaBuilder();
        CriteriaQuery<T> criteriaQuery
                = builder.createQuery(entityCls);
        criteriaQuery.from(entityCls);
        TypedQuery<T> typedQuery
                = entityManager.createQuery(criteriaQuery);
        List<T> results = typedQuery.getResultList();
        return results;
    }
525840
public List<Entity> query(Query query) {
		return query(query, FetchOptions.Builder.withOffset(0));
	}
308219
public java.util.List<String> getNotificationARNs() {
        if (notificationARNs == null) {
            notificationARNs = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return notificationARNs;
    }
1222145
public static Map<String, Object> getKeyPropertyValues(EntityType entityType, Object entity) {
        Map<String, Object> keyPropertyValues = new HashMap<>();
        for (PropertyRef propertyRef : entityType.getKey().getPropertyRefs()) {
            String propertyName = propertyRef.getPath();
            Object propertyValue = getPropertyValue(entityType.getStructuralProperty(propertyName), entity);
            keyPropertyValues.put(propertyName, propertyValue);
        }
        return keyPropertyValues;
    }
1303468
public List<Entity> find(Entity where) throws SQLException {
		return find(where.getFieldNames(), where, EntityListHandler.create());
	}
1285062
private List<Class<?>> getAllExternalListeners() {
    Class<?> clazz = entityClass;
    List<Class<?>> allListeners = new ArrayList<>();
    boolean stop = false;
    while (!stop) {
      EntityListeners entityListenersAnnotation = clazz.getAnnotation(EntityListeners.class);
      if (entityListenersAnnotation != null) {
        Class<?>[] listeners = entityListenersAnnotation.value();
        if (listeners.length > 0) {
          allListeners.addAll(0, Arrays.asList(listeners));
        }
      }
      boolean excludeDefaultListeners = clazz.isAnnotationPresent(ExcludeDefaultListeners.class);
      boolean excludeSuperClassListeners = clazz
          .isAnnotationPresent(ExcludeSuperclassListeners.class);
      if (excludeDefaultListeners) {
        metadata.setExcludeDefaultListeners(true);
      }
      if (excludeSuperClassListeners) {
        metadata.setExcludeSuperClassListeners(true);
      }
      clazz = clazz.getSuperclass();
      stop = excludeSuperClassListeners || clazz == null
          || !clazz.isAnnotationPresent(MappedSuperClass.class);
    }
    return allListeners;
  }
1182807
public List<Notification> getByInteraction(String interaction) {
        List<Notification> found = new ArrayList<Notification>();
        for (Notification n: NotificationManager.notifications)
            if (((InteractionNotification)n).getInteraction().equals(interaction)){ 
                logger.fine("...found a match for getByInteraction query. With interaction: " +
                            interaction);
                found.add(n);
            }
        if(found.size()>0)        
            return found;
        return null;
    }
1092549
public static List<Audit> findAll(EntityManager em) {
        requireArgument(em != null, "Entity manager cannot be null.");

        TypedQuery<Audit> query = em.createNamedQuery("Audit.findAll", Audit.class);

        try {
            return query.getResultList();
        } catch (NoResultException ex) {
            return new ArrayList<Audit>(0);
        }
    }
431381
public static AuditEntryBean planUpdated(PlanBean bean, EntityUpdatedData data,
            ISecurityContext securityContext) {
        if (data.getChanges().isEmpty()) {
            return null;
        }
        AuditEntryBean entry = newEntry(bean.getOrganization().getId(), AuditEntityType.Plan, securityContext);
        entry.setEntityId(bean.getId());
        entry.setEntityVersion(null);
        entry.setWhat(AuditEntryType.Update);
        entry.setData(toJSON(data));
        return entry;
    }
1203107
public List<Entity> pageForEntityList(Entity where, int page, int numPerPage) throws SQLException {
		return pageForEntityList(where, new Page(page, numPerPage));
	}
601746
public Collection<AlertCondition> list(long entityId, String entityType)
    {
        QueryParameterList queryParams = new QueryParameterList();
        queryParams.add("entity_type", entityType);
        return HTTP.GET(String.format("/v2/alerts_entity_conditions/%d.json", entityId), null, queryParams, ALERT_CONDITIONS).get();
    }
515945
public static List<NotificationDto> transformToDto(List<Notification> notifications) {
        if (notifications == null) {
            throw new WebApplicationException("Null entity object cannot be converted to Dto object.", Status.INTERNAL_SERVER_ERROR);
        }

        List<NotificationDto> result = new ArrayList<NotificationDto>();

        for (Notification notification : notifications) {
            result.add(transformToDto(notification));
        }
        return result;
    }