Package org.hive2hive.core.exceptions

Examples of org.hive2hive.core.exceptions.Hive2HiveException


    UserProfileManager profileManager = networkManager.getSession().getProfileManager();
    String pid = UUID.randomUUID().toString();
    UserProfile userProfile = profileManager.getUserProfile(pid, true);
    FolderIndex index = (FolderIndex) userProfile.getFileById(sharedIndex.getFilePublicKey());
    if (index == null) {
      throw new Hive2HiveException("I'm not the newly shared user but don't have the shared folder");
    }

    index.addUserPermissions(addedFriend);
    profileManager.readyToPut(userProfile, pid);
  }
View Full Code Here


      // find the node at the user profile
      UserProfileManager profileManager = networkManager.getSession().getProfileManager();
      UserProfile userProfile = profileManager.getUserProfile(getID(), false);
      Index selectedNode = userProfile.getFileById(metaFileSmall.getId());
      if (selectedNode == null) {
        throw new Hive2HiveException("File node not found");
      }

      // ask the user for the new file name
      String originalFileName = context.getFile().getName();
      String noSuffix = FilenameUtils.removeExtension(originalFileName);
View Full Code Here

TOP

Related Classes of org.hive2hive.core.exceptions.Hive2HiveException

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.