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 Instance Methods Concrete Methods Modifier and Type Method Description org.gcube.social_networking.social_networking_client_library.MessageClientgetMessagesClient()Gets the messages client.org.gcube.social_networking.social_networking_client_library.NotificationClientgetNotificationClient()Gets the notification client.org.gcube.social_networking.social_networking_client_library.PostClientgetPostClient()Gets the post client.org.gcube.social_networking.social_networking_client_library.UserClientgetUserClient()Gets the user client.List<String>getUsernamesByRole(String roleName)Gets the usernames by role.List<String>getUsernamesByScope()Gets the usernames by scope.org.gcube.portal.databook.shared.PostwriteApplication(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)Write application.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
-
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
-
-