Examples of deleteChild()


Examples of com.dotmarketing.beans.Inode.deleteChild()

       }

       // checks type of parent and deletes child if not live version.
       if (!linkVersion.isLive()) {
        if (parentInode instanceof Inode) {
          parentInode.deleteChild(linkVersion);
        }
       }
       }
    }
View Full Code Here

Examples of com.dotmarketing.beans.UserProxy.deleteChild()

    } catch (Exception e) {
      Logger.error(UserCommentsFactory.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
      InodeFactory.deleteInode(userComment);
      userProxy.deleteChild(userComment);
    }
   
    public static void deleteUserComment(String userProxyInode,String userCommentInode) throws DotHibernateException
    {     
      UserComment userComment = UserCommentsFactory.getComment(userCommentInode);
View Full Code Here

Examples of com.dotmarketing.portlets.campaigns.model.Campaign.deleteChild()

      BeanUtils.copyProperties(req.getAttribute(WebKeys.CAMPAIGN_EDIT), cfform);
      HibernateUtil.saveOrUpdate(c);

      // wipe the old mailing list that was the child
      MailingList ml = (MailingList) InodeFactory.getChildOfClass(c, MailingList.class);
      c.deleteChild(ml);

      //try to get the campaign's new mailing list
      ml = (MailingList) InodeFactory.getInode(String.valueOf(cfform.getMailingList()), MailingList.class);
      if (InodeUtils.isSet(ml.getInode())) {
        c.addChild(ml);
View Full Code Here

Examples of com.dotmarketing.portlets.campaigns.model.Campaign.deleteChild()

        c.addChild(ml);
      }

      // wipe the old communication that was the child
      Communication comm = (Communication) InodeFactory.getChildOfClass(c, Communication.class);
      c.deleteChild(comm);

      //try to get the campaign's new communication
      comm = (Communication) InodeFactory.getInode(String.valueOf(cfform.getCommunicationInode()), Communication.class);
      if (InodeUtils.isSet(comm.getInode())) {
        c.addChild(comm);
View Full Code Here

Examples of com.dotmarketing.portlets.campaigns.model.Campaign.deleteChild()

        c.addChild(comm);
      }

      // wipe the old user filter that was the child
      UserFilter userfilter = (UserFilter) InodeFactory.getChildOfClass(c, UserFilter.class);
      c.deleteChild(userfilter);

      //try to get the campaign's new communication
      userfilter = (UserFilter) InodeFactory.getInode(String.valueOf(cfform.getUserFilterInode()), UserFilter.class);
      if (InodeUtils.isSet(userfilter.getInode())) {
        c.addChild(userfilter);
View Full Code Here

Examples of com.dotmarketing.portlets.communications.model.Communication.deleteChild()

   
    // wipe the old HTML page entries
    HTMLPage page = (HTMLPage) InodeFactory.getChildOfClass(c, HTMLPage.class);
    if (InodeUtils.isSet(page.getInode()))
      c.deleteChild(page);
   
    if (req.getParameter("typeContent").equals("HTMLPage")) {
      //try to get the Communication's page
      if (InodeUtils.isSet(cfform.getHtmlPage())) {
        page = (HTMLPage) InodeFactory.getInode(String.valueOf(cfform.getHtmlPage()), HTMLPage.class);
View Full Code Here

Examples of com.dotmarketing.portlets.communications.model.Communication.deleteChild()

    }
   
    // wipe the old VirtualLink entries
    VirtualLink vl = (VirtualLink) InodeFactory.getChildOfClass(c, VirtualLink.class);
    if (InodeUtils.isSet(vl.getInode()))
      c.deleteChild(vl);
   
    //try to get the Communication's virtual link
    if (InodeUtils.isSet(cfform.getTrackBackLinkInode())) {
      vl = VirtualLinkFactory.getVirtualLink(String.valueOf(cfform.getTrackBackLinkInode()));
      if (InodeUtils.isSet(vl.getInode())) {
View Full Code Here

Examples of com.dotmarketing.portlets.folders.model.Folder.deleteChild()

      _checkCopyAndMovePermissions(webAsset, parent, user, httpReq, "move");

      // gets old parent
      Folder oldParent = APILocator.getFolderAPI().findParentFolder(workingWebAsset, user, false);
      Logger.debug(this, "Old Parent Folder=" + oldParent.getInode());
      oldParent.deleteChild(workingWebAsset);
      if ((liveWebAsset != null) && (InodeUtils.isSet(liveWebAsset.getInode()))) {
        oldParent.deleteChild(liveWebAsset);
      }

      // Adding to new parent
View Full Code Here

Examples of com.dotmarketing.portlets.folders.model.Folder.deleteChild()

      // gets old parent
      Folder oldParent = APILocator.getFolderAPI().findParentFolder(workingWebAsset, user, false);
      Logger.debug(this, "Old Parent Folder=" + oldParent.getInode());
      oldParent.deleteChild(workingWebAsset);
      if ((liveWebAsset != null) && (InodeUtils.isSet(liveWebAsset.getInode()))) {
        oldParent.deleteChild(liveWebAsset);
      }

      // Adding to new parent
      Logger.debug(this, "Parent Folder=" + parent.getInode());
      parent.addChild(workingWebAsset);
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VBOTreeNode.deleteChild()

    synchronized (projectTreeMap) {
      VBOTreeNode node;
      ArrayList<VBOTreeNode> nodes = projectTreeMap.get(projectHandle);
      for (int m = nodes.size() - 1; m >= 0; m--) {
        node = nodes.get(m);
        node.deleteChild(deletedVBO);
        if (node.getVociBusinessObject().getId() == deletedVBO.getId()) {
          nodes.remove(m);
        }
      }
    }
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.