Package org.apache.lenya.cms.publication

Examples of org.apache.lenya.cms.publication.SiteTree.save()


      Publication publication= getPublication();
      SiteTree tree = publication.getSiteTree(getArea());
          
      SiteTreeNode node = tree.getNode("/");
            node.removeChildren();      
      tree.save();
      } catch (
        Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here


    if (firstarea.equals(secarea)) {
      firsttree.save();
    } else {
      firsttree.save();
      sectree.save();
    }
  }
  /**
   * @return string The document-id corresponding to the reference node, before which
   * the moved node shoul be inserted. If null, the node is inserted at the end.
View Full Code Here

      Publication publication= getPublication();
      SiteTree tree = publication.getSiteTree(getArea());
          
      SiteTreeNode node = tree.getNode("/");
            node.removeChildren();      
      tree.save();
      } catch (
        Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here

                    // doesn't have this language
                    throw new PublishingException("The node " + documentId
                            + " doesn't contain a label for language " + language);
                }
            }
            liveTree.save();
        } catch (PublishingException e) {
            throw e;
        } catch (Exception e) {
            throw new PublishingException("Couldn't publish to live tree :", e);
        }
View Full Code Here

    }
    if (firstarea.equals(secarea)) {
      firsttree.save();
    } else {
      firsttree.save();
      sectree.save();
    }
  }
}
View Full Code Here

            } else {
                throw new PublishingException(
                    "No node found for the document " + documentId);
            }

            liveTree.save();
        } catch (PublishingException e) {
            throw e;
        } catch (Exception e) {
            throw new PublishingException("Couldn't publish to live tree :", e);
        }
View Full Code Here

      Publication publication= getPublication();
      SiteTree tree = publication.getSiteTree(getArea());
          
      SiteTreeNode node = tree.getNode("/");
            node.removeChildren();      
      tree.save();
      } catch (
        Exception e) {
      throw new BuildException(e);
    }
  }
View Full Code Here

    if (firstarea.equals(secarea)) {
      firsttree.save();
    } else {
      firsttree.save();
      sectree.save();
    }
  }
  /**
   * @return string The document-id corresponding to the reference node, before which
   * the moved node shoul be inserted. If null, the node is inserted at the end.
View Full Code Here

    }
    if (firstarea.equals(secarea)) {
      firsttree.save();
    } else {
      firsttree.save();
      sectree.save();
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.