|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.businessfacades.reporting.DefaultReportingManager
public class DefaultReportingManager
This is the default implementation of ReportingManager.
Constructor Summary | |
---|---|
DefaultReportingManager()
Creates a new instance of DefaultReportingManager |
Method Summary | |
---|---|
Event |
getEvent(java.lang.String key)
Retrieve an Event using its unique key |
java.util.List |
getEvents()
Retrieve all already registered events |
MailingList |
getMailingList(Event event,
java.lang.String resourceId)
Retrieve the mailing list corresponding to an event on a specified resource |
MailingList |
getMailingList(java.lang.String name)
Retrieve a MailigList using its name |
java.util.List |
getMailingLists()
Retrieve all the existing mailing lists |
java.util.List |
getMailingLists(Event event)
Retrieve the mailing list corresponding to an event |
Message |
getMessage(long id)
Retrieve a message using its unique identifier |
java.util.List |
getMessages(java.util.Date startDate,
java.util.Date endDate,
Release release)
Retrieve the messages published between startDate and endDate for a release |
java.util.List |
getOpenMessages(Release release)
Retrieve the currently opened messages (ie : published) for a release |
java.util.List |
getSubscriptionsForUser(java.lang.String subscriberId)
Retrieve all subscriptions corresponding to a subscriber |
void |
saveMailingList(MailingList list)
Save a MilingList within datastore (create or update) |
void |
saveMessage(Message message)
Save a Message within datastore (create or update) |
void |
setEventDao(EventDao dao)
|
void |
setMailingListDao(MailingListDao dao)
|
void |
setMessageDao(MessageDao dao)
|
void |
setSubscriptionDao(SubscriptionDao dao)
|
void |
susbcribeUser(java.lang.String subscriberId,
java.util.List mailingLists)
Subscribe a user to a set of mailing lists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultReportingManager()
Method Detail |
---|
public void setEventDao(EventDao dao)
dao
- The EventDao implementation to usepublic void setMessageDao(MessageDao dao)
dao
- The MessageDao implementation to usepublic void setMailingListDao(MailingListDao dao)
dao
- The MailingListDao implementation to usepublic void setSubscriptionDao(SubscriptionDao dao)
dao
- The SubscriptionDao implementation to usepublic java.util.List getEvents()
getEvents
in interface ReportingManager
org.figure8.join.businessobjects.reporting.Event
objectspublic Event getEvent(java.lang.String key)
getEvent
in interface ReportingManager
key
- The key of Event to retrieve
public void saveMessage(Message message)
saveMessage
in interface ReportingManager
message
- The message to savepublic java.util.List getOpenMessages(Release release)
getOpenMessages
in interface ReportingManager
release
- The release to filter messages for (may be null)
public java.util.List getMessages(java.util.Date startDate, java.util.Date endDate, Release release)
getMessages
in interface ReportingManager
startDate
- The date of messages research startendDate
- The date of messages research endrelease
- The release to filter messages for (may be null)
public Message getMessage(long id)
getMessage
in interface ReportingManager
id
- Identifier of message to retrieve
public void saveMailingList(MailingList list) throws DuplicateEntityException
saveMailingList
in interface ReportingManager
list
- The mailing list to save
DuplicateEntityException
- if another list with same name already existspublic java.util.List getMailingLists(Event event)
getMailingLists
in interface ReportingManager
event
- The event to get lists for
org.figure8.join.businessobjects.reporting.MailingList
objectspublic java.util.List getMailingLists()
getMailingLists
in interface ReportingManager
MailingList
spublic MailingList getMailingList(java.lang.String name)
getMailingList
in interface ReportingManager
name
- The name of mailing list to retrieve
public MailingList getMailingList(Event event, java.lang.String resourceId)
getMailingList
in interface ReportingManager
event
- The event to get lists forresourceId
- The identifier of resource to whom event applies
org.figure8.join.businessobjects.reporting.MailingList
objectpublic void susbcribeUser(java.lang.String subscriberId, java.util.List mailingLists)
susbcribeUser
in interface ReportingManager
subscriberId
- Unique identifier of user to register subscriptionsmailingLists
- A list of org.figure8.join.businessobjects.reporting.MailingList
objectspublic java.util.List getSubscriptionsForUser(java.lang.String subscriberId)
getSubscriptionsForUser
in interface ReportingManager
subscriberId
- Unique identifier of user having subscriptions
org.figure8.join.businessobjects.reporting.Subscription
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |