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/14 20:47:22 UTC
svn commit: r170154 -
/lenya/trunk/src/java/org/apache/lenya/cms/publication/Publication.java
/lenya/trunk/src/java/org/apache/lenya/cms/publication/PublicationImpl.java
Author: jwkaltz
Date: Sat May 14 11:47:21 2005
New Revision: 170154
URL: http://svn.apache.org/viewcvs?rev=170154&view=rev
Log:
provide file-free equivalent to getContentDirectory
Modified:
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/Publication.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/publication/Publication.java?rev=170154&r1=170153&r2=170154&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 Sat May 14 11:47:21 2005
@@ -184,8 +184,13 @@
Publication[] getTemplates();
/**
- * @return the URI source under which all contents of this
- * publication can be accessed
+ * @return the URI base for this publication
*/
String getSourceURI();
+
+ /**
+ * @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=170154&r1=170153&r2=170154&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 Sat May 14 11:47:21 2005
@@ -230,9 +230,7 @@
}
/**
- * Return the directory of a specific area.
- * @param area a <code>File</code> representing the root of the area content directory.
- * @return the directory of the given content area.
+ * @see org.apache.lenya.cms.publication.Publication#getContentDirectory(String)
*/
public File getContentDirectory(String area) {
return new File(getDirectory(), CONTENT_PATH + File.separator + area);
@@ -411,5 +409,13 @@
public String getSourceURI() {
return Node.LENYA_PROTOCOL + PUBLICATION_PREFIX_URI + "/" + this.id;
}
+
+ /**
+ * @see org.apache.lenya.cms.publication.Publication#getContentDirectory(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