com.aelitis.azureus.activities
Class VuzeActivitiesEntry

java.lang.Object
  extended by com.aelitis.azureus.activities.VuzeActivitiesEntry
All Implemented Interfaces:
TableColumnSortObject, Comparable

public class VuzeActivitiesEntry
extends Object
implements TableColumnSortObject

Comparable implementation sorts on timestamp.

equals() implementation compares IDs

Author:
TuxPaper

Field Summary
 TableColumnCore tableColumn
           
 Object urlInfo
           
 
Constructor Summary
VuzeActivitiesEntry()
           
VuzeActivitiesEntry(long timestamp, String text, String typeID)
           
VuzeActivitiesEntry(long timestamp, String text, String icon, String id, String typeID, String assetHash)
           
 
Method Summary
 boolean allowReAdd()
           
 boolean canFlipRead()
           
 int compareTo(Object obj)
           
 SelectedContentV3 createSelectedContentObject()
           
 boolean equals(Object obj)
           
 String[] getActions()
           
 String getAssetHash()
           
 String getAssetImageURL()
           
 DownloadManager getDownloadManger()
           
 String getIconID()
           
 String getID()
           
 byte[] getImageBytes()
           
 long getReadOn()
           
 boolean getShowThumb()
           
 String getText()
           
 long getTimestamp()
           
 TOTorrent getTorrent()
          Independant for getDownloadManger().
 String getTorrentName()
           
 String getTypeID()
           
 boolean getViewed()
           
 int hashCode()
           
 void invokeCallback(String action)
           
 boolean isPlayable(boolean blocking)
           
 boolean isRead()
           
 void loadCommonFromMap(Map<?,?> map)
           
 void loadFromExternalMap(Map<?,?> platformEntry)
           
 void loadFromInternalMap(Map<?,?> map)
           
 void setActions(String[] _actions)
           
 void setAssetHash(String assetHash)
           
 void setAssetImageURL(String url)
           
 void setCallback(Class<? extends AZ3Functions.provider.LocalActivityCallback> _callback, Map<String,String> _callback_data)
           
 void setDownloadManager(DownloadManager dm)
           
 void setIconID(String iconID)
           
 void setIconIDRaw(String iconID)
           
 void setID(String id)
           
 void setImageBytes(byte[] imageBytes)
           
 void setPlayable(boolean playable)
           
 void setRead(boolean read)
           
 void setReadOn(long readOn)
           
 void setShowThumb(boolean showThumb)
           
 void setText(String text)
           
 void setTimestamp(long timestamp)
           
 void setTorrent(TOTorrent torrent)
          Not needed if you setDownloadManager(DownloadManager).
 void setTorrentName(String torrentName)
           
 void setTypeID(String typeID, boolean autoSetIcon)
           
 void setViewed()
           
 Map<String,Object> toDeletedMap()
           
 Map<String,Object> toMap()
           
protected  void updateFrom(VuzeActivitiesEntry other)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

urlInfo

public Object urlInfo

tableColumn

public TableColumnCore tableColumn
Constructor Detail

VuzeActivitiesEntry

public VuzeActivitiesEntry(long timestamp,
                           String text,
                           String typeID)

VuzeActivitiesEntry

public VuzeActivitiesEntry(long timestamp,
                           String text,
                           String icon,
                           String id,
                           String typeID,
                           String assetHash)

VuzeActivitiesEntry

public VuzeActivitiesEntry()
Method Detail

updateFrom

protected void updateFrom(VuzeActivitiesEntry other)

loadFromExternalMap

public void loadFromExternalMap(Map<?,?> platformEntry)
Parameters:
platformEntry -

loadFromInternalMap

public void loadFromInternalMap(Map<?,?> map)

loadCommonFromMap

public void loadCommonFromMap(Map<?,?> map)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable

setAssetImageURL

public void setAssetImageURL(String url)

getAssetImageURL

public String getAssetImageURL()

toDeletedMap

public Map<String,Object> toDeletedMap()

setActions

public void setActions(String[] _actions)

getActions

public String[] getActions()

allowReAdd

public boolean allowReAdd()

setCallback

public void setCallback(Class<? extends AZ3Functions.provider.LocalActivityCallback> _callback,
                        Map<String,String> _callback_data)

invokeCallback

public void invokeCallback(String action)

toMap

public Map<String,Object> toMap()

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

setTypeID

public void setTypeID(String typeID,
                      boolean autoSetIcon)
Parameters:
typeID - the typeID to set

getTypeID

public String getTypeID()
Returns:
the typeID

setIconID

public void setIconID(String iconID)
Parameters:
iconID - the iconID to set

setIconIDRaw

public void setIconIDRaw(String iconID)

getIconID

public String getIconID()
Returns:
the iconID

setText

public void setText(String text)
Parameters:
text - the text to set

getText

public String getText()
Returns:
the text

setID

public void setID(String id)
Parameters:
id - the id to set

getID

public String getID()
Returns:
the id

setAssetHash

public void setAssetHash(String assetHash)
Parameters:
assetHash - the assetHash to set

getAssetHash

public String getAssetHash()
Returns:
the assetHash

setDownloadManager

public void setDownloadManager(DownloadManager dm)
Parameters:
dm - the dm to set

getDownloadManger

public DownloadManager getDownloadManger()
Returns:
the dm

setImageBytes

public void setImageBytes(byte[] imageBytes)
Parameters:
imageBytes - the imageBytes to set

getImageBytes

public byte[] getImageBytes()
Returns:
the imageBytes

setShowThumb

public void setShowThumb(boolean showThumb)
Parameters:
showThumb - the showThumb to set

getShowThumb

public boolean getShowThumb()
Returns:
the showThumb

getTorrent

public TOTorrent getTorrent()
Independant for getDownloadManger(). This will be written to the map.

Returns:
Only returns TOTorrent set via setTorrent(TOTorrent)
Since:
3.0.5.3

setTorrent

public void setTorrent(TOTorrent torrent)
Not needed if you setDownloadManager(DownloadManager). This will be written the map.

Parameters:
torrent -
Since:
3.0.5.3

getTorrentName

public String getTorrentName()

setTorrentName

public void setTorrentName(String torrentName)

createSelectedContentObject

public SelectedContentV3 createSelectedContentObject()
                                              throws Exception
Throws:
Exception

isPlayable

public boolean isPlayable(boolean blocking)

setPlayable

public void setPlayable(boolean playable)

getReadOn

public long getReadOn()

setReadOn

public void setReadOn(long readOn)

setRead

public void setRead(boolean read)

isRead

public boolean isRead()

setViewed

public void setViewed()

getViewed

public boolean getViewed()

canFlipRead

public boolean canFlipRead()