07-18-2007 03:32 PM
07-19-2007 09:07 AM
AuthenticationUtils.startSession("admin", "admin");
NewUserDetails newUser = new NewUserDetails(uname, pass, createPersonProperties(homespace, firstName, lastName, email, orgId));
AdministrationServiceSoapBindingStub administrationService = WebServiceFactory.getAdministrationService();
userDetails = administrationService.createUsers(new NewUserDetails[]{newUser});
private NamedValue[] createPersonProperties(String homeFolder, String firstName, String lastName, String email, String orgId){
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)
};
}
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.