You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Eduard Ketler <ed...@web.de> on 2007/04/20 13:14:43 UTC
Method to create User
Can somebody say me where i find the class and method where a new user will
be created? I need the function to see how the id will be generated.
--
View this message in context: http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10098126
Sent from the Roller - Dev mailing list archive at Nabble.com.
Re: Method to create User
Posted by sedat ciftci <se...@yahoo.com>.
As far as I know, id field is generated automatically.
If you look at the getID() method of
org.apache.roller.pojos.UserData,
**********************
/** Id of the User.
* Not remote since primary key may be extracted
by other means.
*
* @struts.validator type="required"
msgkey="errors.required"
* @ejb:persistent-field
* @hibernate.id column="id"
* generator-class="uuid.hex"
unsaved-value="null"
*/
public String getId() {
return this.id;
}
*******************************
it says that the generator class for id is uuid.hex.
That is, you do not have to set the id field; it will
be automatically set.
Sedat
--- Eduard Ketler <ed...@web.de> wrote:
>
> I looked for it and find the method flushed. But it
> doesnt tells me how the
> id will be generated. I cant find the details for
> flushed?
>
> greetings Eduard Ketler
>
>
>
> Richard Jones-13 wrote:
> >
> > Have a look at:
> >
> >
>
org.apache.roller.ui.core.struts.actions.UserBaseAction
> >
>
org.apache.roller.ui.core.struts.actions.UserNewAction
> >
>
org.apache.roller.ui.admin.struts.actions.UserAdminAction
> >
> > I believe the Id's are created when the user data
> is 'flushed'.
> >
> > HTH
> >
> > - Richard
> >
> >
> >
> >
> > On 20/04/07, Eduard Ketler <ed...@web.de>
> wrote:
> >>
> >> Can somebody say me where i find the class and
> method where a new user
> >> will
> >> be created? I need the function to see how the id
> will be generated.
> >> --
> >> View this message in context:
> >>
>
http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10098126
> >> Sent from the Roller - Dev mailing list archive
> at Nabble.com.
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10135639
> Sent from the Roller - Dev mailing list archive at
> Nabble.com.
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: Method to create User
Posted by Eduard Ketler <ed...@web.de>.
I looked for it and find the method flushed. But it doesnt tells me how the
id will be generated. I cant find the details for flushed?
greetings Eduard Ketler
Richard Jones-13 wrote:
>
> Have a look at:
>
> org.apache.roller.ui.core.struts.actions.UserBaseAction
> org.apache.roller.ui.core.struts.actions.UserNewAction
> org.apache.roller.ui.admin.struts.actions.UserAdminAction
>
> I believe the Id's are created when the user data is 'flushed'.
>
> HTH
>
> - Richard
>
>
>
>
> On 20/04/07, Eduard Ketler <ed...@web.de> wrote:
>>
>> Can somebody say me where i find the class and method where a new user
>> will
>> be created? I need the function to see how the id will be generated.
>> --
>> View this message in context:
>> http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10098126
>> Sent from the Roller - Dev mailing list archive at Nabble.com.
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10135639
Sent from the Roller - Dev mailing list archive at Nabble.com.
Re: Method to create User
Posted by Eduard Ketler <ed...@web.de>.
There is no adminprotocol under org/apache/roller/webservices/adminprotocol?
Where can i find the documentation. I don't know where i find the dev guide.
How cat i use the admin protocol?
greetings Eduard Ketler
Anil Gangolli wrote:
>
>
> To avoid issues related to breaking various contraints and expectations of
> the app, your best bet is probably to use the "experimental" admin
> protocol,
> rather than loading these directly in the db.
>
> Look under org/apache/roller/webservices/adminprotocol and I think there
> is
> documentation in the dev guide.
>
> --a.
>
>
>
>
> ----- Original Message -----
> From: "Richard Jones" <fu...@gmail.com>
> To: <de...@roller.apache.org>
> Sent: Friday, April 20, 2007 4:35 AM
> Subject: Re: Method to create User
>
>
>> Have a look at:
>>
>> org.apache.roller.ui.core.struts.actions.UserBaseAction
>> org.apache.roller.ui.core.struts.actions.UserNewAction
>> org.apache.roller.ui.admin.struts.actions.UserAdminAction
>>
>> I believe the Id's are created when the user data is 'flushed'.
>>
>> HTH
>>
>> - Richard
>>
>>
>>
>>
>> On 20/04/07, Eduard Ketler <ed...@web.de> wrote:
>>>
>>> Can somebody say me where i find the class and method where a new user
>>> will
>>> be created? I need the function to see how the id will be generated.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10098126
>>> Sent from the Roller - Dev mailing list archive at Nabble.com.
>>>
>>>
>>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10135615
Sent from the Roller - Dev mailing list archive at Nabble.com.
Re: Method to create User
Posted by Anil Gangolli <an...@busybuddha.org>.
To avoid issues related to breaking various contraints and expectations of
the app, your best bet is probably to use the "experimental" admin protocol,
rather than loading these directly in the db.
Look under org/apache/roller/webservices/adminprotocol and I think there is
documentation in the dev guide.
--a.
----- Original Message -----
From: "Richard Jones" <fu...@gmail.com>
To: <de...@roller.apache.org>
Sent: Friday, April 20, 2007 4:35 AM
Subject: Re: Method to create User
> Have a look at:
>
> org.apache.roller.ui.core.struts.actions.UserBaseAction
> org.apache.roller.ui.core.struts.actions.UserNewAction
> org.apache.roller.ui.admin.struts.actions.UserAdminAction
>
> I believe the Id's are created when the user data is 'flushed'.
>
> HTH
>
> - Richard
>
>
>
>
> On 20/04/07, Eduard Ketler <ed...@web.de> wrote:
>>
>> Can somebody say me where i find the class and method where a new user
>> will
>> be created? I need the function to see how the id will be generated.
>> --
>> View this message in context:
>> http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10098126
>> Sent from the Roller - Dev mailing list archive at Nabble.com.
>>
>>
>>
>
Re: Method to create User
Posted by Richard Jones <fu...@gmail.com>.
Have a look at:
org.apache.roller.ui.core.struts.actions.UserBaseAction
org.apache.roller.ui.core.struts.actions.UserNewAction
org.apache.roller.ui.admin.struts.actions.UserAdminAction
I believe the Id's are created when the user data is 'flushed'.
HTH
- Richard
On 20/04/07, Eduard Ketler <ed...@web.de> wrote:
>
> Can somebody say me where i find the class and method where a new user will
> be created? I need the function to see how the id will be generated.
> --
> View this message in context: http://www.nabble.com/Method-to-create-User-tf3615284s12275.html#a10098126
> Sent from the Roller - Dev mailing list archive at Nabble.com.
>
>
>