org.apache.lenya.cms.publication
Interface DocumentIdToPathMapper

All Known Implementing Classes:
DefaultDocumentIdToPathMapper, IdentityDocumentIdToPathMapper, SingleLanguageIdentityMapper

public interface DocumentIdToPathMapper

Document Id to Path mapper interface


Method Summary
 java.io.File getFile(Publication publication, java.lang.String area, java.lang.String uuid, java.lang.String language)
          Compute the document-path for a given publication, area, document-uuid and language
 java.lang.String getPath(java.lang.String uuid, java.lang.String language)
          Compute the document-path for a given publication, area and document-uuid.
 

Method Detail

getPath

java.lang.String getPath(java.lang.String uuid,
                         java.lang.String language)
Compute the document-path for a given publication, area and document-uuid. The file separator is the slash (/).

Parameters:
uuid - the UUID of the document
language - the language of the document
Returns:
the path to the document, without publication ID and area

getFile

java.io.File getFile(Publication publication,
                     java.lang.String area,
                     java.lang.String uuid,
                     java.lang.String language)
Compute the document-path for a given publication, area, document-uuid and language

Parameters:
publication - the publication of the document
area - the area of the document
uuid - the uuid of the document
language - the language of the document
Returns:
the path to the document


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