Package org.apache.lenya.cms.publication

Examples of org.apache.lenya.cms.publication.SiteTreeException


                tree.removeLabel(documentid, label);
                tree.save();
            }

        } catch (Exception e) {
            throw new SiteTreeException(
                "Cannot remove label " + label + " from tree " + area,
                e);
        }

    }
View Full Code Here


                deleteNode(documentid,area);  
            } else {
                tree.save();
            }
        } catch (Exception e) {
            throw new SiteTreeException(e);
        }
    }  
View Full Code Here

      try {
      tree = getPublication().getTree(area);
      tree.deleteNode(documentid);
      tree.save();
    } catch (Exception e) {
      throw new SiteTreeException(e);
    }
    }  
View Full Code Here

        }
        File directory = resourcesMgr.getPath();
        directory.delete();
      }
    } catch (Exception e) {
      throw new SiteTreeException(e);
    }
  }
View Full Code Here

            tree = getPublication().getTree(area);
            label = new Label(labelName, language);
            tree.addLabel(documentid, label);
            tree.save();
        } catch (Exception e) {
            throw new SiteTreeException(
                "Cannot insert label "
                    + label
                    + " into tree "
                    + area,
                e);
View Full Code Here

        if (node != null) {
            SiteTreeNode parentNode = sectree.getNode(parentId.toString());
            if (parentNode != null) {
                sectree.copy(node, parentNode, newid, null);
            } else {
                throw new SiteTreeException("The parent node " + parentNode
                        + " where the copied node shall be inserted not found");
            }
        } else {
            throw new SiteTreeException("Node " + node + " couldn't be found");
        }
        if (firstArea.equals(secArea)) {
            firsttree.save();
        } else {
            firsttree.save();
View Full Code Here

    if (node != null) {
        SiteTreeNode parentNode = sectree.getNode(parentId.toString());
      if (parentNode != null) {
                sectree.move(node, parentNode, newid, this.getRefdocumentid());
      } else {
        throw new SiteTreeException(
          "The parent node "
            + parentNode
            + " where the removed node shall be inserted not found");
      }
    } else {
      throw new SiteTreeException(
        "Node " + node + " couldn't be removed");
    }

    if (firstArea.equals(secArea)) {
      firsttree.save();
View Full Code Here

        if (this.getLogger().isDebugEnabled()) {
            this.getLogger().debug(
                    "Node with documentid " + documentid + " found.");
        }
        if (node == null)
            throw new SiteTreeException("Node with documentid " + documentid
                    + " not found.");

        SiteTreeNode[] children = node.getChildren();

        for (int i = 0; i < children.length; i++) {
View Full Code Here

        if (this.getLogger().isDebugEnabled()) {
            this.getLogger().debug(
                    "Node with documentid " + documentid + " found.");
        }
        if (node == null)
            throw new SiteTreeException("Node with documentid " + documentid
                    + " not found.");

        SiteTreeNode[] children = node.getChildren();

        for (int i = 0; i < children.length; i++) {
View Full Code Here

    if (node != null) {
        SiteTreeNode parentNode = sectree.getNode(parentid);
      if (parentNode != null) {
                sectree.move(node, parentNode, newid, this.getRefdocumentid());
      } else {
        throw new SiteTreeException(
          "The parent node "
            + parentNode
            + " where the removed node shall be inserted not found");
      }
    } else {
      throw new SiteTreeException(
        "Node " + node + " couldn't be removed");
    }

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

TOP

Related Classes of org.apache.lenya.cms.publication.SiteTreeException

Copyright © 2018 www.massapicom. 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.