Package org.corrib.s3b.sscf.imports

Examples of org.corrib.s3b.sscf.imports.FlickrBookmarksImport


          //change of credentials requested and returning from flickr
          if(request.getSession().getAttribute("credentialsOnly") != null
              && (Boolean)request.getSession().getAttribute("credentialsOnly") == true){
            request.getSession().setAttribute("credentialsOnly", null);
            BookmarksImport bi = BookmarksImport.getBookmarksImport(BookmarkingSource.FLICKR.getType(), username, frob, viewer, getServiceAddr(request));
            FlickrBookmarksImport fbi = (FlickrBookmarksImport) bi;
            if(fbi.validateUser(frob)){
              try {
            UserCredentials.getInstance().storeCredentials(viewer, BookmarkingSource.FLICKR, fbi.getLogin(), fbi.getPassword());
          } catch (BadCredentialsException e) {
            logger.log(Level.WARNING, "",e);
          }
            }
          }else{
View Full Code Here


    String[] result = new String[2];
    if(frob != null && !"".equals(frob)){
     
      bi = BookmarksImport.getBookmarksImport(BookmarkingSource.FLICKR.getType(), username, frob, viewer, serviceAddr);
     
      FlickrBookmarksImport fbi = ((FlickrBookmarksImport)bi);
      //if user is valid then LOGIN is also set
      if(fbi.validateUser(frob)){
        fbi.start();
        result[0] = TaskStatusInfo.STARTED.getMessage();
       
      }
     
    }
View Full Code Here

TOP

Related Classes of org.corrib.s3b.sscf.imports.FlickrBookmarksImport

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.