portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/registry JetspeedPortletRegistry.java PortletRegistryService.java
Date Mon, 16 Feb 2004 13:29:26 GMT
weaver      2004/02/16 05:29:26

  Modified:    services/registry/src/java/org/apache/jetspeed/registry/impl
                        PersistentPortletRegistryService.java
               services/registry/src/java/org/apache/jetspeed/registry
                        JetspeedPortletRegistry.java
                        PortletRegistryService.java
  Log:
  changed exceptions in certain methods
  
  Revision  Changes    Path
  1.5       +20 -6     jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/registry/impl/PersistentPortletRegistryService.java
  
  Index: PersistentPortletRegistryService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/registry/impl/PersistentPortletRegistryService.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PersistentPortletRegistryService.java	5 Feb 2004 17:12:47 -0000	1.4
  +++ PersistentPortletRegistryService.java	16 Feb 2004 13:29:26 -0000	1.5
  @@ -198,22 +198,36 @@
       /**
        * @see org.apache.jetspeed.services.registry.PortletRegistryService#updatePortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition)
        */
  -    public void updatePortletApplication(PortletApplicationDefinition app) throws TransactionStateException
  +    public void updatePortletApplication(PortletApplicationDefinition app) throws RegistryException
       {
  -        plugin.prepareForUpdate(app);
  +        try
  +        {
  +            plugin.prepareForUpdate(app);
  +        }
  +        catch (TransactionStateException e)
  +        {
  +            throw new RegistryException(e.toString(), e);
  +        }
   
       }
   
       /**
        * @see org.apache.jetspeed.services.registry.PortletRegistryService#removeApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition)
        */
  -    public void removeApplication(PortletApplicationDefinition app) throws TransactionStateException
  +    public void removeApplication(PortletApplicationDefinition app) throws RegistryException
       {
           ArgUtil.notNull(new Object[] { app }, new String[] { "app" }, "removeApplication(PortletApplicationDefinition)");
   
  -        log.info("Removing portlet application " + ((MutablePortletApplication) app).getName());
  -        plugin.prepareForDelete(app);
  -        plugin.invalidateObject(app);
  +        try
  +        {
  +            log.info("Removing portlet application " + ((MutablePortletApplication) app).getName());
  +            plugin.prepareForDelete(app);
  +            plugin.invalidateObject(app);
  +        }
  +        catch (TransactionStateException e)
  +        {
  +			throw new RegistryException(e.toString(), e);
  +        }
       }
   
       /**
  
  
  
  1.3       +2 -2      jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/registry/JetspeedPortletRegistry.java
  
  Index: JetspeedPortletRegistry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/registry/JetspeedPortletRegistry.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JetspeedPortletRegistry.java	4 Feb 2004 21:24:25 -0000	1.2
  +++ JetspeedPortletRegistry.java	16 Feb 2004 13:29:26 -0000	1.3
  @@ -162,7 +162,7 @@
       /**
        * @see org.apache.jetspeed.services.registry.PortletRegistryService#updatePortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition)
        */
  -    public static void updatePortletApplication(PortletApplicationDefinition app) throws
TransactionStateException
  +    public static void updatePortletApplication(PortletApplicationDefinition app) throws
RegistryException
       {
           getService().updatePortletApplication(app);
       }
  
  
  
  1.3       +3 -17     jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/registry/PortletRegistryService.java
  
  Index: PortletRegistryService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/registry/PortletRegistryService.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortletRegistryService.java	4 Feb 2004 21:24:25 -0000	1.2
  +++ PortletRegistryService.java	16 Feb 2004 13:29:26 -0000	1.3
  @@ -75,7 +75,7 @@
    * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
    * @version $Id$
    */
  -public interface PortletRegistryService extends CommonService
  +public interface PortletRegistryService extends CommonService, PortletRegistryComponent
   {
   
       /** The name of this service */
  @@ -171,21 +171,7 @@
           */
       void registerPortletApplication(PortletApplicationDefinition newApp) throws RegistryException;
   
  -    /**
  -        * Makes any changes to the <code>PortletApplicationDefinition</code>
  -        * persistent.
  -        * @param app
  -        */
  -    void updatePortletApplication(PortletApplicationDefinition app) throws TransactionStateException;
  -
  -    void removeApplication(PortletApplicationDefinition app) throws TransactionStateException;
  -
  -    Language createLanguage(
  -        Locale locale,
  -        String title,
  -        String shortTitle,
  -        String description,
  -        Collection keywords)  throws RegistryException;
  +  
           
       /**
        * Lists  portlet init parameters within the system
  
  
  

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