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/services/psmlmanager PsmlImporter.java
Date Tue, 20 Nov 2001 05:32:21 GMT
taylor      01/11/19 21:32:21

  Modified:    src/java/org/apache/jetspeed/services PsmlManager.java
               src/java/org/apache/jetspeed/services/psmlmanager
                        PsmlImporter.java
  Log:
  
  
  Revision  Changes    Path
  1.7       +14 -2     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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PsmlManager.java	2001/11/12 03:40:24	1.6
  +++ PsmlManager.java	2001/11/20 05:32:21	1.7
  @@ -71,7 +71,7 @@
    * Static accessor for the PsmlManagerService
    *
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: PsmlManager.java,v 1.6 2001/11/12 03:40:24 taylor Exp $
  + * @version $Id: PsmlManager.java,v 1.7 2001/11/20 05:32:21 taylor Exp $
    */
   public class PsmlManager
   {
  @@ -80,7 +80,7 @@
        * Commodity method for getting a reference to the service
        * singleton
        */
  -    private static PsmlManagerService getService()
  +    public static PsmlManagerService getService()
       {
           return (PsmlManagerService)TurbineServices
                   .getInstance()
  @@ -206,6 +206,18 @@
       public static Iterator query( QueryLocator locator )
       {
           return getService().query( locator );
  +    }
  +
  +    /** Export profiles from this service into another service
  +     *
  +     * @param consumer The PSML consumer service, receives PSML from this service.
  +     * @param locator The profile locator criteria.
  +     *
  +     * @return The count of profiles exported.
  +     */
  +    public int export(PsmlManagerService consumer, QueryLocator locator)
  +    {
  +        return getService().export(consumer, locator);
       }
   
   }
  
  
  
  1.4       +2 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlImporter.java
  
  Index: PsmlImporter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlImporter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PsmlImporter.java	2001/11/20 05:31:19	1.3
  +++ PsmlImporter.java	2001/11/20 05:32:21	1.4
  @@ -97,6 +97,7 @@
   
       public void run(ServletConfig conf)
       {
  +        String msg;
           int count = 0;
           try
           {
  @@ -107,7 +108,7 @@
               if (null == fileService)
                   return;
   
  -            String msg = "Running PSMLImporter...";
  +            msg = "Running PSMLImporter...";
               System.out.println(msg);
               Log.note(msg);
   
  
  
  

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


Mime
View raw message