Interface SystemMessageService

All Superinterfaces:
BaseFinder<SystemMessage,Long>, EditableService<SystemMessage,Long>

public interface SystemMessageService extends EditableService<SystemMessage,Long>
  • Method Details

    • getSystemMessages

      CountedResult<SystemMessage> getSystemMessages(Integer start, Integer limit, String orderBy, SortDirection orderDirection)
      Pobiera komunikaty
      Parameters:
      start - start
      limit - limit
      orderBy - pole, po którym sortujemy
      orderDirection - kierunek sortowania
      Returns:
      komunikaty
    • getNewSystemMessagesForUser

      List<SystemMessageDto> getNewSystemMessagesForUser(String userName, boolean afterLogin)
      Pobiera aktualne komunikaty dla użytkownika
      Parameters:
      userName - login użytkownika
      afterLogin - czy pobranie komunikatów nastąpiło po zalogowaniu
      Returns:
      aktualne komunikaty dla użytkownika
    • get

      Pobiera komunikat
      Specified by:
      get in interface BaseFinder<SystemMessage,Long>
      Parameters:
      id - Identyfikator obiektu.
      Returns:
      komunikat
      Throws:
      SystemMessageNotFoundException
    • sanitizeMessage

      String sanitizeMessage(String message)
      Escepuje wiadomość
      Parameters:
      message - wiadomość do wyescepowania
    • validate

      void validate(SystemMessage systemMessage)
      Sprawdza poprawność komunikatu