weaver      2004/10/29 07:14:08

  Modified:    jetspeed-api/src/java/org/apache/jetspeed/components/portletregistry
                        PortletRegistry.java
  Added:       jetspeed-api/src/java/org/apache/jetspeed/components/portletregistry
                        FailedToStorePortletDefinitionException.java
  Removed:     jetspeed-api/src/java/org/apache/jetspeed/components/portletregistry
                        PortletRegistryComponent.java
  Log:
  see: http://nagoya.apache.org/jira/browse/JS2-144
  - refactor of registry and entity DAO
  
  Revision  Changes    Path
  1.2       +33 -12    
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/portletregistry/PortletRegistry.java
  
  Index: PortletRegistry.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/portletregistry/PortletRegistry.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PortletRegistry.java      12 Oct 2004 20:22:48 -0000      1.1
  +++ PortletRegistry.java      29 Oct 2004 14:14:08 -0000      1.2
  @@ -1,8 +1,17 @@
   /*
  - * Created on Oct 8, 2004
  - *
  - * TODO To change the template for this generated file go to
  - * Window - Preferences - Java - Code Generation - Code and Comments
  + * Copyright 2000-2004 The Apache Software Foundation.
  + * 
  + * Licensed under the Apache License, Version 2.0 (the "License");
  + * you may not use this file except in compliance with the License.
  + * You may obtain a copy of the License at
  + * 
  + *      http://www.apache.org/licenses/LICENSE-2.0
  + * 
  + * Unless required by applicable law or agreed to in writing, software
  + * distributed under the License is distributed on an "AS IS" BASIS,
  + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  + * See the License for the specific language governing permissions and
  + * limitations under the License.
    */
   package org.apache.jetspeed.components.portletregistry;
   
  @@ -19,19 +28,20 @@
   
   /**
    * <p>
  - * PortletRegistry
  - * </p>
  - * <p>
  - *
  + * PortletRegistryComponentImpl
    * </p>
  + * 
  + * 
  + * @
    * @author <a href="mailto:[EMAIL PROTECTED]">Scott T. Weaver</a>
  - * @version $Id$
  + * @version $ $
    *
    */
   public interface PortletRegistry
   {
  +
       Language createLanguage( Locale locale, String title, String shortTitle, String 
description, Collection keywords )
  -            throws RegistryException;
  +    throws RegistryException;
   
       List getAllPortletDefinitions();
   
  @@ -146,6 +156,17 @@
        */
       void updatePortletApplication( PortletApplicationDefinition app ) throws 
RegistryException;
       
  -    void savePortletDefinition(PortletDefinition portlet) throws RegistryException;
  +    /**
  +     * 
  +     * <p>
  +     * savePortletDefinition
  +     * </p>
  +     *
  +     * @param portlet
  +     * @throws FailedToStorePortletDefinitionException
  +     */
  +    void savePortletDefinition(PortletDefinition portlet) throws 
FailedToStorePortletDefinitionException;
  +     
  +     
   
  -}
  \ No newline at end of file
  +}
  
  
  
  1.1                  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/portletregistry/FailedToStorePortletDefinitionException.java
  
  Index: FailedToStorePortletDefinitionException.java
  ===================================================================
  /*
   * Created on Oct 22, 2004
   *
   * TODO To change the template for this generated file go to
   * Window - Preferences - Java - Code Generation - Code and Comments
   */
  package org.apache.jetspeed.components.portletregistry;
  
  import org.apache.pluto.om.portlet.PortletDefinition;
  
  /**
   * <p>
   * FailedToStorePortletDefinitionException
   * </p>
   * <p>
   *
   * </p>
   * @author <a href="mailto:[EMAIL PROTECTED]">Scott T. Weaver</a>
   * @version $Id: FailedToStorePortletDefinitionException.java,v 1.1 2004/10/29 
14:14:08 weaver Exp $
   *
   */
  public class FailedToStorePortletDefinitionException extends RegistryException
  {
  
      /**
       * 
       */
      public FailedToStorePortletDefinitionException()
      {
          super();
       
      }
  
      /**
       * @param message
       */
      public FailedToStorePortletDefinitionException( String message )
      {
          super(message);
       
      }
  
      /**
       * @param nested
       */
      public FailedToStorePortletDefinitionException( Throwable nested )
      {
          super(nested);
       
      }
  
      /**
       * @param msg
       * @param nested
       */
      public FailedToStorePortletDefinitionException( String msg, Throwable nested )
      {
          super(msg, nested);
       
      }
      
      public FailedToStorePortletDefinitionException( PortletDefinition portlet, 
Throwable nested )
      {        
          this("Unable to store portlet definition "+portlet.getName()+".  Reason: 
"+nested.toString(), nested);
       
      }
      
      public FailedToStorePortletDefinitionException( PortletDefinition portlet, 
String reason )
      {        
          this("Unable to store portlet definition "+portlet.getName()+".  Resaon: 
"+reason);     
      }
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to