com.aelitis.azureus.activities
Class VuzeActivitiesManager

java.lang.Object
  extended by com.aelitis.azureus.activities.VuzeActivitiesManager

public class VuzeActivitiesManager
extends java.lang.Object

Manage Vuze News Entries. Loads, Saves, and expires them

Author:
TuxPaper

Field Summary
static long MAX_LIFE_MS
           
 
Constructor Summary
VuzeActivitiesManager()
           
 
Method Summary
static VuzeActivitiesEntry[] addEntries(VuzeActivitiesEntry[] entries)
           
static void addListener(VuzeActivitiesListener l)
           
static void addListener(VuzeActivitiesLoadedListener l)
           
static void clearLastPullTimes()
           
static VuzeActivitiesEntry createEntryFromMap(java.util.Map<?,?> map, boolean internalMap)
           
static java.util.List<VuzeActivitiesEntry> getAllEntries()
           
static long getCutoffTime()
           
static VuzeActivitiesEntry getEntryByID(java.lang.String id)
           
static java.lang.Object[] getMostRecentUnseen()
           
static int getNumEntries()
           
static void initialize(AzureusCore core)
           
static boolean isEntryIdRemoved(java.lang.String id)
           
static void log(java.lang.String s)
           
static void pullActivitiesNow(long delay, java.lang.String reason, boolean alwaysPull)
          Pull entries from webapp
static void removeEntries(VuzeActivitiesEntry[] entries)
           
static void removeEntries(VuzeActivitiesEntry[] entries, boolean allowReAdd)
           
static void removeListener(VuzeActivitiesListener l)
           
static void removeListener(VuzeActivitiesLoadedListener l)
           
static void resetRemovedEntries()
          Clear the removed entries list so that an entry that was once deleted will will be able to be added again
static void triggerEntryChanged(VuzeActivitiesEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_LIFE_MS

public static final long MAX_LIFE_MS
See Also:
Constant Field Values
Constructor Detail

VuzeActivitiesManager

public VuzeActivitiesManager()
Method Detail

initialize

public static void initialize(AzureusCore core)

pullActivitiesNow

public static void pullActivitiesNow(long delay,
                                     java.lang.String reason,
                                     boolean alwaysPull)
Pull entries from webapp

Parameters:
delay - max time to wait before running request
Since:
3.0.4.3

clearLastPullTimes

public static void clearLastPullTimes()

resetRemovedEntries

public static void resetRemovedEntries()
Clear the removed entries list so that an entry that was once deleted will will be able to be added again

Since:
3.0.4.3

getCutoffTime

public static long getCutoffTime()

addListener

public static void addListener(VuzeActivitiesListener l)

removeListener

public static void removeListener(VuzeActivitiesListener l)

addListener

public static void addListener(VuzeActivitiesLoadedListener l)

removeListener

public static void removeListener(VuzeActivitiesLoadedListener l)

addEntries

public static VuzeActivitiesEntry[] addEntries(VuzeActivitiesEntry[] entries)
Parameters:
entries -
Returns:
list of entries actually added (no dups)
Since:
3.0.4.3

removeEntries

public static void removeEntries(VuzeActivitiesEntry[] entries)

removeEntries

public static void removeEntries(VuzeActivitiesEntry[] entries,
                                 boolean allowReAdd)

getEntryByID

public static VuzeActivitiesEntry getEntryByID(java.lang.String id)

isEntryIdRemoved

public static boolean isEntryIdRemoved(java.lang.String id)

getAllEntries

public static java.util.List<VuzeActivitiesEntry> getAllEntries()

getMostRecentUnseen

public static java.lang.Object[] getMostRecentUnseen()

getNumEntries

public static int getNumEntries()

log

public static void log(java.lang.String s)

triggerEntryChanged

public static void triggerEntryChanged(VuzeActivitiesEntry entry)
Parameters:
vuzeActivitiesEntry -
Since:
3.0.4.3

createEntryFromMap

public static VuzeActivitiesEntry createEntryFromMap(java.util.Map<?,?> map,
                                                     boolean internalMap)
Parameters:
map -
Returns:
Since:
3.0.5.3