Examples of moveFolder()


Examples of com.cubusmail.mail.IMailbox.moveFolder()

    log.debug( "moving folder... " + sourceFolderId );

    IMailFolder sourceFolder = mailbox.getMailFolderById( sourceFolderId );
    try {

      mailbox.moveFolder( sourceFolderId, targetFolderId );
      log.debug( "...successful" );
    }
    catch (MailFolderException e) {
      log.error( e.getMessage(), e );
      if ( e.hasErrorCode( IErrorCodes.EXCEPTION_FOLDER_ALREADY_EXIST ) ) {
View Full Code Here

Examples of com.cubusmail.server.mail.IMailbox.moveFolder()

    IMailbox mailbox = SessionManager.get().getMailbox();
    log.debug( "moving folder... " + sourceFolderId );

    IMailFolder sourceFolder = mailbox.getMailFolderById( sourceFolderId );
    try {
      IMailFolder folder = mailbox.moveFolder( sourceFolderId, targetFolderId );
      log.debug( "...successful" );

      return ConvertUtil.convert( folder, true );
    }
    catch (MailFolderException e) {
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.moveFolder()

                    WeblogBookmarkFolder fd = bmgr.getFolder(folders[i]);
                   
                    // Don't move folder into itself.
                    if (!fd.getId().equals(parent.getId()) &&
                            !parent.descendentOf(fd)) {
                        bmgr.moveFolder(fd, parent);
                    } else {
                        addMessage("bookmarksForm.warn.notMoving", fd.getName());
                    }
                }
            }
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.moveFolder()

            // test that parent cannot be moved into child
            boolean safe = false;
            try {
                // Move folder into one of it's children
                bmgr.moveFolder(f1, f3);
                TestUtils.endSession(true);
            } catch (WebloggerException e) {
                safe = true;
            }
            assertTrue(safe);
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.moveFolder()

            assertTrue(safe);

            // move f1 to dest
            f1   = bmgr.getFolder( f1.getId());   //Get managed copy
            dest = bmgr.getFolder( dest.getId()); //Get managed copy
            bmgr.moveFolder(f1, dest);
            TestUtils.endSession(true);

            // after move, verify number of entries in eacch folder
            dest = bmgr.getFolder(dest.getId());
            f1 = bmgr.getFolder(f1.getId());
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.moveFolder()

                    WeblogBookmarkFolder fd = bmgr.getFolder(folders[i]);
                   
                    // Don't move folder into itself.
                    if (!fd.getId().equals(parent.getId()) &&
                            !parent.descendentOf(fd)) {
                        bmgr.moveFolder(fd, parent);
                    } else {
                        addMessage("bookmarksForm.warn.notMoving", fd.getName());
                    }
                }
            }
View Full Code Here

Examples of org.eclipse.core.resources.team.IMoveDeleteHook.moveFolder()

          tree.standardMoveFile((IFile) this, (IFile) destination, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork));
        break;
      case IResource.FOLDER :
        if (isLinked())
          workspace.broadcastEvent(LifecycleEvent.newEvent(LifecycleEvent.PRE_LINK_MOVE, this, destination, updateFlags));
        if (!hook.moveFolder(tree, (IFolder) this, (IFolder) destination, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork / 2)))
          tree.standardMoveFolder((IFolder) this, (IFolder) destination, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork));
        break;
      case IResource.PROJECT :
        IProject project = (IProject) this;
        // if there is no change in name, there is nothing to do so return.
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.