Пример #1
0
  public NotificationDTO createNotificationDTO(DetailInputDTO detailInputDTO, String action) {

    NotificationDTO notificationDTO = null;

    notificationDTO = new NotificationDTO();
    notificationDTO.setAction(action);
    notificationDTO.setTrasactionId(detailInputDTO.getTransactionId());
    notificationDTO.setEntityId(String.valueOf(detailInputDTO.getId()));
    notificationDTO.setCount(1);

    return notificationDTO;
  }
Пример #2
0
  public NotificationDTO createNotificationDTO(
      SearchInputDTO searchInputDTO, SearchResultDTO searchResultDTO, String action) {

    NotificationDTO notificationDTO = null;

    notificationDTO = new NotificationDTO();
    notificationDTO.setAction(action);
    notificationDTO.setTrasactionId(searchInputDTO.getTransactionId());
    notificationDTO.setSearchInputDTO(searchInputDTO);
    notificationDTO.setSearchResultDTO(searchResultDTO);
    notificationDTO.setCount(1);

    return notificationDTO;
  }