| | |
| | | |
| | | public static String getMessage(String language, String identifier) |
| | | { |
| | | if (configuration == null) return identifier; |
| | | return configuration.getMessage(language, identifier); |
| | | } |
| | | |
| | |
| | | |
| | | public static String getMessage(String identifier) |
| | | { |
| | | return configuration != null ? configuration.getMessage(identifier) : identifier; |
| | | try |
| | | { |
| | | return configuration.getMessage(identifier); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return(identifier); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | public static void printcorrect(String service, String message) |
| | | { |
| | | try |
| | | { |
| | | controllerListenerDEBUG.println(new Note(Trace.TRACE_CORRECT, service + " | " + message), false); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | } |
| | | } |
| | | |
| | | |
| | | public static void printwarning(String service, String message) |
| | | { |
| | | try |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | public static Trace traceError(String service, String action, String resource, String exception) |
| | | { |
| | | Trace trace = Trace.getTraceError(Shared.getApplicationName(), service, Shared.getMessage(action), exception); |
| | | trace.resource = resource; |
| | | println(trace, true); |
| | | return trace; |
| | | } |
| | | |
| | | |
| | | public static Trace traceWarning(String service, String action, String resource) |
| | | { |
| | | Trace trace = Trace.getTraceWarning(Shared.getApplicationName(), service, Shared.getMessage(action), Shared.getMessage("Success")); |