Class ReportImpl

java.lang.Object
org.opencastproject.usertracking.endpoint.ReportImpl
All Implemented Interfaces:
Report

public class ReportImpl extends Object implements Report
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Calendar
     
    protected int
     
    protected int
     
    protected long
     
    protected List<ReportItemImpl>
     
    protected Calendar
     
    protected int
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    A no-arg constructor needed by JAXB
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(ReportItem reportItem)
    Add an report item to the report
    Gets the date the data of the report starts from
    int
    Gets the maximum number of report items of the report (used for paging)
    int
    Gets the number of the report item to start with in the list of all report items (used for paging)
    long
    Gets the sum of the number of played seconds of all report items
    Gets the date the data of the report is referring to
    int
    Gets the total of report items
    int
    Gets the sum of views of all report items
    void
    Sets the the date the data of the report starts from
    void
    setLimit(int limit)
    Sets the maximum number of report items of the report (used for paging)
    void
    setOffset(int offset)
    Sets the number of the report item to start with in the list of all report items (used for paging)
    void
    setPlayed(long played)
    Sets the sum of the number of played seconds of all report items
    void
    Sets the date the data of the report is referring to
    void
    setTotal(int total)
    Sets the total of report items
    void
    setViews(int views)
    Sets the sum of views of all report items

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • from

      protected Calendar from
    • to

      protected Calendar to
    • views

      protected int views
    • played

      protected long played
    • total

      protected int total
    • offset

      protected int offset
    • limit

      protected int limit
    • reportItems

      protected List<ReportItemImpl> reportItems
  • Constructor Details

    • ReportImpl

      public ReportImpl()
      A no-arg constructor needed by JAXB
  • Method Details

    • add

      public void add(ReportItem reportItem)
      Description copied from interface: Report
      Add an report item to the report
      Specified by:
      add in interface Report
      Parameters:
      reportItem -
    • setTotal

      public void setTotal(int total)
      Description copied from interface: Report
      Sets the total of report items
      Specified by:
      setTotal in interface Report
      Parameters:
      total -
    • setLimit

      public void setLimit(int limit)
      Description copied from interface: Report
      Sets the maximum number of report items of the report (used for paging)
      Specified by:
      setLimit in interface Report
      Parameters:
      limit -
    • setOffset

      public void setOffset(int offset)
      Description copied from interface: Report
      Sets the number of the report item to start with in the list of all report items (used for paging)
      Specified by:
      setOffset in interface Report
      Parameters:
      offset -
    • getFrom

      public Calendar getFrom()
      Description copied from interface: Report
      Gets the date the data of the report starts from
      Specified by:
      getFrom in interface Report
      Returns:
    • setFrom

      public void setFrom(Calendar from)
      Description copied from interface: Report
      Sets the the date the data of the report starts from
      Specified by:
      setFrom in interface Report
      Parameters:
      from -
    • getTo

      public Calendar getTo()
      Description copied from interface: Report
      Gets the date the data of the report is referring to
      Specified by:
      getTo in interface Report
      Returns:
    • setTo

      public void setTo(Calendar to)
      Description copied from interface: Report
      Sets the date the data of the report is referring to
      Specified by:
      setTo in interface Report
      Parameters:
      to -
    • getViews

      public int getViews()
      Description copied from interface: Report
      Gets the sum of views of all report items
      Specified by:
      getViews in interface Report
      Returns:
    • setViews

      public void setViews(int views)
      Description copied from interface: Report
      Sets the sum of views of all report items
      Specified by:
      setViews in interface Report
      Parameters:
      views -
    • getPlayed

      public long getPlayed()
      Description copied from interface: Report
      Gets the sum of the number of played seconds of all report items
      Specified by:
      getPlayed in interface Report
      Returns:
    • setPlayed

      public void setPlayed(long played)
      Description copied from interface: Report
      Sets the sum of the number of played seconds of all report items
      Specified by:
      setPlayed in interface Report
      Parameters:
      played -
    • getTotal

      public int getTotal()
      Description copied from interface: Report
      Gets the total of report items
      Specified by:
      getTotal in interface Report
      Returns:
    • getOffset

      public int getOffset()
      Description copied from interface: Report
      Gets the number of the report item to start with in the list of all report items (used for paging)
      Specified by:
      getOffset in interface Report
      Returns:
    • getLimit

      public int getLimit()
      Description copied from interface: Report
      Gets the maximum number of report items of the report (used for paging)
      Specified by:
      getLimit in interface Report
      Returns: