Interface SystemMessageService
- All Superinterfaces:
BaseFinder<SystemMessage, Long>, EditableService<SystemMessage, Long>
-
Method Summary
Modifier and TypeMethodDescriptionPobiera komunikatgetNewSystemMessagesForUser(String userName, boolean afterLogin) Pobiera aktualne komunikaty dla użytkownikagetSystemMessages(Integer start, Integer limit, String orderBy, SortDirection orderDirection) Pobiera komunikatysanitizeMessage(String message, SystemMessageType messageType) Escepuje wiadomośćupdateSystemMessage(Long id, SystemMessage systemMessage) Modyfikuje komunikatvoidvalidate(SystemMessage systemMessage) Sprawdza poprawność komunikatuMethods inherited from interface BaseFinder
count, countAll, findByCriteria, findByCriteria, findByProperty, findOne, findOneByProperty, get, getAll, getAll, getCountedResult, getCountedResult, scrollByCriteria, scrollByCriteriaMethods inherited from interface EditableService
delete, save, update
-
Method Details
-
getSystemMessages
CountedResult<SystemMessage> getSystemMessages(Integer start, Integer limit, String orderBy, SortDirection orderDirection) Pobiera komunikaty- Parameters:
start- startlimit- limitorderBy- pole, po którym sortujemyorderDirection- kierunek sortowania- Returns:
- komunikaty
-
getNewSystemMessagesForUser
Pobiera aktualne komunikaty dla użytkownika- Parameters:
userName- login użytkownikaafterLogin- czy pobranie komunikatów nastąpiło po zalogowaniu- Returns:
- aktualne komunikaty dla użytkownika
-
get
Pobiera komunikat- Specified by:
getin interfaceBaseFinder<SystemMessage, Long>- Parameters:
id- Identyfikator obiektu.- Returns:
- komunikat
- Throws:
SystemMessageNotFoundException
-
sanitizeMessage
Escepuje wiadomość- Parameters:
message- wiadomość do wyescepowaniamessageType- typ wiadomości
-
validate
Sprawdza poprawność komunikatu -
updateSystemMessage
Modyfikuje komunikat- Parameters:
id- Id komunikatusystemMessage- zmodyfikowany komunikat
-