Class Reporting

All Implemented Interfaces:
Serializable, IBaseEntity, ICollectionManaged, ICoreEntity, IEntity, ISortableEntity, ISchedulable

@Entity public class Reporting extends SimpleEntity implements ISchedulable, ICollectionManaged
entity to store report definition
See Also:
  • Field Details

    • BIT_TIMER_WF

      public static final int BIT_TIMER_WF
      ISchedulable: reporting should start a periodical workflow
      See Also:
  • Constructor Details

    • Reporting

      public Reporting()
      default constructor
    • Reporting

      public Reporting(String definition)
      constructor with mandatory properties
    • Reporting

      public Reporting(Reporting source)
      copy constructor
  • Method Details

    • getOwner

      public User getOwner()
    • setOwner

      public void setOwner(User owner)
    • getWorkflowType

      public WorkflowType getWorkflowType()
      Specified by:
      getWorkflowType in interface ISchedulable
      Returns:
      the workflow type responsive to execute this schedulable object
    • getReportingProperties

      public Set<ReportingProperty> getReportingProperties()
    • setReportingProperties

      public void setReportingProperties(Set<ReportingProperty> reportingProperties)
    • getReportingResults

      public List<Report> getReportingResults()
    • setReportingResults

      public void setReportingResults(List<Report> reportingResults)
    • getNotificationReceivers

      public Set<Principal> getNotificationReceivers()
    • setNotificationReceivers

      public void setNotificationReceivers(Set<Principal> notificationReceivers)
    • getDefinition

      public String getDefinition()
    • setDefinition

      public void setDefinition(String definition)
    • getDateCreated

      public Calendar getDateCreated()
    • setDateCreated

      public void setDateCreated(Calendar dateCreated)
    • getDateModified

      public Calendar getDateModified()
    • setDateModified

      public void setDateModified(Calendar dateModified)
    • getDateExecution

      public Calendar getDateExecution()
      Returns:
      Time when reporting result was most recently stored (last run of reporting).
    • setDateExecution

      public void setDateExecution(Calendar dateExecution)
    • setWorkflowType

      public void setWorkflowType(WorkflowType workflowType)
    • getStartTime

      public Calendar getStartTime()
      Specified by:
      getStartTime in interface ISchedulable
      Returns:
      start time as calendar
    • setStartTime

      public void setStartTime(Calendar startTime)
    • getPeriod

      public long getPeriod()
      Specified by:
      getPeriod in interface ISchedulable
      Returns:
      execution interval in seconds
    • setPeriod

      public void setPeriod(long period)
    • getScheduleExpression

      public String getScheduleExpression()
      Specified by:
      getScheduleExpression in interface ISchedulable
      Returns:
      schedule expression in cron syntax
    • setScheduleExpression

      public void setScheduleExpression(String scheduleExpression)
    • isTimerWorkflow

      public boolean isTimerWorkflow()
      Specified by:
      isTimerWorkflow in interface ISchedulable
      Returns:
      true if timer flag is enabled
    • setTimerWorkflow

      public void setTimerWorkflow(boolean timerWorkflow)
    • isNotify

      public boolean isNotify()
    • setNotify

      public void setNotify(boolean notify)
    • isNotifyResultOnly

      public boolean isNotifyResultOnly()
    • setNotifyResultOnly

      public void setNotifyResultOnly(boolean notifyResultOnly)
    • isRootPerType

      public boolean isRootPerType()
      Description copied from interface: ICollectionManaged
      Flag that indicates if the entities have a root collection per type or if there is only one global root collection. if rootPerType true it can only apply to entities that have a type, i.e. ComplexEntities.
      Specified by:
      isRootPerType in interface ICollectionManaged
    • getType

      public ComplexTypeEntity getType()
      Specified by:
      getType in interface ICollectionManaged