Class SocialClients
- java.lang.Object
-
- org.gcube.application.cms.notifications.social.SocialClients
-
public class SocialClients extends Object
The Class SocialClients.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Mar 20, 2024
-
-
Constructor Summary
Constructors Constructor Description SocialClients()Instantiates a new social util.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.slf4j.LoggergetLog()org.gcube.social_networking.social_networking_client_library.MessageClientgetMessagesClient()org.gcube.social_networking.social_networking_client_library.NotificationClientgetNotificationClient()org.gcube.social_networking.social_networking_client_library.PostClientgetPostClient()org.gcube.social_networking.social_networking_client_library.UserClientgetUserClient()List<String>getUsernamesByRole(String roleName)Gets the usernames by role.List<String>getUsernamesByScope()Gets the usernames by scope.StringwriteMessage(org.gcube.social_networking.socialnetworking.model.beans.MessageInputBean msg)Write message.org.gcube.portal.databook.shared.PostwriteUserPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)Write user post.
-
-
-
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
-
getLog
public static org.slf4j.Logger getLog()
-
getPostClient
public org.gcube.social_networking.social_networking_client_library.PostClient getPostClient()
-
getMessagesClient
public org.gcube.social_networking.social_networking_client_library.MessageClient getMessagesClient()
-
getUserClient
public org.gcube.social_networking.social_networking_client_library.UserClient getUserClient()
-
getNotificationClient
public org.gcube.social_networking.social_networking_client_library.NotificationClient getNotificationClient()
-
-