Class LinkProviderUtils
java.lang.Object
org.exoplatform.social.notification.LinkProviderUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAcceptInvitationToJoinSpaceUrl(String spaceId, String userId) Gets the url to the space's home pagestatic StringGet private absolute base url of rest servicestatic StringGet base url of rest servicestatic StringgetConfirmInvitationToConnectUrl(String senderId, String receiverId) Gets the url to the user's profile page of the senderstatic StringgetIgnoreInvitationToConnectUrl(String senderId, String receiverId) Gets the url to the connection's tab of the current userstatic StringgetIgnoreInvitationToJoinSpaceUrl(String spaceId, String userId) Gets the url to the space's home pagestatic StringgetInviteToConnectUrl(String receiverId, String senderId) Gets the url to the user's profile page of the receiverstatic StringgetOpenLink(org.exoplatform.social.core.activity.model.ExoSocialActivity activity) Get the open link for each type of notificationstatic StringGet the Redirect login urlstatic StringgetPortalRestUrl(String type, String objectId1, String objectId2) Get the url with the login redirectionstatic StringgetPrivateRestUrl(String type, String objectId1, String objectId2) Deprecated.static StringgetRedirectUrl(String type, String objectId) Gets the associated page of typestatic StringgetRefuseRequestToJoinSpaceUrl(String spaceId, String userId) Gets the url to the space's membersstatic StringgetRestUrl(String type, String objectId1, String objectId2) Gets full rest urlstatic StringgetSpaceAvatarUrl(org.exoplatform.social.core.space.model.Space space) Gets the space's avatar url.static StringgetUserAvatarUrl(org.exoplatform.social.core.identity.model.Profile profile) Gets the user's avatar url.static StringgetValidateRequestToJoinSpaceUrl(String spaceId, String userId) Gets the url to the space's membersstatic StringgetWebNotificationRestUrl(String type, String objectId1, String objectId2) static StringgetWebNotificationRestUrl(String type, String objectId1, String objectId2, String notificationId, String jsonFile) Gets the rest service URI for the specified context
-
Field Details
-
RESOURCE_URL
- See Also:
-
INVITE_TO_CONNECT
- See Also:
-
CONFIRM_INVITATION_TO_CONNECT
- See Also:
-
IGNORE_INVITATION_TO_CONNECT
- See Also:
-
ACCEPT_INVITATION_JOIN_SPACE
- See Also:
-
IGNORE_INVITATION_JOIN_SPACE
- See Also:
-
VALIDATE_REQUEST_JOIN_SPACE
- See Also:
-
REFUSE_SPACE_REQUEST_ACTION
- See Also:
-
REPLY_ACTIVITY
- See Also:
-
VIEW_FULL_DISCUSSION
- See Also:
-
REDIRECT_URL
- See Also:
-
PRIVATE_PATH
- See Also:
-
LOGIN_INITIALURI
- See Also:
-
-
Constructor Details
-
LinkProviderUtils
public LinkProviderUtils()
-
-
Method Details
-
getInviteToConnectUrl
Gets the url to the user's profile page of the receiver- Parameters:
senderId- remoteId of the senderreceiverId- remoteId of the receiver- Returns:
-
getConfirmInvitationToConnectUrl
Gets the url to the user's profile page of the sender- Parameters:
senderId- remoteId of the senderreceiverId- remoteId of the receiver- Returns:
-
getIgnoreInvitationToConnectUrl
Gets the url to the connection's tab of the current user- Parameters:
senderId- remoteId of the senderreceiverId- remoteId of the receiver- Returns:
-
getAcceptInvitationToJoinSpaceUrl
Gets the url to the space's home page- Parameters:
spaceId-userId-- Returns:
-
getIgnoreInvitationToJoinSpaceUrl
Gets the url to the space's home page- Parameters:
spaceId-userId- remoteId of the user- Returns:
-
getValidateRequestToJoinSpaceUrl
Gets the url to the space's members- Parameters:
spaceId-userId- remoteId of the user- Returns:
-
getRefuseRequestToJoinSpaceUrl
Gets the url to the space's members- Parameters:
spaceId-userId- remoteId of the user- Returns:
-
getRedirectUrl
Gets the associated page of type- Parameters:
type- type of the page : user or space or activityobjectId- can be a space's id or user's id or activity's id- Returns:
-
getWebNotificationRestUrl
-
getWebNotificationRestUrl
public static String getWebNotificationRestUrl(String type, String objectId1, String objectId2, String notificationId, String jsonFile) Gets the rest service URI for the specified context- Parameters:
type-objectId1-objectId2-jsonFile- the json file name- Returns:
-
getRestUrl
Gets full rest url- Parameters:
type-objectId1-objectId2-- Returns:
-
getBaseRestUrl
Get base url of rest service- Returns:
- base rest url like : http://localhost:8080/rest
-
getPortalRestUrl
Get the url with the login redirection- Parameters:
type-objectId1-objectId2-- Returns:
-
getPortalLoginRedirectURL
Get the Redirect login url- Returns:
- url http://localhost:8080/portal/login?initialURI=/portal/rest
-
getPrivateRestUrl
Deprecated.Gets private absolute rest url- Parameters:
type-objectId1-objectId2-- Returns:
-
getBasePrivateRestUrl
Get private absolute base url of rest service- Returns:
- base rest url like : http://localhost:8080/rest/private
-
getUserAvatarUrl
Gets the user's avatar url. In case this url is null, we take the default url- Parameters:
profile- user profile- Returns:
-
getSpaceAvatarUrl
Gets the space's avatar url. In case this url is null, we take the default url- Parameters:
space-- Returns:
-
getOpenLink
public static String getOpenLink(org.exoplatform.social.core.activity.model.ExoSocialActivity activity) Get the open link for each type of notification- Parameters:
activity- The activity of the notification- Returns:
- The link to open the related resource (file, event, wiki page, ...)
-