it.sistematica.isharedoc.service
Interface ReportingService

All Known Implementing Classes:
ReportingServiceImpl

public interface ReportingService

The Interface ReportingService.


Method Summary
 void archiveInstancePdfReport()
          Archive instance pdf report.
 java.io.File createInstancePdfReport(ItemInstance instance)
          Creates the instance pdf report.
 java.io.File createTreePdfReport(File file)
          Creates the tree pdf report.
 java.util.List<DailyInstance> findInstanceReport(java.util.Date fromDate, java.util.Date toDate)
          Find instance report.
 java.io.ByteArrayOutputStream instanceMailReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
          Instance mail report.
 void mail(java.lang.String from, java.lang.String[] to, java.lang.String[] cc, java.lang.String subject, java.lang.String body)
          Mail.
 void mail(it.neverworks.security.User sender, java.lang.String from, java.lang.String[] to, java.lang.String[] cc, java.lang.String subject, java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String template)
          Mail.
 java.util.List<ReportingServiceImpl.MessageBoxReport> messageBoxesReport()
          Message boxes report.
 java.lang.String prepareTweet(it.neverworks.security.User from, it.neverworks.security.User to, Tweet.Type type, java.lang.String group, java.lang.String title, java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String template)
          Prepare tweet.
 void sendDailyReport()
          Send daily report.
 void sendDailyReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
          Send daily report.
 void sendDeadlinesReport(java.util.List<java.lang.String> mailAddresses, java.util.Map<java.lang.String,java.lang.Object> parameters)
          Send deadlines report.
 void sendInstanceMailReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
          Send instance mail report.
 void sendMailReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
          Send mail report.
 

Method Detail

prepareTweet

java.lang.String prepareTweet(it.neverworks.security.User from,
                              it.neverworks.security.User to,
                              Tweet.Type type,
                              java.lang.String group,
                              java.lang.String title,
                              java.util.Map<java.lang.String,java.lang.Object> data,
                              java.lang.String template)
Prepare tweet.

Parameters:
from - the from
to - the to
type - the type
group - the group
title - the title
data - the data
template - the template
Returns:
the string

mail

void mail(java.lang.String from,
          java.lang.String[] to,
          java.lang.String[] cc,
          java.lang.String subject,
          java.lang.String body)
          throws java.lang.Exception
Mail.

Parameters:
from - the from
to - the to
cc - the cc
subject - the subject
body - the body
Throws:
java.lang.Exception - the exception

mail

void mail(it.neverworks.security.User sender,
          java.lang.String from,
          java.lang.String[] to,
          java.lang.String[] cc,
          java.lang.String subject,
          java.util.Map<java.lang.String,java.lang.Object> data,
          java.lang.String template)
          throws java.lang.Exception
Mail.

Parameters:
sender - the sender
from - the from
to - the to
cc - the cc
subject - the subject
data - the data
template - the template
Throws:
java.lang.Exception - the exception

findInstanceReport

java.util.List<DailyInstance> findInstanceReport(java.util.Date fromDate,
                                                 java.util.Date toDate)
Find instance report.

Parameters:
fromDate - the from date
toDate - the to date
Returns:
the list

archiveInstancePdfReport

void archiveInstancePdfReport()
Archive instance pdf report.


createInstancePdfReport

java.io.File createInstancePdfReport(ItemInstance instance)
Creates the instance pdf report.

Parameters:
instance - the instance
Returns:
the file

createTreePdfReport

java.io.File createTreePdfReport(File file)
Creates the tree pdf report.

Parameters:
file - the file
Returns:
the file

sendDailyReport

void sendDailyReport()
Send daily report.


sendDailyReport

void sendDailyReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
Send daily report.

Parameters:
parameters - the parameters

sendDeadlinesReport

void sendDeadlinesReport(java.util.List<java.lang.String> mailAddresses,
                         java.util.Map<java.lang.String,java.lang.Object> parameters)
Send deadlines report.

Parameters:
mailAddresses - the mail addresses
parameters - the parameters

sendInstanceMailReport

void sendInstanceMailReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
Send instance mail report.

Parameters:
parameters - the parameters

sendMailReport

void sendMailReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
Send mail report.

Parameters:
parameters - the parameters

instanceMailReport

java.io.ByteArrayOutputStream instanceMailReport(java.util.Map<java.lang.String,java.lang.Object> parameters)
Instance mail report.

Parameters:
parameters - the parameters
Returns:
the byte array output stream

messageBoxesReport

java.util.List<ReportingServiceImpl.MessageBoxReport> messageBoxesReport()
Message boxes report.

Returns:
the list