cancel
Showing results for 
Search instead for 
Did you mean: 

user Store

tood12
Champ in-the-making
Champ in-the-making
Hi,
I have made a html file with text boxes that a user can use to register. I need those to be passed to the alfrescoUserStore and intern be saved to database. Does any one know how to post entred data from textboxes to the alfrescoUserStore?
Please Help,
Flavia
11 REPLIES 11

mrogers
Star Contributor
Star Contributor
Use the PersonService

tood12
Champ in-the-making
Champ in-the-making
What is the person service?

alex54
Champ on-the-rise
Champ on-the-rise
The repository service to manage Persons (users)   :wink:

I think you need to add some informations to be able to help you: What data you entered for example => the user login for instance ??

tood12
Champ in-the-making
Champ in-the-making
Hi alex54,
The Data I need to enter are First Name:, Last Name:, Email, Phone, username, password, and confirm password.
The username is the firstname.lastname and the password is autogenerated
Kind regards,
Flavia

mrogers
Star Contributor
Star Contributor
So you probably want to write a web script which takes your POST data and then uses either the Java Script or Java API.    

Take a  look at the existing scripts e.g. /api/people which create users as a starting point.

tood12
Champ in-the-making
Champ in-the-making
Mrogers,
Thanks for your reply. Yes what I want to do is to get the post data to the alfresco user store. I have tried looking for the script but I'm not able to find it. Please paste the full path for /api/people and any more information on starting up will be appreciates
Kind Regards,
Flavia

invictus9
Champ in-the-making
Champ in-the-making
Mrogers,
Thanks for your reply. Yes what I want to do is to get the post data to the alfresco user store. I have tried looking for the script but I'm not able to find it. Please paste the full path for /api/people and any more information on starting up will be appreciates
Kind Regards,
Flavia

You will have to read for yourself how to do this. In the wiki, look for "Web Scripts" and "Javascript API" (that's two different sets of pages). The web script is the piece that responds to the form submit, and carries out the action. The Javascript code that you execute inside the web script will actually create the person node with those attributes.

The file contentModel.xml in your Alfresco installation gives the properties for cmSmiley Tongueerson that you will need to set in the person node once you have created it.

maqsood
Confirmed Champ
Confirmed Champ
Hi,

Does anybody have any idea, how to retrieve cmSmiley Tongueerson properties using web services or java api?
Is it possible to add extra property to cmSmiley Tongueerson? how ?

Thanks

invictus9
Champ in-the-making
Champ in-the-making
Hi,

Does anybody have any idea, how to retrieve cmSmiley Tongueerson properties using web services or java api?
Is it possible to add extra property to cmSmiley Tongueerson? how ?

Thanks

Look up the Javascript API on the Alfresco wiki. There are Javascript functions that manage the person nodes.