lumis.service.socialnetworkservices.microblog.core.manager
Class HashOccurrenceManager

Package class diagram package HashOccurrenceManager
java.lang.Object
  extended by lumis.service.socialnetworkservices.microblog.core.manager.HashOccurrenceManager

public class HashOccurrenceManager
extends Object

Manager class used to deal with Hash Ocurrences.

Since:
6.1.0

Method Summary
 List<HashOccurrence> findTopOccurrencesOnDay(Integer maxOccurrences, ITransaction transaction, String serviceInstanceId)
          Method used to retrieve the top-occurrences of a hashtag in the current day.
 List<HashOccurrence> findTopOccurrencesOnWeek(Integer maxOccurrences, ITransaction transaction, String serviceInstanceId)
          Method used to retrieve the top-occurrences of a hashtag in the past week, i.e, the past 7 days.
static HashOccurrenceManager getInstance()
          Singleton method that retrieves a instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HashOccurrenceManager getInstance()
Singleton method that retrieves a instance of this class.

Returns:
an instance of HashOccurrenceManager
Since:
6.1.0

findTopOccurrencesOnWeek

public List<HashOccurrence> findTopOccurrencesOnWeek(Integer maxOccurrences,
                                                     ITransaction transaction,
                                                     String serviceInstanceId)
                                              throws UnexpectedException
Method used to retrieve the top-occurrences of a hashtag in the past week, i.e, the past 7 days.

Parameters:
maxOccurrences - The maximum number of hashtag occurrences desired to retrieve.
transaction - The current transaction.
Returns:
the top hash occurrrences of the current day
Throws:
UnexpectedException
Since:
6.1.0

findTopOccurrencesOnDay

public List<HashOccurrence> findTopOccurrencesOnDay(Integer maxOccurrences,
                                                    ITransaction transaction,
                                                    String serviceInstanceId)
                                             throws UnexpectedException
Method used to retrieve the top-occurrences of a hashtag in the current day.

Parameters:
maxOccurrences - The maximum number of hashtag occurrences desired to retrieve.
transaction - The current transaction.
Returns:
the top hash occurrrences of the current day
Throws:
UnexpectedException
Since:
6.1.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.