portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/portal/service JetspeedPersistenceService.java
Date Wed, 25 Apr 2001 00:06:05 GMT
taylor      01/04/24 17:06:05

  Modified:    src/java/org/apache/jetspeed/portal/service
                        JetspeedPersistenceService.java
  Log:
  ProfileException must be caught
  
  Revision  Changes    Path
  1.3       +18 -4     jakarta-jetspeed/src/java/org/apache/jetspeed/portal/service/JetspeedPersistenceService.java
  
  Index: JetspeedPersistenceService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/service/JetspeedPersistenceService.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JetspeedPersistenceService.java	2001/03/07 06:48:00	1.2
  +++ JetspeedPersistenceService.java	2001/04/25 00:06:05	1.3
  @@ -93,8 +93,15 @@
           // FIX ME
           // we urgently need a "what pages does a user have" method
           // for now we just assume it's those two only
  -   		Profile profile = ProfileManager.getSessionProfile(aRunData);
  -		loadPage(portletName, profile);
  +        try
  +        {
  +       		Profile profile = ProfileManager.getSessionProfile(aRunData);
  +	    	loadPage(portletName, profile);
  +        }
  +        catch (ProfileException ex)
  +        {
  +            throw new ServiceException("Persistence Service failed init: " + ex.toString());
  +        }
           // dst: loadPage (iProfiler.getUserURL (aRunData.getUser ().getUserName (), MimeType.HTML),
portletName);
           // dst: loadPage (iProfiler.getUserURL (aRunData.getUser ().getUserName (), MimeType.WML),
portletName);
       }
  @@ -104,9 +111,16 @@
           iRunData = aRunData;
   
          String portletName = param;
  +       try
  +       {
  +    	    Profile profile = ProfileManager.getSessionProfile(aRunData);
  +		    loadPage(portletName, profile);
  +        }
  +        catch (ProfileException ex)
  +        {
  +            throw new ServiceException("Persistence Service failed init: " + ex.toString());
  +        }
   
  -    	Profile profile = ProfileManager.getSessionProfile(aRunData);
  -		loadPage(portletName, profile);
       }
   
       public String getName ()
  
  
  

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


Mime
View raw message