com.aelitis.azureus.activities
Class VuzeActivitiesEntry

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

public class VuzeActivitiesEntry
extends java.lang.Object
implements TableColumnSortObject

Comparable implementation sorts on timestamp.

equals() implementation compares IDs

Author:
TuxPaper

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

tableColumn

public TableColumnCore tableColumn
Constructor Detail

VuzeActivitiesEntry

public VuzeActivitiesEntry(long timestamp,
                           java.lang.String text,
                           java.lang.String typeID)

VuzeActivitiesEntry

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

VuzeActivitiesEntry

public VuzeActivitiesEntry()
Method Detail

updateFrom

protected void updateFrom(VuzeActivitiesEntry other)

loadFromExternalMap

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

loadFromInternalMap

public void loadFromInternalMap(java.util.Map<?,?> map)

loadCommonFromMap

public void loadCommonFromMap(java.util.Map<?,?> map)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

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

setAssetImageURL

public void setAssetImageURL(java.lang.String url)

getAssetImageURL

public java.lang.String getAssetImageURL()

toDeletedMap

public java.util.Map<java.lang.String,java.lang.Object> toDeletedMap()

setActions

public void setActions(java.lang.String[] _actions)

getActions

public java.lang.String[] getActions()

allowReAdd

public boolean allowReAdd()

setCallback

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

invokeCallback

public void invokeCallback(java.lang.String action)

toMap

public java.util.Map<java.lang.String,java.lang.Object> toMap()

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

setTypeID

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

getTypeID

public java.lang.String getTypeID()
Returns:
the typeID

setIconID

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

setIconIDRaw

public void setIconIDRaw(java.lang.String iconID)

getIconID

public java.lang.String getIconID()
Returns:
the iconID

setText

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

getText

public java.lang.String getText()
Returns:
the text

setID

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

getID

public java.lang.String getID()
Returns:
the id

setAssetHash

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

getAssetHash

public java.lang.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 java.lang.String getTorrentName()

setTorrentName

public void setTorrentName(java.lang.String torrentName)

createSelectedContentObject

public SelectedContentV3 createSelectedContentObject()
                                              throws java.lang.Exception
Throws:
java.lang.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()