You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by jw...@apache.org on 2005/05/18 15:05:25 UTC

svn commit: r170742 - /lenya/trunk/src/java/org/apache/lenya/cms/publication/SingleLanguageIdentityMapper.java

Author: jwkaltz
Date: Wed May 18 06:05:24 2005
New Revision: 170742

URL: http://svn.apache.org/viewcvs?rev=170742&view=rev
Log:
[minor change] added comments

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/publication/SingleLanguageIdentityMapper.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/publication/SingleLanguageIdentityMapper.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/SingleLanguageIdentityMapper.java?rev=170742&r1=170741&r2=170742&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/publication/SingleLanguageIdentityMapper.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/publication/SingleLanguageIdentityMapper.java Wed May 18 06:05:24 2005
@@ -1,5 +1,5 @@
 /*
- * Copyright  1999-2004 The Apache Software Foundation
+ * Copyright  1999-2005 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -15,16 +15,21 @@
  *
  */
 
-/* $Id$  */
 
 package org.apache.lenya.cms.publication;
 
 /**
- * Single Language Identity mapper
+ * Single Language Identity mapper.
+ * Similar to the {@link DefaultDocumentIdToPathMapper}, but doesn't add 
+ * a language suffix to the source URIs. This is useful for publications
+ * which do not have multiple language version of the same document,
+ * such as the "blog" publication.
+ * @version $Id$
  */
 public class SingleLanguageIdentityMapper extends IdentityDocumentIdToPathMapper {
 
     /**
+     * The parameter <code>language</code> is ignored, since this mapper is used for situations where only one language version of a document exists
      * @see org.apache.lenya.cms.publication.IdentityDocumentIdToPathMapper#getSuffix(java.lang.String)
      */
     protected String getSuffix(String language) {



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