12-11-2006 05:37 AM
// To fill the person properties
private NamedValue[] createPersonProperties(
String homeFolder,
String firstName,
String lastName,
String email,
String orgId)
{
// Create the new user objects
return new NamedValue[] {
new NamedValue(Constants.PROP_USER_HOMEFOLDER, Boolean.FALSE, homeFolder, null),
new NamedValue(Constants.PROP_USER_FIRSTNAME, Boolean.FALSE, firstName, null),
new NamedValue(Constants.PROP_USER_LASTNAME, Boolean.FALSE, lastName, null),
new NamedValue(Constants.PROP_USER_EMAIL, Boolean.FALSE, email, null),
new NamedValue(Constants.PROP_USER_ORGID, Boolean.FALSE, orgId, null) };
}
// The main function
…
NamedValue[] properties = createPersonProperties(…data…);
NewUserDetails[] newUser = new NewUserDetails[]{new NewUserDetails(user.getUserName(), password, properties)};
try {
administrationService.createUsers(newUser);
// and the upper line crash, it produces RemoteExceptio
12-21-2006 09:24 AM
12-27-2006 05:58 AM
03-15-2007 11:10 AM
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.