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

svn commit: r160154 - in lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task: Deactivate.java Publish.java

Author: michi
Date: Tue Apr  5 03:04:51 2005
New Revision: 160154

URL: http://svn.apache.org/viewcvs?view=rev&rev=160154
Log:
deprecated getSiteTree replaced by getTree

Modified:
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Deactivate.java
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Deactivate.java
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Deactivate.java?view=diff&r1=160153&r2=160154
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Deactivate.java (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Deactivate.java Tue Apr  5 03:04:51 2005
@@ -15,7 +15,7 @@
  *
  */
 
-/* $Id: Deactivate.java,v 1.2 2004/03/20 11:46:20 gregor Exp $  */
+/* $Id$  */
 
 package org.apache.lenya.defaultpub.cms.task;
 
@@ -97,7 +97,7 @@
         Document authoringDocument = getPublication().getAreaVersion(liveDocument, Publication.AUTHORING_AREA);
         OK = OK && canWorkflowFire(authoringDocument);
 
-        SiteTree tree = getPublication().getSiteTree(liveDocument.getArea());
+        SiteTree tree = getPublication().getTree(liveDocument.getArea());
         SiteTreeNode node = tree.getNode(liveDocument.getId());
 
         if (node == null) {

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java?view=diff&r1=160153&r2=160154
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/task/Publish.java Tue Apr  5 03:04:51 2005
@@ -149,7 +149,7 @@
         Document liveDocument = getPublication().getAreaVersion(document, Publication.LIVE_AREA);
         Document liveParent = DocumentHelper.getParentDocument(liveDocument);
         if (liveParent != null) {
-            SiteTree liveTree = getPublication().getSiteTree(Publication.LIVE_AREA);
+            SiteTree liveTree = getPublication().getTree(Publication.LIVE_AREA);
             SiteTreeNode liveParentNode = liveTree.getNode(liveParent.getId());
             if (liveParentNode == null) {
                 log.error("Cannot execute task: live parent node does not exist.");



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