com.aelitis.azureus.activities
Class VuzeActivitiesManager

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

public class VuzeActivitiesManager
extends 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(Map<?,?> map, boolean internalMap)
           
static List<VuzeActivitiesEntry> getAllEntries()
           
static long getCutoffTime()
           
static VuzeActivitiesEntry getEntryByID(String id)
           
static int getNumEntries()
           
static void initialize(AzureusCore core)
           
static boolean isEntryIdRemoved(String id)
           
static void log(String s)
           
static void pullActivitiesNow(long delay, 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,
                                     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(String id)

isEntryIdRemoved

public static boolean isEntryIdRemoved(String id)

getAllEntries

public static List<VuzeActivitiesEntry> getAllEntries()

getNumEntries

public static int getNumEntries()

log

public static void log(String s)

triggerEntryChanged

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

createEntryFromMap

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