[opencms-dev] Programmatically creating Users with OpenCms 9 API
dayv2005
dpipes at AimNTLS.com
Fri Nov 22 21:30:19 CET 2013
I am trying to figure out how to create users programmatically using the
OpenCms API for version 9.0. I'm working on a plugin that needs to create
users.
I took a look at the wiki and found this link.
Adding a webuser programatically
<http://www.opencms-wiki.org/wiki/Adding_a_webuser_programatically>
When trying to implement this
CmsDefaultUsers defaultUsers = new CmsDefaultUsers();
CmsObject obj= OpenCms.initCmsObject(defaultUsers.getUserGuest());
CmsUser user = obj.addWebUser(userId, password, group, "Web User", new
Hashtable() );
obj.writeWebUser(user);
the method "addWebUser" is no longer available for CmsObject.
--
View this message in context: http://opencms.996256.n3.nabble.com/Programmatically-creating-Users-with-OpenCms-9-API-tp23824.html
Sent from the OpenCMS mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list