Package org.corrib.s3b.sscf.synchronization.resources

Examples of org.corrib.s3b.sscf.synchronization.resources.ResourcesLoader


  public List<ResourceDifference> synchronize() throws NotAuthorizedException, NotAvailableException {
    setMessage(TaskStatusInfo.INPROGRESS.getMessage());
    logger.info("STARTING SYNCHRONIZATION [FLICKR]");
    List<SynchronizationPost> sourcePosts = SynchronizationPost.toSynchronizationPosts(taggingSource.getAllPosts(), SynchronizationState.NEW_IMPORTED);
    logger.info("FINISHED GETTING POSTS [FLICKR]: " + sourcePosts.size());
    ResourcesLoader resourceLoader = new ResourcesLoader();
//    ResourcesLoader resourceLoader = ResourcesLoader.getStoredResourceLoader(BookmarkingSource.FLICKR);
    List<SynchronizationPost> storedPosts = resourceLoader.loadStoredResources(sscfPerson);
    return performDiff(storedPosts, sourcePosts);
  }
View Full Code Here


  public List<ResourceDifference> synchronize() throws NotAuthorizedException, NotAvailableException {
    setMessage(TaskStatusInfo.INPROGRESS.getMessage());
    logger.info("STARTING SYNCHRONIZATION [DIU]");
    List<SynchronizationPost> sourcePosts = SynchronizationPost.toSynchronizationPosts(taggingSource.getAllPosts(),SynchronizationState.NEW_IMPORTED);
    logger.info("FINISHED GETTING POSTS [DIU]: " + sourcePosts.size());
    ResourcesLoader resourceLoader = new ResourcesLoader();
//    ResourcesLoader resourceLoader = ResourcesLoader.getStoredResourceLoader(BookmarkingSource.DEL_ICIO_US);
    List<SynchronizationPost> storedPosts = resourceLoader.loadStoredResources(sscfPerson);
    return performDiff(storedPosts,sourcePosts);
  }
View Full Code Here

TOP

Related Classes of org.corrib.s3b.sscf.synchronization.resources.ResourcesLoader

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.