com.flickrrecsys.engine
Class FavoPhotosEng

java.lang.Object
  extended by com.flickrrecsys.engine.FavoPhotosEng

public class FavoPhotosEng
extends java.lang.Object

This class recommends contacts based on the favourite photos

Author:
Hossein Ghodsi

Constructor Summary
FavoPhotosEng(int limit, java.lang.String nsid, java.lang.String servletPath, com.aetrion.flickr.Flickr f)
          The constructor assign the parameter passed to it to global variable
 
Method Summary
 java.util.Vector<MyUser> getRecConsByFavo()
          This method gets the recommended contacts from the database and request for their details from the Flickr API
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoPhotosEng

public FavoPhotosEng(int limit,
                     java.lang.String nsid,
                     java.lang.String servletPath,
                     com.aetrion.flickr.Flickr f)
The constructor assign the parameter passed to it to global variable

Parameters:
limit - number of results requested
nsid - user id from the Flickr website
servletPath - where the database property file is located
f - an instance of a Flickr object in order to connnect to the Flickr API
Method Detail

getRecConsByFavo

public java.util.Vector<MyUser> getRecConsByFavo()
This method gets the recommended contacts from the database and request for their details from the Flickr API

Returns:
a vector of MyUser in order to be displayed to the end user.