You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/08/20 11:47:14 UTC

cvs commit: jakarta-turbine-2/xdocs/services torque-security-service.xml

henning     2003/08/20 02:47:14

  Modified:    xdocs/services torque-security-service.xml
  Log:
  Corrected lots of little bugs and inconsistencies. Hope this is more understandable now.
  
  Revision  Changes    Path
  1.3       +15 -15    jakarta-turbine-2/xdocs/services/torque-security-service.xml
  
  Index: torque-security-service.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/xdocs/services/torque-security-service.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- torque-security-service.xml	18 Jun 2003 11:48:33 -0000	1.2
  +++ torque-security-service.xml	20 Aug 2003 09:47:14 -0000	1.3
  @@ -279,66 +279,66 @@
   <source><![CDATA[
      User user = TurbineSecurity.getUser("test");
   
  -   String phone = ((CustomObject)(((TorqueUser)user).getPersistentObj())).getPhone();
  +   String phone = ((CustomUser) (((TorqueUser) user).getPersistentObj())).getPhone();
   
      /*  Better readable: */
   
      User         u2  = TurbineSecurity.getUser("test2");
      TorqueUser   tu2 = (TorqueUser) u2;
  -   CustomObject cuo = (CustomObject) u2.getPersistentObj();
  -   String fax       = cup.getFax();
  +   CustomUser   cu  = (CustomUser) u2.getPersistentObj();
  +   String fax       = cu.getFax();
   ]]></source>
   <p>
   Ugly, isn't it? If you get a class cast exception somewhere on the
   way, don't worry. Then you misconfigured either the Torque Security
  -Service (CCE when doing dbu2 = (TorqueUser) u2) or the peer (CCE when doing
  -cuo = (CustomObject) u2.getPersistentObj()).
  +Service (CCE when doing tu2 = (TorqueUser) u2) or the peer (CCE when doing
  +cu = (CustomUser) u2.getPersistentObj()).
   </p>
   <p>
   The elegant way:
   </p>
   <source><![CDATA[
  -public class CustomUser extends TorqueUser
  +public class ExtendedUser extends TorqueUser
   {
  -  public CustomUser()
  +  public ExtendedUser()
     {
         super();
     }
   
  -  public CustomUser(Persistent obj)
  +  public ExtendedUser(Persistent obj)
     {
         super(obj);
     }
   
     public String getPhone()
     {
  -    return ((CustomObject)getPersistentObj()).getPhone();
  +    return ((CustomUser) getPersistentObj()).getPhone();
     }
   
     public void setPhone(String phone)
     {
  -    ((CustomObject)getPersistentObj()).setPhone(phone);
  +    ((CustomUser) getPersistentObj()).setPhone(phone);
     }
   
     public String getFax()
     {
  -    return ((CustomObject)getPersistentObj()).getFax();
  +    return ((CustomUser) getPersistentObj()).getFax();
     }
   
     public void setFax(String fax)
     {
  -    ((CustomObject)getPersistentObj()).setFax(fax);
  +    ((CustomUser) getPersistentObj()).setFax(fax);
     }
   }
   
   TurbineResources.properties:
   
  -services.SecurityService.user.class=CustomUser
  +services.SecurityService.user.class = ExtendedUser
   
   And then:
   
  -CustomUser cu = (CustomUser) TurbineSecurity.getUser("test");
  -String phone = cu.getPhone();
  +ExtendedUser eu = (ExtendedUser) TurbineSecurity.getUser("test");
  +String phone = eu.getPhone();
   ]]></source>
   
   </section>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


RE: cvs commit: jakarta-turbine-2/xdocs/services torque-security-service.xml

Posted by Eric Pugh <ep...@upstate.com>.
Quinton,

Glad you are back..  What is this automated update?  Something on your own
box, or something on the avalon box?  I want to update the fulcrum site as
well.  I could do it manually, but something that does it from CVS would be
better.

Eric

