Package com.tubeonfire.entity

Examples of com.tubeonfire.entity.Author


          String userId = req.getParameter("userId");
          String uri = "https://gdata.youtube.com/feeds/api/users/"
              + userId;
          if (uri != null && uri.length() > 0) {
            if (AuthorModel.getById(uri) == null) {
              Author author = new Author();
              author.setUri(uri);
              String[] spl = uri.split("/");
              author.setName(spl[spl.length - 1]);
              author = YoutubeService.getUserProfile(author);
              author.setStatus(1);
              author.setBumpPoint(Calendar.getInstance()
                  .getTimeInMillis() / 1000);
              author.setUpdated(Calendar.getInstance().getTime());
              AuthorModel.insert(author);
              com.tubeonfire.model.AuthorModel.clearModelCache();
            }
          }
        }
View Full Code Here


      e.printStackTrace();
    }
  }

  private void processAuthor(String uri) {
    Author author = new Author();
    author.setUri(uri);
    String[] spl = uri.split("/");
    author.setName(spl[spl.length - 1]);
    author = YoutubeService.getUserProfile(author);
    author.setStatus(1);
    author.setBumpPoint(Calendar.getInstance().getTimeInMillis() / 1000);
    author.setUpdated(Calendar.getInstance().getTime());
    AuthorModel.insert(author);
    com.tubeonfire.model.AuthorModel.clearModelCache();
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  public static Author getById(String id) {
    try {
      init();
      Author obj = new Author();
      String prefix = cachePrefix + "id_" + id;
      if (cache != null && cache.containsKey(prefix)) {
        obj = (Author) cache.get(prefix);
      } else {
        try {
View Full Code Here

  @SuppressWarnings("unchecked")
  public static Author getById(String id) {
    try {
      init();
      Author obj = new Author();
      String prefix = cachePrefix + "id_" + id;
      if (cache != null && cache.containsKey(prefix)) {
        obj = (Author) cache.get(prefix);
      } else {
        try {
View Full Code Here

TOP

Related Classes of com.tubeonfire.entity.Author

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.