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/portal/src/java/org/apache/jetspeed/page/impl DatabasePageManager.java
Date Mon, 23 Feb 2004 00:06:45 GMT
weaver      2004/02/22 16:06:45

  Modified:    portal/src/java/org/apache/jetspeed/page/impl
                        DatabasePageManager.java
  Log:
  Changed constructor to take the correct arguments to use the persistence store
  correctly
  
  Revision  Changes    Path
  1.2       +14 -8     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
  
  Index: DatabasePageManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/page/impl/DatabasePageManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DatabasePageManager.java	21 Feb 2004 09:01:30 -0000	1.1
  +++ DatabasePageManager.java	23 Feb 2004 00:06:45 -0000	1.2
  @@ -59,18 +59,16 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.apache.jetspeed.cps.CommonPortletServices;
  +import org.apache.jetspeed.components.persistence.store.PersistenceStoreContainer;
   import org.apache.jetspeed.exception.JetspeedException;
   import org.apache.jetspeed.idgenerator.IdGenerator;
   import org.apache.jetspeed.om.page.Page;
   import org.apache.jetspeed.page.PageManager;
  +import org.apache.jetspeed.page.PageNotRemovedException;
  +import org.apache.jetspeed.page.PageNotUpdatedException;
   import org.apache.jetspeed.persistence.LookupCriteria;
   import org.apache.jetspeed.persistence.PersistencePlugin;
  -import org.apache.jetspeed.persistence.PersistenceService;
  -import org.apache.jetspeed.persistence.store.PersistenceStore;
   import org.apache.jetspeed.profiler.ProfileLocator;
  -import org.apache.jetspeed.page.PageNotRemovedException;
  -import org.apache.jetspeed.page.PageNotUpdatedException;
   import org.picocontainer.Startable;
   
   /**
  @@ -92,8 +90,16 @@
       // TODO: this should eventually use a system cach like JCS
       private Map pageCache = new HashMap();
   
  -
  -    public DatabasePageManager(PersistenceStore store, IdGenerator generator)
  +	/**
  +	 * 
  +	 * @param pContainer PersistenceStoreContainer that will be used to look up 
  +	 * the <code>PersistenceStore</code> to use for persistence operations
  +	 * @param generator ID generator that will be used to generate unique page ids
  +	 * @param storeName Name of the <code>PersistenceStore</code> that will be
used
  +	 * by the <code>PersistenceStoreContainer.getStoreForThread(String)</code>
  +	 * method to obtain the current persistence for this thread.
  +	 */
  +    public DatabasePageManager(PersistenceStoreContainer pContainer, IdGenerator generator,
String storeName)
       {
           super(generator);
       }
  
  
  

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