Package org.intermine.api.tracker.track
Class ListTrack
- java.lang.Object
-
- org.intermine.api.tracker.track.TrackAbstract
-
- org.intermine.api.tracker.track.ListTrack
-
- All Implemented Interfaces:
Track
public class ListTrack extends TrackAbstract
Class to represent the track for the lists objects. The track contains the type, the count of the items, the way used to build the list.- Author:
- dbutano
-
-
Field Summary
-
Fields inherited from class org.intermine.api.tracker.track.TrackAbstract
sessionIdentifier, timestamp, userName
-
-
Constructor Summary
Constructors Constructor Description ListTrack(java.lang.String type, int count, ListBuildMode buildMode, ListTrackerEvent event)
ListTrack(java.lang.String type, int count, ListBuildMode buildMode, ListTrackerEvent event, java.lang.String username, java.lang.String sessionIdentifier, java.sql.Timestamp timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBuildMode
getBuildMode()
Return the way the list is builtint
getCount()
Return the number of items contained into the listListTrackerEvent
getEvent()
Return the type of event to track (creation or list execution )java.lang.Object[]
getFormattedTrack()
Return the track formatted into an array of String to be saved in the databasejava.lang.String
getTableName()
Return the table name where the track has to be savedjava.lang.String
getType()
Return the class type of items contained into the listboolean
validate()
Validate the track before saving into the database-
Methods inherited from class org.intermine.api.tracker.track.TrackAbstract
getSessionIdentifier, getTimestamp, getUserName, store
-
-
-
-
Constructor Detail
-
ListTrack
public ListTrack(java.lang.String type, int count, ListBuildMode buildMode, ListTrackerEvent event, java.lang.String username, java.lang.String sessionIdentifier, java.sql.Timestamp timestamp)
- Parameters:
type
- the class type of items contained into the listcount
- number of items contained into the listbuildMode
- the way the list is builtevent
- type of event to track (creation or list execution )username
- user who created listsessionIdentifier
- sessiontimestamp
- time stamp
-
ListTrack
public ListTrack(java.lang.String type, int count, ListBuildMode buildMode, ListTrackerEvent event)
- Parameters:
type
- the class type of items contained into the listcount
- number of items contained into the listbuildMode
- the way the list is builtevent
- type of event to track (creation or list execution )
-
-
Method Detail
-
validate
public boolean validate()
Validate the track before saving into the database- Returns:
- true if the track is valid
-
getFormattedTrack
public java.lang.Object[] getFormattedTrack()
Return the track formatted into an array of String to be saved in the database- Returns:
- Object[] an array of Objects
-
getType
public java.lang.String getType()
Return the class type of items contained into the list- Returns:
- String the class type
-
getCount
public int getCount()
Return the number of items contained into the list- Returns:
- int the number of items
-
getBuildMode
public ListBuildMode getBuildMode()
Return the way the list is built- Returns:
- ListBuildMode
-
getEvent
public ListTrackerEvent getEvent()
Return the type of event to track (creation or list execution )- Returns:
- ListTrackerEvent the event
-
getTableName
public java.lang.String getTableName()
Return the table name where the track has to be saved- Returns:
- String the table name
-
-