> -----Original Message-----
> From: Quinton McCombs [mailto:quinton@qdog.org]
> Sent: Friday, August 22, 2003 2:14 AM
> To: 'Turbine Developers List'; hps@intermeta.de
> Subject: RE: cvs commit: jakarta-turbine-2/xdocs/services
> torque-security-service.xml
>
>
> I have not been able to monitor the list for a while now.....
>  I have been
> busy changing jobs.  Does the automatic update need to be stopped?
>
> > -----Original Message-----
> > From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
> > Sent: Thursday, August 21, 2003 2:29 AM
> > To: turbine-dev@jakarta.apache.org
> > Subject: Re: cvs commit: jakarta-turbine-2/xdocs/services
> > torque-security-service.xml
> >
> >
> > Scott Eade <se...@backstagetech.com.au> writes:
> >
> > >henning@apache.org wrote:
> >
> > >>  Modified:    xdocs/services torque-security-service.xml
> > >>
> > >>
> > >Thanks for the updates Henning.
> >
> > >Any idea why the link to the Torque Schema no longer works?
> > >I am pretty sure it was generated correctly the previous
> > time the site
> > >was deployed (i.e. it worked for me earlier today).
> >
> > Well, the link to the template service docs is gone, too.
> >
> > I tried to rebuild the site but with not much success and
> > Quinton has some sort of automatic nightly rebuild running
> > which I can't stop and he doesn't respond to mail (maybe he's
> > on holidays).
> >
> > 	Regards
> > 		Henning
> >
> > --
> > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
> > hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/
> >
> > Java, perl, Solaris, Linux, xSP Consulting, Web Services
> > freelance consultant -- Jakarta Turbine Development  --
> hero for hire
> >
> > "Dominate!! Dominate!! Eat your young and aggregate! I have
> > grotty silicon!"
> >       -- AOL CD when played backwards  (User Friendly - 200-10-15)
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


RE: cvs commit: jakarta-turbine-2/xdocs/services torque-security-service.xml

Posted by Quinton McCombs <qu...@qdog.org>.
I have not been able to monitor the list for a while now.....  I have been
busy changing jobs.  Does the automatic update need to be stopped?

> -----Original Message-----
> From: Henning P. Schmiedehausen [mailto:hps@intermeta.de] 
> Sent: Thursday, August 21, 2003 2:29 AM
> To: turbine-dev@jakarta.apache.org
> Subject: Re: cvs commit: jakarta-turbine-2/xdocs/services 
> torque-security-service.xml
> 
> 
> Scott Eade <se...@backstagetech.com.au> writes:
> 
> >henning@apache.org wrote:
> 
> >>  Modified:    xdocs/services torque-security-service.xml
> >>  
> >>
> >Thanks for the updates Henning.
> 
> >Any idea why the link to the Torque Schema no longer works?
> >I am pretty sure it was generated correctly the previous 
> time the site 
> >was deployed (i.e. it worked for me earlier today).
> 
> Well, the link to the template service docs is gone, too.
> 
> I tried to rebuild the site but with not much success and 
> Quinton has some sort of automatic nightly rebuild running 
> which I can't stop and he doesn't respond to mail (maybe he's 
> on holidays).
> 
> 	Regards
> 		Henning
> 
> -- 
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
> hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/
> 
> Java, perl, Solaris, Linux, xSP Consulting, Web Services 
> freelance consultant -- Jakarta Turbine Development  -- hero for hire
> 
> "Dominate!! Dominate!! Eat your young and aggregate! I have 
> grotty silicon!" 
>       -- AOL CD when played backwards  (User Friendly - 200-10-15)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
> 


Re: cvs commit: jakarta-turbine-2/xdocs/services torque-security-service.xml

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Scott Eade <se...@backstagetech.com.au> writes:

>henning@apache.org wrote:

>>  Modified:    xdocs/services torque-security-service.xml
>>  
>>
>Thanks for the updates Henning.

>Any idea why the link to the Torque Schema no longer works?
>I am pretty sure it was generated correctly the previous time
>the site was deployed (i.e. it worked for me earlier today).

Well, the link to the template service docs is gone, too.

I tried to rebuild the site but with not much success and Quinton has
some sort of automatic nightly rebuild running which I can't stop and
he doesn't respond to mail (maybe he's on holidays).

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: cvs commit: jakarta-turbine-2/xdocs/services torque-security-service.xml

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Scott Eade <se...@backstagetech.com.au> writes:

>henning@apache.org wrote:

>>  Modified:    xdocs/services torque-security-service.xml
>>  
>>
>Thanks for the updates Henning.

>Any idea why the link to the Torque Schema no longer works?
>I am pretty sure it was generated correctly the previous time
>the site was deployed (i.e. it worked for me earlier today).

