public class LinkProviderUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT_INVITATION_JOIN_SPACE |
static String |
CONFIRM_INVITATION_TO_CONNECT |
static String |
IGNORE_INVITATION_JOIN_SPACE |
static String |
IGNORE_INVITATION_TO_CONNECT |
static String |
INVITE_TO_CONNECT |
static String |
LOGIN_INITIALURI |
static String |
PRIVATE_PATH |
static String |
REDIRECT_URL |
static String |
REFUSE_SPACE_REQUEST_ACTION |
static String |
REPLY_ACTIVITY |
static String |
RESOURCE_URL |
static String |
VALIDATE_REQUEST_JOIN_SPACE |
static String |
VIEW_FULL_DISCUSSION |
| Constructor and Description |
|---|
LinkProviderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAcceptInvitationToJoinSpaceUrl(String spaceId,
String userId)
Gets the url to the space's home page
|
static String |
getBasePrivateRestUrl()
Get private absolute base url of rest service
|
static String |
getBaseRestUrl()
Get base url of rest service
|
static String |
getConfirmInvitationToConnectUrl(String senderId,
String receiverId)
Gets the url to the user's profile page of the sender
|
static String |
getIgnoreInvitationToConnectUrl(String senderId,
String receiverId)
Gets the url to the connection's tab of the current user
|
static String |
getIgnoreInvitationToJoinSpaceUrl(String spaceId,
String userId)
Gets the url to the space's home page
|
static String |
getInviteToConnectUrl(String receiverId,
String senderId)
Gets the url to the user's profile page of the receiver
|
static String |
getOpenLink(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Get the open link for each type of notification
|
static String |
getPortalLoginRedirectURL()
Get the Redirect login url
|
static String |
getPortalRestUrl(String type,
String objectId1,
String objectId2)
Get the url with the login redirection
|
static String |
getPrivateRestUrl(String type,
String objectId1,
String objectId2)
Deprecated.
|
static String |
getRedirectUrl(String type,
String objectId)
Gets the associated page of type
|
static String |
getRefuseRequestToJoinSpaceUrl(String spaceId,
String userId)
Gets the url to the space's members
|
static String |
getRestUrl(String type,
String objectId1,
String objectId2)
Gets full rest url
|
static String |
getSpaceAvatarUrl(org.exoplatform.social.core.space.model.Space space)
Gets the space's avatar url.
|
static String |
getUserAvatarUrl(org.exoplatform.social.core.identity.model.Profile profile)
Gets the user's avatar url.
|
static String |
getValidateRequestToJoinSpaceUrl(String spaceId,
String userId)
Gets the url to the space's members
|
static String |
getWebNotificationRestUrl(String type,
String objectId1,
String objectId2) |
static String |
getWebNotificationRestUrl(String type,
String objectId1,
String objectId2,
String notificationId,
String jsonFile)
Gets the rest service URI for the specified context
|
public static final String RESOURCE_URL
public static final String INVITE_TO_CONNECT
public static final String CONFIRM_INVITATION_TO_CONNECT
public static final String IGNORE_INVITATION_TO_CONNECT
public static final String ACCEPT_INVITATION_JOIN_SPACE
public static final String IGNORE_INVITATION_JOIN_SPACE
public static final String VALIDATE_REQUEST_JOIN_SPACE
public static final String REFUSE_SPACE_REQUEST_ACTION
public static final String REPLY_ACTIVITY
public static final String VIEW_FULL_DISCUSSION
public static final String REDIRECT_URL
public static final String PRIVATE_PATH
public static final String LOGIN_INITIALURI
public static String getInviteToConnectUrl(String receiverId, String senderId)
senderId - remoteId of the senderreceiverId - remoteId of the receiverpublic static String getConfirmInvitationToConnectUrl(String senderId, String receiverId)
senderId - remoteId of the senderreceiverId - remoteId of the receiverpublic static String getIgnoreInvitationToConnectUrl(String senderId, String receiverId)
senderId - remoteId of the senderreceiverId - remoteId of the receiverpublic static String getAcceptInvitationToJoinSpaceUrl(String spaceId, String userId)
spaceId - userId - public static String getIgnoreInvitationToJoinSpaceUrl(String spaceId, String userId)
spaceId - userId - remoteId of the userpublic static String getValidateRequestToJoinSpaceUrl(String spaceId, String userId)
spaceId - userId - remoteId of the userpublic static String getRefuseRequestToJoinSpaceUrl(String spaceId, String userId)
spaceId - userId - remoteId of the userpublic static String getRedirectUrl(String type, String objectId)
type - type of the page : user or space or activityobjectId - can be a space's id or user's id or activity's idpublic static String getWebNotificationRestUrl(String type, String objectId1, String objectId2)
public static String getWebNotificationRestUrl(String type, String objectId1, String objectId2, String notificationId, String jsonFile)
type - objectId1 - objectId2 - jsonFile - the json file namepublic static String getRestUrl(String type, String objectId1, String objectId2)
type - objectId1 - objectId2 - public static String getBaseRestUrl()
public static String getPortalRestUrl(String type, String objectId1, String objectId2)
type - objectId1 - objectId2 - public static String getPortalLoginRedirectURL()
@Deprecated public static String getPrivateRestUrl(String type, String objectId1, String objectId2)
type - objectId1 - objectId2 - public static String getBasePrivateRestUrl()
public static String getUserAvatarUrl(org.exoplatform.social.core.identity.model.Profile profile)
profile - user profilepublic static String getSpaceAvatarUrl(org.exoplatform.social.core.space.model.Space space)
space - public static String getOpenLink(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
activity - The activity of the notificationCopyright © 2003–2021 eXo Platform SAS. All rights reserved.