Class SocialClients


  • public class SocialClients
    extends Object
    The Class SocialClients.
    Author:
    Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Mar 20, 2024
    • Constructor Detail

      • SocialClients

        public SocialClients()
        Instantiates a new social util.
    • Method Detail

      • getUsernamesByRole

        public List<String> getUsernamesByRole​(String roleName)
                                        throws Exception
        Gets the usernames by role.
        Parameters:
        roleName - the role name
        Returns:
        the usernames by role
        Throws:
        Exception - the exception
      • getUsernamesByScope

        public List<String> getUsernamesByScope()
                                         throws Exception
        Gets the usernames by scope.
        Returns:
        the usernames by scope
        Throws:
        Exception - the exception
      • writeMessage

        public String writeMessage​(org.gcube.social_networking.socialnetworking.model.beans.MessageInputBean msg)
                            throws Exception
        Write message.
        Parameters:
        msg - the msg
        Returns:
        the string
        Throws:
        Exception - the exception
      • writeUserPost

        public org.gcube.portal.databook.shared.Post writeUserPost​(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
        Write user post.
        Parameters:
        toWrite - the to write
        Returns:
        the post
      • writeApplication

        public org.gcube.portal.databook.shared.Post writeApplication​(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
        Write application.
        Parameters:
        toWrite - the to write
        Returns:
        the post
      • getPostClient

        public org.gcube.social_networking.social_networking_client_library.PostClient getPostClient()
        Gets the post client.
        Returns:
        the post client
      • getMessagesClient

        public org.gcube.social_networking.social_networking_client_library.MessageClient getMessagesClient()
        Gets the messages client.
        Returns:
        the messages client
      • getUserClient

        public org.gcube.social_networking.social_networking_client_library.UserClient getUserClient()
        Gets the user client.
        Returns:
        the user client
      • getNotificationClient

        public org.gcube.social_networking.social_networking_client_library.NotificationClient getNotificationClient()
        Gets the notification client.
        Returns:
        the notification client