Creating Users using JAVA API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2008 08:48 AM
I am using Alfresco 2.9.In my application i need to create users using JAVA API. Can anyone help me in this.
Thanks in Advance
Regards,
Yvinodh.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 02:38 PM
Hey all, thanks in advance for the help. I'm writing a file movement utility using the RAAR 1.5 api and Alf 2.1. I'm noticing that when a node is copied in the same folder, the paths of the two nodes remain identical. How does one change the path of the new node once it's created?
Not sure I understand what you mean by identical paths. Can you give an example?
Also, is there a way to copy a node and specify the new name?Yes, you could use the NodeService to copy as usual then rename the document:
NodeRef rename(Ticket ticket, NodeRef nodeRef, String newName)
Hope this helps,
–Alaaeldin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2009 05:56 AM
How do you change the password for the users programatically?
i have the same problem…

has anyone solved this problem?
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2009 10:09 AM
The good news is: we'll add one and release a new version, 1.10.0, (hopefully this weekend).
I created a JIRA for this, you can track it here:
http://issues.rivetlogic.org/browse/CMA-40
You'll also be interested in this (makes it easier to add a user to a group, this is also planned for 1.10.0):
http://issues.rivetlogic.org/browse/CMA-39
Cheers.
–Sumer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2009 11:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2009 07:38 PM
Changelog: http://wiki.rivetlogic.com/display/RAAR/Change+Log
Download: http://wiki.rivetlogic.org/display/RAAR/Downloads
Cheers.
–Sumer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 02:22 AM
perhaps, my usages for the setting of password were unclear (my mistake).
i am looking at the code for 1.10.0, i am not sure if the following scenarios are applicable
1. force reset / forgot password (no old password required)
2. triggered by admin (no old password required)
i will try to perform test and post my results later.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:13 AM
Stay tuned.
–Sumer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2009 11:36 AM
Changelog: http://wiki.rivetlogic.com/display/RAAR/Change+Log
Download: http://wiki.rivetlogic.org/display/RAAR/Downloads
Cheers.
–Sumer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2009 11:59 AM
I am still struggling with creating a user, using the java api, and logging in with that user from the ui.
I am running webscripts backed by java and output to a xml freemarker template. Now I have managed to authenticate as admin using the AuthenticationService then creating a person object using createPerson() from the PersonService. It creates the person object and a home space for the person in \Company Home\User Homes\[user name] with all the properties I define, but still i cannot log in as this person.
From what I've read in the forum and the wiki etc. I've come to realise that the person object holds no account properties, ie password etc. So therefore there is a need to associate a user object with this person object.
My question now is, am I on the right track? and if so, How do I create a user object and associate it with the person object, so that I can log into the alfresco UI as this person?
If I'm completely off track please tell me and guide me in the right way.
Any help would be greatly appreciated!!
Regards
Gerrit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2009 12:59 PM
In AFS (Alfresco Foundation Services) you need to make a number of calls to create a new user fully:
// create the node to represent the PersonNodeRef newPerson = this.personService.createPerson(props); // ensure the user can access their own Person objectthis.permissionService.setPermission(newPerson, authority, permissionService.getAllPermission(), true); // create the ACEGI Authentication instance for the new userthis.authenticationService.createAuthentication(authority, password.toCharArray());
Hope this helps,–Alaaeldin