Well, the link to the template service docs is gone, too.

I tried to rebuild the site but with not much success and Quinton has
some sort of automatic nightly rebuild running which I can't stop and
he doesn't respond to mail (maybe he's on holidays).

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

Re: How does the Site docs get uploaded?

Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Eric Pugh" <ep...@upstate.com> writes:

> Hi all,
> 
> What mysterious process uploads the Turbine docs to the website?  Is it some
> script that someone runs?  Or just manually?  I would like to update the
> Fulcrum site...

Email infrastructure@ or root@ and request an account on daedalus.
Web services are still there, though they'll eventually be migrated to
the new beefier minotaur box (which has replaced icarus).
-- 

Daniel Rall

Re: How does the Site docs get uploaded?

Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Eric Pugh" <ep...@upstate.com> writes:

> Hi all,
> 
> What mysterious process uploads the Turbine docs to the website?  Is it some
> script that someone runs?  Or just manually?  I would like to update the
> Fulcrum site...

Email infrastructure@ or root@ and request an account on daedalus.
Web services are still there, though they'll eventually be migrated to
the new beefier minotaur box (which has replaced icarus).
-- 

Daniel Rall

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: How does the Site docs get uploaded?

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Quinton McCombs" <qu...@qdog.org> writes:

>That would be me.  I have a script that runs each night to update the site
>with the latest changes in CVS.  Actually, it is now my former employer that
>is doing it.   

=:-( Can you stop this? I'd prefer to run these scripts @ an apache host.
It's quite unfortunate if you can't change such scipts any longer e.g. after
a move or job change.

	Regards
		Henning



>> -----Original Message-----
>> From: Eric Pugh [mailto:epugh@upstate.com] 
>> Sent: Wednesday, August 20, 2003 12:41 PM
>> To: 'Turbine Developers List'
>> Subject: How does the Site docs get uploaded?
>> 
>> 
>> Hi all,
>> 
>> What mysterious process uploads the Turbine docs to the 
>> website?  Is it some script that someone runs?  Or just 
>> manually?  I would like to update the Fulcrum site...
>> 
>> Eric Pugh
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>> 


>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

RE: How does the Site docs get uploaded?

Posted by Quinton McCombs <qu...@qdog.org>.
That would be me.  I have a script that runs each night to update the site
with the latest changes in CVS.  Actually, it is now my former employer that
is doing it.   

> -----Original Message-----
> From: Eric Pugh [mailto:epugh@upstate.com] 
> Sent: Wednesday, August 20, 2003 12:41 PM
> To: 'Turbine Developers List'
> Subject: How does the Site docs get uploaded?
> 
> 
> Hi all,
> 
> What mysterious process uploads the Turbine docs to the 
> website?  Is it some script that someone runs?  Or just 
> manually?  I would like to update the Fulcrum site...
> 
> Eric Pugh
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
> 


How does the Site docs get uploaded?

Posted by Eric Pugh <ep...@upstate.com>.
Hi all,

What mysterious process uploads the Turbine docs to the website?  Is it some
script that someone runs?  Or just manually?  I would like to update the
Fulcrum site...

Eric Pugh


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


How does the Site docs get uploaded?

Posted by Eric Pugh <ep...@upstate.com>.
Hi all,

What mysterious process uploads the Turbine docs to the website?  Is it some
script that someone runs?  Or just manually?  I would like to update the
Fulcrum site...

Eric Pugh


Re: cvs commit: jakarta-turbine-2/xdocs/services torque-security-service.xml

Posted by Scott Eade <se...@backstagetech.com.au>.
henning@apache.org wrote:

>  Modified:    xdocs/services torque-security-service.xml
>  
>
Thanks for the updates Henning.

Any idea why the link to the Torque Schema no longer works?
I am pretty sure it was generated correctly the previous time
the site was deployed (i.e. it worked for me earlier today).

Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au





Re: cvs commit: jakarta-turbine-2/xdocs/services torque-security-service.xml

Posted by Scott Eade <se...@backstagetech.com.au>.
henning@apache.org wrote:

>  Modified:    xdocs/services torque-security-service.xml
>  
>
Thanks for the updates Henning.

Any idea why the link to the Torque Schema no longer works?
I am pretty sure it was generated correctly the previous time
the site was deployed (i.e. it worked for me earlier today).

Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org