- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Gson g =
new Gson()
GsonBuilder gsonBuilder;gsonBuilder.create()
new GsonBuilder().create()
- Smart code suggestions by Codota
}
/** * Determine if the email can register itself or needs to be * created by a site administrator first. * * @param objectModel * The Cocoon object model * @param email * The email of the person to be registered. * @return true if the email can register, otherwise false. */ public static boolean canSelfRegister(Map objectModel, String email) throws SQLException { final HttpServletRequest request = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); Context context = ContextUtil.obtainContext(objectModel); if (SystemwideAlerts.canUserStartSession()) { return AuthenticationManager.canSelfRegister(context, request, email); } else { // System wide alerts is preventing new sessions. return false; } }
AuthenticationManager.canSelfRegister(context, request, email);