org.apache.lenya.cms.publication
Class SingleLanguageIdentityMapper

java.lang.Object
  extended by org.apache.lenya.cms.publication.IdentityDocumentIdToPathMapper
      extended by org.apache.lenya.cms.publication.SingleLanguageIdentityMapper
All Implemented Interfaces:
DocumentIdToPathMapper

public class SingleLanguageIdentityMapper
extends IdentityDocumentIdToPathMapper

Single Language Identity mapper. Similar to the 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: SingleLanguageIdentityMapper.java 473861 2006-11-12 03:51:14Z gregor $

Constructor Summary
SingleLanguageIdentityMapper()
           
 
Method Summary
protected  java.lang.String getSuffix(java.lang.String language)
          The parameter language is ignored, since this mapper is used for situations where only one language version of a document exists
 
Methods inherited from class org.apache.lenya.cms.publication.IdentityDocumentIdToPathMapper
getFile, getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleLanguageIdentityMapper

public SingleLanguageIdentityMapper()
Method Detail

getSuffix

protected java.lang.String getSuffix(java.lang.String language)
The parameter language is ignored, since this mapper is used for situations where only one language version of a document exists

Overrides:
getSuffix in class IdentityDocumentIdToPathMapper
Parameters:
language - The language.
Returns:
A string value.
See Also:
IdentityDocumentIdToPathMapper.getSuffix(java.lang.String)


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.