public static RequestParameter fromRequestName(String requestName) { if (ClientUtils.isNotBlank(requestName)) { for (final RequestParameter e : values()) { if (e.getRequestName().equals(requestName)) { return e; } } } return null; }
/** * Shows the given message into a new notification widget. The notifications widget are * graphically stacked. * * @param title The title. * @param html The message. * @param type The message's type. */ static void show(final String title, final String html, MessageType type) { final Info info = new Info(ClientUtils.isNotBlank(title) ? title : MessageType.getTitle(type), html); info.show(type); }
public String getRequestName() { return ClientUtils.toLowerCase(name()); }
public static String getRequestName(RequestParameter requestParameter) { return ClientUtils.toLowerCase(requestParameter.name()); }