it.sistematica.isharedoc.service
Class NotificationServiceImpl

java.lang.Object
  extended by it.sistematica.isharedoc.service.NotificationServiceImpl
All Implemented Interfaces:
NotificationService

@Service(value="notificationService")
public class NotificationServiceImpl
extends java.lang.Object
implements NotificationService


Field Summary
(package private)  it.neverworks.util.Configuration Configuration
           
(package private)  it.neverworks.data.EntityManager entities
           
(package private)  it.neverworks.notification.NotificationCenter notificationCenter
           
(package private)  OrganizationService organizationService
           
(package private)  ReportingService reportingService
           
(package private)  org.hibernate.SessionFactory sessionFactory
           
(package private)  it.neverworks.application.service.UserInfo userInfo
           
 
Fields inherited from interface it.sistematica.isharedoc.service.NotificationService
GROUP_MAIL_NOTIFICATION, GROUP_MAIL_POLLING_NOTIFICATION, GROUP_REPLICA_NOTIFICATION, GROUP_RESERVED_LEVEL, GROUP_SYSTEM_MAINTENANCE, GROUP_TASK_NOTIFICATION
 
Constructor Summary
NotificationServiceImpl()
           
 
Method Summary
 void taskCompleted(java.lang.String assigneeId, java.lang.String organizationId, java.lang.String taskId, java.lang.String taskName, ItemInstance instance)
          Task completed.
 void taskCreated(java.lang.String assigneeId, java.lang.String organizationId, java.lang.String taskId, java.lang.String taskName, ItemInstance instance)
          Task created.
 void taskUpdated(java.lang.String fromAssigneeId, java.lang.String toAssigneeId, java.lang.String fromOrganizationId, java.lang.String toOrganizationId, java.lang.String taskId, java.lang.String taskName, ItemInstance instance)
          Task updated.
 void tweet(ItemInstance toInstance, it.neverworks.security.User toUser, java.lang.String message)
          Tweet.
 void tweet(ItemInstance instance, it.neverworks.security.User toUser, Tweet.Type type, java.lang.String group, java.lang.String title, java.lang.String message, java.lang.String url)
          Tweet.
 void tweet(Team toTeam, Tweet.Type type, java.lang.String group, java.lang.String title, java.lang.String message)
          Tweet.
 void tweet(it.neverworks.security.User toUser, Tweet.Type type, java.lang.String message)
          Tweet.
 void tweet(it.neverworks.security.User toUser, Tweet.Type type, java.lang.String title, java.lang.String message)
          Tweet.
 void tweet(it.neverworks.security.User toUser, Tweet.Type type, java.lang.String group, java.lang.String title, java.lang.String message)
          Tweet.
 void tweet(it.neverworks.security.User toUser, Tweet.Type type, java.lang.String group, java.lang.String title, java.lang.String message, java.lang.String url)
          Tweet.
 void tweetRemove(Tweet tweet)
          Tweet remove.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userInfo

it.neverworks.application.service.UserInfo userInfo

entities

it.neverworks.data.EntityManager entities

notificationCenter

it.neverworks.notification.NotificationCenter notificationCenter

reportingService

ReportingService reportingService

organizationService

OrganizationService organizationService

Configuration

it.neverworks.util.Configuration Configuration

sessionFactory

org.hibernate.SessionFactory sessionFactory
Constructor Detail

NotificationServiceImpl

public NotificationServiceImpl()
Method Detail

taskCreated

@Transactional
public void taskCreated(java.lang.String assigneeId,
                                      java.lang.String organizationId,
                                      java.lang.String taskId,
                                      java.lang.String taskName,
                                      ItemInstance instance)
Description copied from interface: NotificationService
Task created.

Specified by:
taskCreated in interface NotificationService
Parameters:
assigneeId - the assignee id
organizationId - the organization id
taskId - the task id
taskName - the task name
instance - the instance

taskUpdated

@Transactional
public void taskUpdated(java.lang.String fromAssigneeId,
                                      java.lang.String toAssigneeId,
                                      java.lang.String fromOrganizationId,
                                      java.lang.String toOrganizationId,
                                      java.lang.String taskId,
                                      java.lang.String taskName,
                                      ItemInstance instance)
Description copied from interface: NotificationService
Task updated.

Specified by:
taskUpdated in interface NotificationService
Parameters:
fromAssigneeId - the from assignee id
toAssigneeId - the to assignee id
fromOrganizationId - the from organization id
toOrganizationId - the to organization id
taskId - the task id
taskName - the task name
instance - the instance

taskCompleted

@Transactional
public void taskCompleted(java.lang.String assigneeId,
                                        java.lang.String organizationId,
                                        java.lang.String taskId,
                                        java.lang.String taskName,
                                        ItemInstance instance)
Description copied from interface: NotificationService
Task completed.

Specified by:
taskCompleted in interface NotificationService
Parameters:
assigneeId - the assignee id
organizationId - the organization id
taskId - the task id
taskName - the task name
instance - the instance

tweet

public void tweet(ItemInstance toInstance,
                  it.neverworks.security.User toUser,
                  java.lang.String message)
Description copied from interface: NotificationService
Tweet.

Specified by:
tweet in interface NotificationService
Parameters:
toInstance - the to instance
toUser - the to user
message - the message

tweet

public void tweet(it.neverworks.security.User toUser,
                  Tweet.Type type,
                  java.lang.String message)
Description copied from interface: NotificationService
Tweet.

Specified by:
tweet in interface NotificationService
Parameters:
toUser - the to user
type - the type
message - the message

tweet

public void tweet(it.neverworks.security.User toUser,
                  Tweet.Type type,
                  java.lang.String title,
                  java.lang.String message)
Description copied from interface: NotificationService
Tweet.

Specified by:
tweet in interface NotificationService
Parameters:
toUser - the to user
type - the type
title - the title
message - the message

tweet

public void tweet(it.neverworks.security.User toUser,
                  Tweet.Type type,
                  java.lang.String group,
                  java.lang.String title,
                  java.lang.String message)
Description copied from interface: NotificationService
Tweet.

Specified by:
tweet in interface NotificationService
Parameters:
toUser - the to user
type - the type
group - the group
title - the title
message - the message

tweet

public void tweet(it.neverworks.security.User toUser,
                  Tweet.Type type,
                  java.lang.String group,
                  java.lang.String title,
                  java.lang.String message,
                  java.lang.String url)
Description copied from interface: NotificationService
Tweet.

Specified by:
tweet in interface NotificationService
Parameters:
toUser - the to user
type - the type
group - the group
title - the title
message - the message
url - the url

tweet

@Transactional
public void tweet(Team toTeam,
                                Tweet.Type type,
                                java.lang.String group,
                                java.lang.String title,
                                java.lang.String message)
Description copied from interface: NotificationService
Tweet.

Specified by:
tweet in interface NotificationService
Parameters:
toTeam - the to team
type - the type
group - the group
title - the title
message - the message

tweet

@Transactional
public void tweet(ItemInstance instance,
                                it.neverworks.security.User toUser,
                                Tweet.Type type,
                                java.lang.String group,
                                java.lang.String title,
                                java.lang.String message,
                                java.lang.String url)
Description copied from interface: NotificationService
Tweet.

Specified by:
tweet in interface NotificationService
Parameters:
instance - the instance
toUser - the to user
type - the type
group - the group
title - the title
message - the message
url - the url

tweetRemove

public void tweetRemove(Tweet tweet)
Description copied from interface: NotificationService
Tweet remove.

Specified by:
tweetRemove in interface NotificationService
Parameters:
tweet - the tweet