@Override @Deprecated public SUser createUserWithoutEncryptingPassword(final SUser user) throws SUserCreationException { final String methodName = "createUserWithoutEncryptingPassword"; final SUser hashedUser = BuilderFactory.get(SUserBuilderFactory.class).createNewInstance(user).done(); return createUser(user, methodName, hashedUser); }
@Override public SUser createUser(SUser sUser, SContactInfo personalContactInfo, SContactInfo proContactInfo, String iconFilename, byte[] iconContent) throws SUserCreationException { if (iconFilename != null && iconContent != null) { try { SIcon icon = createIcon(iconFilename, iconContent); ((SUserImpl) sUser).setIconId(icon.getId()); } catch (SRecorderException e) { throw new SUserCreationException(e); } } SUser user = createUser(sUser); if (personalContactInfo != null) { createUserContactInfo(BuilderFactory.get(SContactInfoBuilderFactory.class).createNewInstance(personalContactInfo).setUserId(user.getId()).done()); } if (proContactInfo != null) { createUserContactInfo(BuilderFactory.get(SContactInfoBuilderFactory.class).createNewInstance(proContactInfo).setUserId(user.getId()).done()); } return user; }
@Override public SUser createUser(SUser sUser, SContactInfo personalContactInfo, SContactInfo proContactInfo, String iconFilename, byte[] iconContent) throws SUserCreationException { if (iconFilename != null && iconContent != null) { try { SIcon icon = createIcon(iconFilename, iconContent); ((SUserImpl) sUser).setIconId(icon.getId()); } catch (SRecorderException e) { throw new SUserCreationException(e); } } SUser user = createUser(sUser); if (personalContactInfo != null) { createUserContactInfo(BuilderFactory.get(SContactInfoBuilderFactory.class).createNewInstance(personalContactInfo).setUserId(user.getId()).done()); } if (proContactInfo != null) { createUserContactInfo(BuilderFactory.get(SContactInfoBuilderFactory.class).createNewInstance(proContactInfo).setUserId(user.getId()).done()); } return user; }
@Override @Deprecated public SUser createUserWithoutEncryptingPassword(final SUser user) throws SUserCreationException { final String methodName = "createUserWithoutEncryptingPassword"; final SUser hashedUser = BuilderFactory.get(SUserBuilderFactory.class).createNewInstance(user).done(); return createUser(user, methodName, hashedUser); }
@Override public SUser createUser(final SUser user) throws SUserCreationException { final String methodName = "createUser"; final String hash = encrypter.hash(user.getPassword()); final SUser hashedUser = BuilderFactory.get(SUserBuilderFactory.class).createNewInstance(user).setPassword(hash).done(); return createUser(user, methodName, hashedUser); }
@Override public SUser createUser(final SUser user) throws SUserCreationException { final String methodName = "createUser"; final String hash = encrypter.hash(user.getPassword()); final SUser hashedUser = BuilderFactory.get(SUserBuilderFactory.class).createNewInstance(user).setPassword(hash).done(); return createUser(user, methodName, hashedUser); }