Adding a webuser programatically
(Difference between revisions)
m (formatting) |
m (adding syntax for addWebUser) |
||
Line 9: | Line 9: | ||
The new hashtable is the additional information that OpenCms can store about a user. | The new hashtable is the additional information that OpenCms can store about a user. | ||
+ | |||
+ | <u>addWebUser syntax</u><br /> | ||
+ | '''addWebUser'''(String name, String password, String group, String description, Hashtable additionalInfos) |
Revision as of 19:49, 14 August 2008
The default guest user has permissions to create a new webuser.
Example:
CmsDefaultUsers defaultUsers = new CmsDefaultUsers(); CmsObject obj= OpenCms.initCmsObject(cmsUsers.getUserGuest()); CmsUser user = obj.addWebUser(userId, password, group, "Web User", new Hashtable() ); obj.writeWebUser(user);
The new hashtable is the additional information that OpenCms can store about a user.
addWebUser syntax
addWebUser(String name, String password, String group, String description, Hashtable additionalInfos)