You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by dl...@apache.org on 2006/12/24 01:22:32 UTC

svn commit: r489955 - in /portals/wsrp4j/trunk: commons/src/java/org/apache/wsrp4j/commons/persistence/ persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/ persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/

Author: dlouzan
Date: Sat Dec 23 16:22:31 2006
New Revision: 489955

URL: http://svn.apache.org/viewvc?view=rev&rev=489955
Log:
Eliminated operation getPortletDescriptionList from the persistence mechanism

Removed:
    portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/PortletDescriptionList.java
Modified:
    portals/wsrp4j/trunk/commons/src/java/org/apache/wsrp4j/commons/persistence/ProducerPersistentFactory.java
    portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/ProducerPersistentInformationProvider.java
    portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentFactoryImpl.java
    portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentInformationProviderImpl.java

Modified: portals/wsrp4j/trunk/commons/src/java/org/apache/wsrp4j/commons/persistence/ProducerPersistentFactory.java
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/commons/src/java/org/apache/wsrp4j/commons/persistence/ProducerPersistentFactory.java?view=diff&rev=489955&r1=489954&r2=489955
==============================================================================
--- portals/wsrp4j/trunk/commons/src/java/org/apache/wsrp4j/commons/persistence/ProducerPersistentFactory.java (original)
+++ portals/wsrp4j/trunk/commons/src/java/org/apache/wsrp4j/commons/persistence/ProducerPersistentFactory.java Sat Dec 23 16:22:31 2006
@@ -45,14 +45,6 @@
     throws WSRPException;
 
     /**
-     * Returns the PortletDescriptionList
-     * 
-     * @return PersistentDataObject
-     * @throws WSRPException
-     */
-    PersistentDataObject getPortletDescriptionList() throws WSRPException;
-
-    /**
      * Returns the ServiceDescriptionList
      * 
      * @return PersistentDataObject

Modified: portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/ProducerPersistentInformationProvider.java
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/ProducerPersistentInformationProvider.java?view=diff&rev=489955&r1=489954&r2=489955
==============================================================================
--- portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/ProducerPersistentInformationProvider.java (original)
+++ portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/ProducerPersistentInformationProvider.java Sat Dec 23 16:22:31 2006
@@ -19,7 +19,6 @@
 import org.apache.wsrp4j.commons.persistence.PersistentInformationProvider;
 import org.apache.wsrp4j.persistence.xml.driver.ConsumerConfiguredPortletList;
 import org.apache.wsrp4j.persistence.xml.driver.ConsumerPortletRegistrationList;
-import org.apache.wsrp4j.persistence.xml.driver.PortletDescriptionList;
 import org.apache.wsrp4j.persistence.xml.driver.RegistrationList;
 import org.apache.wsrp4j.persistence.xml.driver.ServiceDescriptionList;
 
@@ -43,16 +42,6 @@
      */
     PersistentInformation getPersistentInformation(
             ServiceDescriptionList serviceDescriptionList);
-    
-    /**
-     * Returns the persistent file information for the PortletDescription
-     *
-     * @param portletDescriptionList PortletDescriptionList
-     *
-     * @return PersistentInformation
-     **/
-    PersistentInformation getPersistentInformation(
-            PortletDescriptionList portletDescriptionList);
     
     /**
      * Returns the persistent file information for the Registration

Modified: portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentFactoryImpl.java
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentFactoryImpl.java?view=diff&rev=489955&r1=489954&r2=489955
==============================================================================
--- portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentFactoryImpl.java (original)
+++ portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentFactoryImpl.java Sat Dec 23 16:22:31 2006
@@ -185,45 +185,6 @@
     }
     
     /**
-     * Returns the PortletDescriptionList
-     *
-     * @return PersistentDataObject
-     * @throws WSRPException
-     */
-    public PersistentDataObject getPortletDescriptionList() 
-    throws WSRPException {
-        
-        String MN = "getPortletDescriptionList";
-        
-        if (log.isDebugEnabled()) {
-            log.debug(Utility.strEnter(MN));
-        }
-        
-        PortletDescriptionList pdo = null;
-        
-        try {
-            pdo = (PortletDescriptionList) Class.forName(
-                    "org.apache.wsrp4j.persistence.xml.driver." +
-                    "PortletDescriptionList").
-                    newInstance();
-            
-            ((ProducerPersistentInformationProvider) 
-            getPersistentInformationProvider()).getPersistentInformation(pdo);
-            
-        } catch (Exception e) {
-            // could not find class
-            WSRPXHelper.throwX(log, ErrorCodes.UNMARSHAL_ERROR, e);
-        }
-        
-        if (log.isDebugEnabled()) {
-            log.debug(Utility.strExit(MN));
-        }
-        
-        return pdo;
-        
-    }
-    
-    /**
      * Returns the ServiceDescriptionList
      *
      * @return PersistentDataObject

Modified: portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentInformationProviderImpl.java
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentInformationProviderImpl.java?view=diff&rev=489955&r1=489954&r2=489955
==============================================================================
--- portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentInformationProviderImpl.java (original)
+++ portals/wsrp4j/trunk/persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/driver/ProducerPersistentInformationProviderImpl.java Sat Dec 23 16:22:31 2006
@@ -287,45 +287,6 @@
     }
     
     /**
-     * Returns the persistent file information for the PortletDescription
-     *
-     * @param portletDescriptionList PortletDescriptionList
-     *
-     * @return PersistentInformation
-     **/
-    public PersistentInformation getPersistentInformation(
-            PortletDescriptionList portletDescriptionList) {
-        
-        final String MN = "getPersistentInformation";
-        
-        if (log.isDebugEnabled()) {
-            log.debug(Utility.strEnter(MN));
-        }
-        
-        PersistentInformationXML persistentInfo = null;
-        
-        if (portletDescriptionList != null) {
-            persistentInfo = new PersistentInformationImpl();
-            persistentInfo.setStoreDirectory(getStoreDirectory(DESCRIPTIONS));
-            persistentInfo.setMappingFileName(null);
-            PortletDescription portletDescription = new PortletDescription();
-            persistentInfo.setFilenameStub(portletDescription.getClass().
-                    getName());
-            persistentInfo.setFilename(null);
-            persistentInfo.setExtension(FILE_EXTENSION);
-            persistentInfo.setSeparator(SEPARATOR);
-            portletDescriptionList.setPersistentInformation(persistentInfo);
-            makeStoreSubDir(DESCRIPTIONS);
-        }
-        
-        if (log.isDebugEnabled()) {
-            log.debug(Utility.strExit(MN));
-        }
-        
-        return persistentInfo;
-    }
-    
-    /**
      * Returns the persistent file information for the Registration
      *
      * @param registrationList RegistrationList