07-10-2014 07:06 PM
def insertUser(user:User) = {
val user = identityService.newUser(user.id.toString)
identityService.saveUser(user)
}
07-11-2014 12:31 AM
@Override
protected void initDefaultCommandConfig() {
if (defaultCommandConfig == null) {
defaultCommandConfig = new CommandConfig().setContextReusePossible(true);
}
}
07-11-2014 10:13 AM
07-14-2014 01:31 AM
try {
User secondUser = identityService.newUser("testuser2");
if (true)
throw new RuntimeException();
identityService.saveUser(secondUser);
fail("Exception should have been thrown");
} catch (RuntimeException re) {
}
assertEquals(0, identityService.createUserQuery().userId("testuser2").count());
identityService.newUser("testuser2");
creates user object with Id set. identityService.saveUser(secondUser);
persists object into the DB.Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.