Class MessageUtils

    • Constructor Detail

      • MessageUtils

        public MessageUtils()
    • Method Detail

      • cleanErrorMsg

        public static void cleanErrorMsg()
        Methode zum entfernen aller Fehler-Meldungen der Oberfläche
      • addErrorMsg

        public static void addErrorMsg​(String i18nTitle,
                                       String i18nDetail)
        Methode zum Erzeugen einer neuen Fehlermeldung
        Parameters:
        i18nTitle - String der Titel der Fehlermeldung
        i18nDetail - String die eigentliche Fehlermeldung
      • addErrorMsgToComponent

        public static void addErrorMsgToComponent​(String componentId,
                                                  String i18nTitle,
                                                  String i18nDetail)
      • addErrorMsg

        public static void addErrorMsg​(String i18nTitle,
                                       Throwable exception)
      • addErrorMsgToComponent

        public static void addErrorMsgToComponent​(String componentId,
                                                  String i18nTitle,
                                                  Throwable exception)
        Methode zum Erzeugen einer neuen Fehlermeldung
        Parameters:
        i18nTitle - String der Titel der Fehlermeldung
        exception - Throwable der eigentliche Fehler in Form einer Exception
      • getErrorMessage

        public static String getErrorMessage​(Throwable exception)
      • addErrorMsgToComponent

        public static void addErrorMsgToComponent​(String componentId,
                                                  Throwable exception)
      • addErrorMsg

        public static void addErrorMsg​(Throwable exception)
      • addErrorMsgToComponent

        public static void addErrorMsgToComponent​(String componentId,
                                                  String i18nTitle,
                                                  String i18nDetail,
                                                  Object... params)
      • addErrorMsg

        public static void addErrorMsg​(String i18nTitle,
                                       String i18nDetail,
                                       Object... params)
      • errorMsg

        public static javax.faces.application.FacesMessage errorMsg​(String i18nTitle,
                                                                    String i18nDetail,
                                                                    Object... params)
      • addErrorMsgToComponent

        public static void addErrorMsgToComponent​(String componentId,
                                                  String i18nDetail,
                                                  Object... params)
      • addErrorMsg

        public static void addErrorMsg​(String i18nDetail,
                                       Object... params)
      • errorMsg

        public static javax.faces.application.FacesMessage errorMsg​(String i18nDetail,
                                                                    Object... params)
      • addErrorMsgToComponent

        public static void addErrorMsgToComponent​(String componentId,
                                                  String i18nDetail)
      • addErrorMsg

        public static void addErrorMsg​(String i18nDetail)
      • addErrorMsgFromString

        public static void addErrorMsgFromString​(String summary)
      • addErrorMsgFromString

        public static void addErrorMsgFromString​(String summary,
                                                 String details)
      • addWarnMsgToComponent

        public static void addWarnMsgToComponent​(String componentId,
                                                 String i18nTitle,
                                                 String i18nDetail)
      • addWarnMsg

        public static void addWarnMsg​(String i18nTitle,
                                      String i18nDetail)
      • addWarnMsgToComponent

        public static void addWarnMsgToComponent​(String componentId,
                                                 String i18nTitle,
                                                 String i18nDetail,
                                                 Object... params)
      • addWarnMsg

        public static void addWarnMsg​(String i18nTitle,
                                      String i18nDetail,
                                      Object... params)
      • addWarnMsgToComponent

        public static void addWarnMsgToComponent​(String componentId,
                                                 String i18nDetail,
                                                 Object... params)
      • addWarnMsg

        public static void addWarnMsg​(String i18nDetail,
                                      Object... params)
      • addWarnMsgToComponent

        public static void addWarnMsgToComponent​(String componentId,
                                                 String i18nDetail)
      • addWarnMsg

        public static void addWarnMsg​(String i18nDetail)
      • addWarnMsgFromString

        public static void addWarnMsgFromString​(String summary)
      • addWarnMsgFromString

        public static void addWarnMsgFromString​(String summary,
                                                String details)
      • addInfoMsg

        public static void addInfoMsg​(String i18nTitle,
                                      String i18nDetail)
      • addInfoMsgToComponent

        public static void addInfoMsgToComponent​(String componentId,
                                                 String i18nTitle,
                                                 String i18nDetail)
      • addInfoMsg

        public static void addInfoMsg​(String i18nTitle,
                                      String i18nDetail,
                                      Object... params)
      • addInfoMsgToComponent

        public static void addInfoMsgToComponent​(String componentId,
                                                 String i18nTitle,
                                                 String i18nDetail,
                                                 Object... params)
      • addInfoMsg

        public static void addInfoMsg​(String i18nDetail,
                                      Object... params)
      • addInfoMsgToComponent

        public static void addInfoMsgToComponent​(String componentId,
                                                 String i18nDetail,
                                                 Object... params)
      • addInfoMsg

        public static void addInfoMsg​(String i18nDetail)
      • addInfoMsgToComponent

        public static void addInfoMsgToComponent​(String componentId,
                                                 String i18nDetail)
      • addInfoMsgFromString

        public static void addInfoMsgFromString​(String summary)
      • addInfoMsgFromString

        public static void addInfoMsgFromString​(String summary,
                                                String details)
      • addMsg

        public static void addMsg​(javax.faces.application.FacesMessage.Severity severity,
                                  String i18nTitle,
                                  String i18nDetail,
                                  Object... params)
      • msg

        public static javax.faces.application.FacesMessage msg​(javax.faces.application.FacesMessage.Severity severity,
                                                               String i18nTitle,
                                                               String i18nDetail,
                                                               Object... params)
      • addMsgToComponent

        public static void addMsgToComponent​(String componentId,
                                             javax.faces.application.FacesMessage.Severity severity,
                                             String i18nTitle,
                                             String i18nDetail,
                                             Object... params)
      • addMsg

        public static void addMsg​(javax.faces.application.FacesMessage msg)
      • addMsgs

        public static void addMsgs​(Iterable<javax.faces.application.FacesMessage> msgs)
      • addMsg

        public static void addMsg​(String componentId,
                                  javax.faces.application.FacesMessage msg)
      • addMsg

        public static void addMsg​(FCMessage msg)
      • addMsgToComponent

        public static void addMsgToComponent​(String componentId,
                                             FCMessage msg)
      • getNewInfoMsg

        public static javax.faces.application.FacesMessage getNewInfoMsg​(String i18nDetail)
      • getNewInfoMsg

        public static javax.faces.application.FacesMessage getNewInfoMsg​(String i18nTitle,
                                                                         String i18nDetail,
                                                                         Object... params)
      • getNewWarnMsg

        public static javax.faces.application.FacesMessage getNewWarnMsg​(String i18nDetail)
      • getNewWarnMsg

        public static javax.faces.application.FacesMessage getNewWarnMsg​(String i18nTitle,
                                                                         String i18nDetail,
                                                                         Object... params)
      • getNewErrorMsg

        public static javax.faces.application.FacesMessage getNewErrorMsg​(String i18nDetail)
      • getNewErrorMsg

        public static javax.faces.application.FacesMessage getNewErrorMsg​(Throwable exception)
      • getNewErrorMsg

        public static javax.faces.application.FacesMessage getNewErrorMsg​(String i18nTitle,
                                                                          String i18nDetail,
                                                                          Object... params)
      • getNewMsg

        public static final javax.faces.application.FacesMessage getNewMsg​(javax.faces.application.FacesMessage.Severity severity,
                                                                           String i18nTitle,
                                                                           String i18nDetail,
                                                                           Object... params)