|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectza.org.coefficient.statistics.data.ProjectStatistics
public class ProjectStatistics
Field Summary | |
---|---|
private java.util.Map |
archive
|
private ProjectStatisticsData |
currentData
|
static java.text.SimpleDateFormat |
DATE_FORMAT
|
private java.lang.Long |
id
|
private java.util.Map |
moduleStatistics
|
private java.lang.Long |
projectId
|
private java.util.Date |
statsDate
|
Constructor Summary | |
---|---|
ProjectStatistics()
|
Method Summary | |
---|---|
void |
addModuleStatistics(ModuleStatistics ms)
|
boolean |
archiveStats()
|
void |
calculateRank()
|
private long |
calculateStats()
|
void |
deleteModuleStatistics(ModuleStatistics ms)
|
java.util.Map |
getArchive()
Gets the value of archive |
ProjectStatisticsData |
getCurrentData()
Gets the value of currentData |
java.util.Map |
getDownloadActivityForNumberOfDaysIncludingToday(int days)
This method will get the download activity for each day up to the number of specified days from today. |
long |
getDownloadActivityTotalForNumberOfDaysIncludingToday(int days)
This method will get the download activity for each day up to the number of specified days from today. |
long |
getDownloadStatsForDate(java.util.Date date)
|
java.lang.Long |
getId()
Gets the value of id |
java.util.Date |
getLatestModifiedDate()
|
java.util.Map |
getModuleStatistics()
Gets the value of moduleStatistics |
java.lang.Long |
getProjectId()
Gets the value of projectId |
long |
getRankForNumberOfDaysIncludingToday(int days)
|
java.util.Date |
getStatsDate()
Gets the value of statsDate |
java.util.Map |
getTotalActivityForNumberOfDaysIncludingToday(int days)
This method will get the total activity for each day up to the number of specified days from today. |
java.util.Map |
getViewActivityForNumberOfDaysIncludingToday(int days)
This method will get the view activity for each day up to the number of specified days from today. |
long |
getViewActivityTotalForNumberOfDaysIncludingToday(int days)
This method will get the view activity for each day up to the number of specified days from today. |
long |
getViewStatsForDate(java.util.Date date)
|
void |
setArchive(java.util.Map argArchive)
Sets the value of archive |
void |
setCurrentData(ProjectStatisticsData argCurrentData)
Sets the value of currentData |
void |
setId(java.lang.Long argId)
Sets the value of id |
void |
setModuleStatistics(java.util.Map argModuleStatistics)
Sets the value of moduleStatistics |
void |
setProjectId(java.lang.Long argProjectId)
Sets the value of projectId |
void |
setStatsDate(java.util.Date argStatsDate)
Sets the value of statsDate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.text.SimpleDateFormat DATE_FORMAT
private java.util.Date statsDate
private java.lang.Long id
private java.lang.Long projectId
private java.util.Map moduleStatistics
private java.util.Map archive
private ProjectStatisticsData currentData
Constructor Detail |
---|
public ProjectStatistics()
Method Detail |
---|
public boolean archiveStats()
public void setId(java.lang.Long argId)
argId
- Value to assign to this.idpublic java.lang.Long getId()
public java.util.Date getLatestModifiedDate()
public void setModuleStatistics(java.util.Map argModuleStatistics)
argModuleStatistics
- Value to assign to this.moduleStatisticspublic java.util.Map getModuleStatistics()
public void setProjectId(java.lang.Long argProjectId)
argProjectId
- Value to assign to this.projectIdpublic java.lang.Long getProjectId()
public void setStatsDate(java.util.Date argStatsDate)
argStatsDate
- Value to assign to this.statsDatepublic java.util.Date getStatsDate()
public void addModuleStatistics(ModuleStatistics ms)
public void calculateRank()
public void deleteModuleStatistics(ModuleStatistics ms)
public java.util.Map getArchive()
public void setArchive(java.util.Map argArchive)
argArchive
- Value to assign to this.archivepublic ProjectStatisticsData getCurrentData()
public void setCurrentData(ProjectStatisticsData argCurrentData)
argCurrentData
- Value to assign to this.currentDatapublic java.util.Map getTotalActivityForNumberOfDaysIncludingToday(int days)
days
- indicates how many days including today to report back on. If
there is no data for a day then the activity result will be 0.
public long getViewStatsForDate(java.util.Date date)
public long getDownloadStatsForDate(java.util.Date date)
public java.util.Map getViewActivityForNumberOfDaysIncludingToday(int days)
days
- indicates how many days including today to report back on. If
there is no data for a day then the activity result will be 0.
public long getViewActivityTotalForNumberOfDaysIncludingToday(int days)
days
- indicates how many days including today to report back on. If
there is no data for a day then the activity result will be 0.
public java.util.Map getDownloadActivityForNumberOfDaysIncludingToday(int days)
days
- indicates how many days including today to report back on. If
there is no data for a day then the activity result will be 0.
public long getDownloadActivityTotalForNumberOfDaysIncludingToday(int days)
days
- indicates how many days including today to report back on. If
there is no data for a day then the activity result will be 0.
public long getRankForNumberOfDaysIncludingToday(int days)
private long calculateStats()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |