You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/05/17 09:27:36 UTC

svn commit: r170533 - in /lenya/trunk/src/java/org/apache/lenya/cms/publication: DefaultDocument.java DocumentManager.java DocumentManagerImpl.java Publication.java PublicationImpl.java

Author: andreas
Date: Tue May 17 00:27:35 2005
New Revision: 170533

URL: http://svn.apache.org/viewcvs?rev=170533&view=rev
Log:
[minor change] removed unused imports and variables, fixed some javadoc comments

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/publication/DefaultDocument.java
    lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManager.java
    lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java
    lenya/trunk/src/java/org/apache/lenya/cms/publication/Publication.java
    lenya/trunk/src/java/org/apache/lenya/cms/publication/PublicationImpl.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/publication/DefaultDocument.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/DefaultDocument.java?rev=170533&r1=170532&r2=170533&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/publication/DefaultDocument.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/publication/DefaultDocument.java Tue May 17 00:27:35 2005
@@ -471,6 +471,7 @@
     /**
      * When source URI has not been set by whoever created the document,
      * provides a default mechanism for constructing the document's URI.
+     * @return A URI.
      */
     private String getDefaultSourceURI() {
         String path = publication.getPathMapper().getPath(getId(), getLanguage());

Modified: lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManager.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManager.java?rev=170533&r1=170532&r2=170533&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManager.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManager.java Tue May 17 00:27:35 2005
@@ -75,6 +75,7 @@
      * @param nodeType the node type, as defined by the constants in {@link org.apache.lenya.cms.authoring.NodeCreatorInterface NodeCreatorInterface}
      * @param parameters any parameters the caller needs to pass to the creator
      * @param useSiteManager set to true if the site manager is used in the publication; if set the site manager will be notified about the new document
+     * @return A document.
      * 
      * @throws DocumentBuildException if the document can not be created
      * @throws PublicationException if the document is already contained.

Modified: lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java?rev=170533&r1=170532&r2=170533&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/publication/DocumentManagerImpl.java Tue May 17 00:27:35 2005
@@ -16,9 +16,7 @@
  */
 package org.apache.lenya.cms.publication;
 
-import java.io.File;
 import java.util.ArrayList;
-import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -43,7 +41,6 @@
 import org.apache.lenya.cms.site.SiteUtil;
 import org.apache.lenya.cms.workflow.WorkflowManager;
 import org.apache.lenya.transaction.Transactionable;
-import org.apache.lenya.transaction.TransactionException;
 
 /**
  * DocumentManager implementation.
@@ -121,9 +118,6 @@
 
         // Call the creator for the document type to physically create a document of this type
         try {
-            String parentId = "";
-            if (parentDocument != null)
-                parentId = parentDocument.getId().substring(1);
 
             if (initialContentsURI == null)
                 initialContentsURI = documentType.getSampleContentLocation();

Modified: lenya/trunk/src/java/org/apache/lenya/cms/publication/Publication.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/Publication.java?rev=170533&r1=170532&r2=170533&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/publication/Publication.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/publication/Publication.java Tue May 17 00:27:35 2005
@@ -189,6 +189,7 @@
     String getSourceURI();
 
     /**
+     * @param area The area.
      * @return the URI base under which contents in this publication are accessed
      */
     String getContentURI(String area);

Modified: lenya/trunk/src/java/org/apache/lenya/cms/publication/PublicationImpl.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/PublicationImpl.java?rev=170533&r1=170532&r2=170533&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/publication/PublicationImpl.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/publication/PublicationImpl.java Tue May 17 00:27:35 2005
@@ -411,7 +411,7 @@
     }
 
     /**
-     * @see org.apache.lenya.cms.publication.Publication#getContentDirectory(String)
+     * @see org.apache.lenya.cms.publication.Publication#getContentURI(java.lang.String)
      */
     public String getContentURI(String area) {
         return getSourceURI() + "/" + CONTENT_PATH + "/" + area;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org