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 2008/05/09 16:55:19 UTC

svn commit: r654834 - /lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java

Author: andreas
Date: Fri May  9 07:55:18 2008
New Revision: 654834

URL: http://svn.apache.org/viewvc?rev=654834&view=rev
Log:
Replacing identity.getUser() with identity.getUserReference().

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java

Modified: lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java?rev=654834&r1=654833&r2=654834&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java Fri May  9 07:55:18 2008
@@ -101,7 +101,7 @@
 
         // Replace author
         Identity identity = (Identity)parameters.get("org.apache.lenya.ac.Identity");
-        du.setElementValue(doc, "/echo:entry/echo:author/echo:name", identity.getUser().getId());
+        du.setElementValue(doc, "/echo:entry/echo:author/echo:name", identity.getUserReference().getId());
 
         // Replace date created (and issued and modified, FIXME: issued should be set during first time publishing, modified should be set during re-publishing)
         DateFormat datefmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");



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