taylor      01/07/09 10:08:56

  Modified:    src/java/org/apache/jetspeed/services PsmlManager.java
               src/java/org/apache/jetspeed/services/psmlmanager
                        CastorPsmlManagerService.java
                        PsmlManagerService.java
  Log:
  - added fallback method to PSMLManager interface
  
  Revision  Changes    Path
  1.3       +15 -3     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/PsmlManager.java
  
  Index: PsmlManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/PsmlManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PsmlManager.java  2001/07/09 07:35:38     1.2
  +++ PsmlManager.java  2001/07/09 17:08:42     1.3
  @@ -59,12 +59,13 @@
   import org.apache.turbine.services.TurbineServices;
   import org.apache.jetspeed.om.profile.ProfileLocator;
   import java.util.Iterator;
  +import java.util.List;
   
   /**
    * Static accessor for the PsmlManagerService
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Raphaël Luta</a>
  - * @version $Id: PsmlManager.java,v 1.2 2001/07/09 07:35:38 taylor Exp $
  + * @version $Id: PsmlManager.java,v 1.3 2001/07/09 17:08:42 taylor Exp $
    */
   public class PsmlManager
   {
  @@ -125,7 +126,7 @@
   
       /** Create a new document.
        *
  -     * @param The description of the new profile to be created.
  +     * @param locator The description of the new profile to be created.
        * @return The newly created document.
        */
       public static PSMLDocument createDocument( ProfileLocator locator )
  @@ -135,11 +136,22 @@
   
       /** Get a list of profiles given a profile locator criteria.
        *
  -     * @param The profile locator criteria.
  +     * @param locator The profile locator criteria.
        */
       public static Iterator list( ProfileLocator locator )
       {
           return getService().list( locator );
  +    }
  +
  +    /** Given a ordered list of locators, find the first document matching
  +     *  a profile locator, starting from the beginning of the list and working
  +     *  to the end.
  +     *
  +     * @param locator The ordered list of profile locators.
  +     */
  +    public static PSMLDocument fallback( List locators )
  +    {
  +        return getService().fallback( locators );
       }
   
   }
  
  
  
  1.4       +14 -1     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/CastorPsmlManagerService.java
  
  Index: CastorPsmlManagerService.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/CastorPsmlManagerService.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CastorPsmlManagerService.java     2001/07/09 07:35:43     1.3
  +++ CastorPsmlManagerService.java     2001/07/09 17:08:49     1.4
  @@ -90,6 +90,7 @@
   import java.net.URL;
   import java.util.Date;
   import java.util.Iterator;
  +import java.util.List;
   import java.util.Map;
   import java.util.HashMap;
   import java.lang.ref.WeakReference;
  @@ -99,7 +100,7 @@
    * This service is responsible for loading and saving PSML documents.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Raphaël Luta</a>
  - * @version $Id: CastorPsmlManagerService.java,v 1.3 2001/07/09 07:35:43 taylor Exp 
$
  + * @version $Id: CastorPsmlManagerService.java,v 1.4 2001/07/09 17:08:49 taylor Exp 
$
    */
   public class CastorPsmlManagerService extends TurbineBaseService
       implements PsmlManagerService
  @@ -542,6 +543,18 @@
       public Iterator list( ProfileLocator locator )
       {
           // TODO: implement
  +        return null;
  +    }
  +
  +    /** Given a ordered list of locators, find the first document matching
  +     *  a profile locator, starting from the beginning of the list and working
  +     *  to the end.
  +     *
  +     * @param locator The ordered list of profile locators.
  +     */
  +    public PSMLDocument fallback( List locators )
  +    {
  +        // IMPLEMENT ME:
           return null;
       }
   
  
  
  
  1.3       +9 -1      
jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlManagerService.java
  
  Index: PsmlManagerService.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlManagerService.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PsmlManagerService.java   2001/07/09 07:35:43     1.2
  +++ PsmlManagerService.java   2001/07/09 17:08:51     1.3
  @@ -55,6 +55,7 @@
   package org.apache.jetspeed.services.psmlmanager;
   
   import java.util.Iterator;
  +import java.util.List;
   import org.apache.turbine.services.Service;
   import org.apache.jetspeed.om.profile.PSMLDocument;
   import org.apache.jetspeed.om.profile.ProfileLocator;
  @@ -63,7 +64,7 @@
    * This service is responsible for loading and saving PSML documents.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Raphaël Luta</a>
  - * @version $Id: PsmlManagerService.java,v 1.2 2001/07/09 07:35:43 taylor Exp $
  + * @version $Id: PsmlManagerService.java,v 1.3 2001/07/09 17:08:51 taylor Exp $
    */
   public interface PsmlManagerService extends Service
   {
  @@ -118,5 +119,12 @@
        */
       public Iterator list( ProfileLocator locator );
   
  +    /** Given a ordered list of locators, find the first document matching
  +     *  a profile locator, starting from the beginning of the list and working
  +     *  to the end.
  +     *
  +     * @param locator The ordered list of profile locators.
  +     */
  +    public PSMLDocument fallback( List locators );
   }
   
  
  
  

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

Reply via email to