Dekoh platform API

dekoh.portal.fwk.persistence.search
Class TagCloud

java.lang.Object
  extended by dekoh.portal.fwk.persistence.search.TagCloud
All Implemented Interfaces:
Iterable

public class TagCloud
extends Object
implements Iterable

TagCloud is a collection of tags ordered on popularity(number of DigitalObjects tagged). A tag cloud can be trimmed to specifying size.

Once tag Cloud is created Ordered sequence of tags can be obtained using TagCloud.getTagCloudEntries() method. Each TagCloudEntry will contain the popularity and its rank in the cloud.

Since:
Dec 4, 2006

Method Summary
static TagCloud getMostFrequentlyUsed(DIOEntityManager em, int maxCloudSize, String applicationId)
           
static TagCloud getMostFrequentlyUsed(DIOEntityManager em, int maxCloudSize, String applicationId, LocalUser owner)
           
static TagCloud getMostRecentlyUsedBetween(DIOEntityManager em, Date from, Date to, int maxCloudSize, String applicationId, LocalUser owner)
           
 Set getTagCloudEntries()
          Creates the TagCloudEntry Object have tagName, Tag-Frequency, Tag-Weightage
static TagCloud getTagsUsedSinceLastMonth(DIOEntityManager em, int maxCloudSize, String applicationId)
           
static TagCloud getTagsUsedSinceLastMonth(DIOEntityManager em, int maxCloudSize, String applicationId, LocalUser owner)
           
static TagCloud getTagsUsedSinceLastWeek(DIOEntityManager em, int maxCloudSize, String applicationId)
           
static TagCloud getTagsUsedSinceLastWeek(DIOEntityManager em, int maxCloudSize, String applicationId, LocalUser owner)
           
static TagCloud getTagsUsedSinceYesterday(DIOEntityManager em, int maxCloudSize, String applicationId)
           
static TagCloud getTagsUsedSinceYesterday(DIOEntityManager em, int maxCloudSize, String applicationId, LocalUser owner)
           
 Iterator iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTagCloudEntries

public Set getTagCloudEntries()
Creates the TagCloudEntry Object have tagName, Tag-Frequency, Tag-Weightage

Returns:
set tag cloud entries

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable

getTagsUsedSinceLastMonth

public static TagCloud getTagsUsedSinceLastMonth(DIOEntityManager em,
                                                 int maxCloudSize,
                                                 String applicationId,
                                                 LocalUser owner)

getTagsUsedSinceLastMonth

public static TagCloud getTagsUsedSinceLastMonth(DIOEntityManager em,
                                                 int maxCloudSize,
                                                 String applicationId)

getTagsUsedSinceLastWeek

public static TagCloud getTagsUsedSinceLastWeek(DIOEntityManager em,
                                                int maxCloudSize,
                                                String applicationId)

getTagsUsedSinceLastWeek

public static TagCloud getTagsUsedSinceLastWeek(DIOEntityManager em,
                                                int maxCloudSize,
                                                String applicationId,
                                                LocalUser owner)

getTagsUsedSinceYesterday

public static TagCloud getTagsUsedSinceYesterday(DIOEntityManager em,
                                                 int maxCloudSize,
                                                 String applicationId)

getTagsUsedSinceYesterday

public static TagCloud getTagsUsedSinceYesterday(DIOEntityManager em,
                                                 int maxCloudSize,
                                                 String applicationId,
                                                 LocalUser owner)

getMostFrequentlyUsed

public static TagCloud getMostFrequentlyUsed(DIOEntityManager em,
                                             int maxCloudSize,
                                             String applicationId,
                                             LocalUser owner)

getMostFrequentlyUsed

public static TagCloud getMostFrequentlyUsed(DIOEntityManager em,
                                             int maxCloudSize,
                                             String applicationId)

getMostRecentlyUsedBetween

public static TagCloud getMostRecentlyUsedBetween(DIOEntityManager em,
                                                  Date from,
                                                  Date to,
                                                  int maxCloudSize,
                                                  String applicationId,
                                                  LocalUser owner)

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers