You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2003/08/26 04:38:49 UTC

cvs commit: jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/adapter/turbine BaseAdapterTest.java

epugh       2003/08/25 19:38:49

  Modified:    security/src/java/org/apache/fulcrum/security/adapter/turbine
                        BaseAdapter.java
               security/src/test/org/apache/fulcrum/security/adapter/turbine
                        BaseAdapterTest.java
  Log:
  Bug fix for anon user.  I am now able to use this in my .VM code: 
  $data.getUser().getName()
  
  And the data is being pulled using Hibernate from a live database.  All using
  Turbine 2.3 RC 1 and Fulcrum-Security and the Turbine adapter.
  
  Revision  Changes    Path
  1.2       +3 -0      jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/adapter/turbine/BaseAdapter.java
  
  Index: BaseAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/adapter/turbine/BaseAdapter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BaseAdapter.java	26 Aug 2003 01:57:28 -0000	1.1
  +++ BaseAdapter.java	26 Aug 2003 02:38:49 -0000	1.2
  @@ -6,6 +6,7 @@
   import org.apache.commons.beanutils.Converter;
   import org.apache.commons.beanutils.converters.IntegerConverter;
   import org.apache.fulcrum.security.entity.SecurityEntity;
  +import org.apache.fulcrum.security.entity.impl.SecurityEntityImpl;
   import org.apache.turbine.util.security.TurbineSecurityException;
   /**
    * @author Eric Pugh
  @@ -20,6 +21,8 @@
       public BaseAdapter()
       {
           super();
  +        entity = new SecurityEntityImpl();
  +        entity.setName("");
       }
       public BaseAdapter(org.apache.fulcrum.security.entity.SecurityEntity entity)
       {
  
  
  
  1.2       +9 -0      jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/adapter/turbine/BaseAdapterTest.java
  
  Index: BaseAdapterTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/adapter/turbine/BaseAdapterTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BaseAdapterTest.java	26 Aug 2003 01:57:29 -0000	1.1
  +++ BaseAdapterTest.java	26 Aug 2003 02:38:49 -0000	1.2
  @@ -52,4 +52,13 @@
           assertEquals(new Integer(56), ba.getIdAsObj());
     
       }
  +    
  +	public void testGettingNameForNullentity()
  +	  {
  +		 
  +		  BaseAdapter ba = new BaseAdapter();
  +		  assertEquals("",ba.getName());
  +		 
  +  
  +	  }    
   }
  
  
  

RE: Wiki small fix

Posted by oron ogdan <or...@netada.co.uk>.
The page if for migrating to 2.3
so the info need to be correct for 2.3

Eric has fixed it in the wiki and I found the link where I was able to do it
myself,

Regards

Oron

-----Original Message-----
From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
Sent: Tuesday, August 26, 2003 5:45 PM
To: turbine-dev@jakarta.apache.org
Subject: Re: Wiki small fix


"oron ogdan" <or...@netada.co.uk> writes:

What does it say? These entries are different for Turbine 2.2 and 2.3, so
what is written there might be right for 2.2 and there need to be only an
addition.

	Regards
		Henning


>Hi Eric

>Great info on the wiki, I have a small correction,
>On section 6 URI Handling tools
>should be

> tool.request.link    = org.apache.turbine.services.pull.tools.TemplateLink
> tool.request.content = org.apache.turbine.services.pull.tools.ContentTool

>and not what it says

>Oron

>http://www.netada.co.uk

>---------------------------------------------------------------------
>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)

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


Re: Wiki small fix

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"oron ogdan" <or...@netada.co.uk> writes:

What does it say? These entries are different for Turbine 2.2 and 2.3, so
what is written there might be right for 2.2 and there need to be only an
addition.

	Regards
		Henning


>Hi Eric

>Great info on the wiki, I have a small correction, 
>On section 6 URI Handling tools
>should be 

> tool.request.link    = org.apache.turbine.services.pull.tools.TemplateLink
> tool.request.content = org.apache.turbine.services.pull.tools.ContentTool

>and not what it says

>Oron

>http://www.netada.co.uk

>---------------------------------------------------------------------
>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: Wiki small fix

Posted by Scott Eade <se...@backstagetech.com.au>.
oron ogdan wrote:

> Great info on the wiki, I have a small correction,
> On section 6 URI Handling tools
> should be
>
> tool.request.link = org.apache.turbine.services.pull.tools.TemplateLink
> tool.request.content = org.apache.turbine.services.pull.tools.ContentTool
>
> and not what it says

The whole point of a wiki is that everyone (and that includes
you) have the ability to edit the content.

In case others are interested, the page oron is referring
to is the turbine 2.2 to 2.3 migration document:

http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2/Migrating_From_2.2

I have fixed the highlighted problem, thanks for bringing
this to our attention oron.

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




Wiki small fix

Posted by oron ogdan <or...@netada.co.uk>.
Hi Eric

Great info on the wiki, I have a small correction, 
On section 6 URI Handling tools
should be 

 tool.request.link    = org.apache.turbine.services.pull.tools.TemplateLink
 tool.request.content = org.apache.turbine.services.pull.tools.ContentTool

and not what it says

Oron

http://www.netada.co.uk