Package com.google.ytd.model

Examples of com.google.ytd.model.UserSession.addMetaData()


      // Assignment id might be set in the JSON object if there wasn't an assignment associated
      // with the embedded iframe, and the assignment was chosen at run time.
      if (util.isNullOrEmpty(assignmentId)) {
        assignmentId = userSession.getMetaData("assignmentId");
      } else {
        userSession.addMetaData("assignmentId", assignmentId);
      }
     
      Assignment assignment = assignmentDao.getAssignmentById(assignmentId);
      if (assignment == null) {
        throw new IllegalArgumentException(String.format(
View Full Code Here


            jsonObj.getDouble("longitude")));
      } else if (!util.isNullOrEmpty(location)) {
        newEntry.setLocation(location);
      }

      userSession.addMetaData("videoTitle", title);
      userSession.addMetaData("videoDescription", description);
      userSession.addMetaData("videoLocation", location);
      userSession.addMetaData("phoneNumber", phoneNumber);
      userSession.addMetaData("videoDate", date);
      userSession.addMetaData("videoTags", sortedTags);
View Full Code Here

      } else if (!util.isNullOrEmpty(location)) {
        newEntry.setLocation(location);
      }

      userSession.addMetaData("videoTitle", title);
      userSession.addMetaData("videoDescription", description);
      userSession.addMetaData("videoLocation", location);
      userSession.addMetaData("phoneNumber", phoneNumber);
      userSession.addMetaData("videoDate", date);
      userSession.addMetaData("videoTags", sortedTags);
      userSession.addMetaData("email", email);
View Full Code Here

        newEntry.setLocation(location);
      }

      userSession.addMetaData("videoTitle", title);
      userSession.addMetaData("videoDescription", description);
      userSession.addMetaData("videoLocation", location);
      userSession.addMetaData("phoneNumber", phoneNumber);
      userSession.addMetaData("videoDate", date);
      userSession.addMetaData("videoTags", sortedTags);
      userSession.addMetaData("email", email);
      userSessionManager.save(userSession);
View Full Code Here

      }

      userSession.addMetaData("videoTitle", title);
      userSession.addMetaData("videoDescription", description);
      userSession.addMetaData("videoLocation", location);
      userSession.addMetaData("phoneNumber", phoneNumber);
      userSession.addMetaData("videoDate", date);
      userSession.addMetaData("videoTags", sortedTags);
      userSession.addMetaData("email", email);
      userSessionManager.save(userSession);
View Full Code Here

      userSession.addMetaData("videoTitle", title);
      userSession.addMetaData("videoDescription", description);
      userSession.addMetaData("videoLocation", location);
      userSession.addMetaData("phoneNumber", phoneNumber);
      userSession.addMetaData("videoDate", date);
      userSession.addMetaData("videoTags", sortedTags);
      userSession.addMetaData("email", email);
      userSessionManager.save(userSession);

      youTubeApi.setAuthSubToken(authSubToken);
View Full Code Here

      userSession.addMetaData("videoTitle", title);
      userSession.addMetaData("videoDescription", description);
      userSession.addMetaData("videoLocation", location);
      userSession.addMetaData("phoneNumber", phoneNumber);
      userSession.addMetaData("videoDate", date);
      userSession.addMetaData("videoTags", sortedTags);
      userSession.addMetaData("email", email);
      userSessionManager.save(userSession);

      youTubeApi.setAuthSubToken(authSubToken);
View Full Code Here

      userSession.addMetaData("videoDescription", description);
      userSession.addMetaData("videoLocation", location);
      userSession.addMetaData("phoneNumber", phoneNumber);
      userSession.addMetaData("videoDate", date);
      userSession.addMetaData("videoTags", sortedTags);
      userSession.addMetaData("email", email);
      userSessionManager.save(userSession);

      youTubeApi.setAuthSubToken(authSubToken);

      FormUploadToken token = youTubeApi.getFormUploadToken(newEntry);
View Full Code Here

        // TODO: Throw a better Exception class here.
        throw new IllegalArgumentException("No user session found.");
      }

      // userSession.setAuthSubToken(authSubToken);
      userSession.addMetaData("authSubToken", authSubToken);

      youTubeApiHelper.setAuthSubToken(authSubToken);

      String youTubeName = youTubeApiHelper.getCurrentUsername();
      if (util.isNullOrEmpty(youTubeName)) {
View Full Code Here

      if (util.isNullOrEmpty(youTubeName)) {
        // TODO: Throw a better Exception class here.
        throw new IllegalArgumentException("Unable to retrieve a YouTube username for "
            + "the authenticated user.");
      }
      userSession.addMetaData("youTubeName", youTubeName);
      userSessionManager.save(userSession);

      // Create or update the UserAuthToken entry, which maps a username to an AuthSub token.
      userAuthTokenDao.setUserAuthToken(youTubeName, authSubToken);
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.