Class ReportImpl
java.lang.Object
org.opencastproject.usertracking.endpoint.ReportImpl
- All Implemented Interfaces:
Report
A
Report-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ReportItem reportItem) Add an report item to the reportgetFrom()Gets the date the data of the report starts fromintgetLimit()Gets the maximum number of report items of the report (used for paging)intGets the number of the report item to start with in the list of all report items (used for paging)longGets the sum of the number of played seconds of all report itemsgetTo()Gets the date the data of the report is referring tointgetTotal()Gets the total of report itemsintgetViews()Gets the sum of views of all report itemsvoidSets the the date the data of the report starts fromvoidsetLimit(int limit) Sets the maximum number of report items of the report (used for paging)voidsetOffset(int offset) Sets the number of the report item to start with in the list of all report items (used for paging)voidsetPlayed(long played) Sets the sum of the number of played seconds of all report itemsvoidSets the date the data of the report is referring tovoidsetTotal(int total) Sets the total of report itemsvoidsetViews(int views) Sets the sum of views of all report items
-
Field Details
-
from
-
to
-
views
protected int views -
played
protected long played -
total
protected int total -
offset
protected int offset -
limit
protected int limit -
reportItems
-
-
Constructor Details
-
ReportImpl
public ReportImpl()A no-arg constructor needed by JAXB
-
-
Method Details
-
add
Description copied from interface:ReportAdd an report item to the report -
setTotal
public void setTotal(int total) Description copied from interface:ReportSets the total of report items -
setLimit
public void setLimit(int limit) Description copied from interface:ReportSets the maximum number of report items of the report (used for paging) -
setOffset
public void setOffset(int offset) Description copied from interface:ReportSets the number of the report item to start with in the list of all report items (used for paging) -
getFrom
Description copied from interface:ReportGets the date the data of the report starts from -
setFrom
Description copied from interface:ReportSets the the date the data of the report starts from -
getTo
Description copied from interface:ReportGets the date the data of the report is referring to -
setTo
Description copied from interface:ReportSets the date the data of the report is referring to -
getViews
public int getViews()Description copied from interface:ReportGets the sum of views of all report items -
setViews
public void setViews(int views) Description copied from interface:ReportSets the sum of views of all report items -
getPlayed
public long getPlayed()Description copied from interface:ReportGets the sum of the number of played seconds of all report items -
setPlayed
public void setPlayed(long played) Description copied from interface:ReportSets the sum of the number of played seconds of all report items -
getTotal
public int getTotal()Description copied from interface:ReportGets the total of report items -
getOffset
public int getOffset()Description copied from interface:ReportGets the number of the report item to start with in the list of all report items (used for paging) -
getLimit
public int getLimit()Description copied from interface:ReportGets the maximum number of report items of the report (used for paging)
-