Beispiel #1
0
 /**
  * 로그인ID 존재 여부, 로그인ID 예약어 여부
  *
  * @param loginId 로그인ID
  * @return
  */
 public static Result isUserExist(String loginId) {
   ObjectNode result = Json.newObject();
   result.put("isExist", User.isLoginIdExist(loginId));
   result.put("isReserved", ReservedWordsValidator.isReserved(loginId));
   return ok(result);
 }
Beispiel #2
0
 /**
  * check the given {@code loginId} is being used by someone else's logindId or group name, and
  * whether {@code loginId} is a reserved word or not.
  *
  * @param name
  * @return
  * @see User#isLoginIdExist(String)
  * @see Organization#isNameExist(String)
  * @see ReservedWordsValidator#isReserved(String)
  */
 public static Result isUsed(String name) {
   ObjectNode result = Json.newObject();
   result.put("isExist", User.isLoginIdExist(name) || Organization.isNameExist(name));
   result.put("isReserved", ReservedWordsValidator.isReserved(name));
   return ok(result);
 }