Class NotifyToSocial


  • public class NotifyToSocial
    extends Object
    • Constructor Detail

      • NotifyToSocial

        public NotifyToSocial​(org.gcube.application.cms.plugins.events.ItemObserved<org.gcube.application.geoportal.common.model.document.Project> itemObserved,
                              List<NotificationWhen> listWhen,
                              NMessagesPlaceholdersSubstitutorUtil nMPlaceholdersSUtil,
                              List<org.gcube.application.geoportal.common.model.document.accounting.User> recipientUsers,
                              org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEventType catalogueEventType)
    • Method Detail

      • userNotify

        protected void userNotify​(String subject,
                                  String bodyMessage,
                                  org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEventType catalogueEventType)
                           throws Exception
        Throws:
        Exception
      • getCatalogueEvent

        protected org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEvent getCatalogueEvent​(String subject,
                                                                                                                      String bodyMessage)
                                                                                                               throws Exception
        Throws:
        Exception
      • toCatalogueEvent

        protected org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEvent toCatalogueEvent​(org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEventType catalogueEventType,
                                                                                                                     String messageString,
                                                                                                                     String subject,
                                                                                                                     String itemURL,
                                                                                                                     List<String> users)
                                                                                                              throws Exception
        Throws:
        Exception