documented the -Dcom.sap.sailing.domain.tracking.MailInvitationType property

Change-Id: I94b85e8ce68a4c35c0715a714fc7b48820f62d44
This commit is contained in:
Axel Uhl committed 2019-04-18 10:19:28 +02:00
1 parent 33c99333f4
commit 82736db7fe
2 files changed
+11 -6

No files matched your search

@@ -7590,7 +7590,7 @@ public class SailingServiceImpl extends ResultCachingProxiedRemoteServiceServlet
competitors.add(getCompetitor(c));
}
MailInvitationType type = MailInvitationType
.valueOf(System.getProperty(MAILTYPE_PROPERTY, MailInvitationType.LEGACY.name()));
.valueOf(System.getProperty(MAILTYPE_PROPERTY, MailInvitationType.SailInsight1.name()));
Leaderboard leaderboard = getService().getLeaderboardByName(leaderboardName);
getSecurityService().checkCurrentUserUpdatePermission(leaderboard);
Regatta regatta = getService().getRegattaByName(leaderboardName);
@@ -7611,7 +7611,7 @@ public class SailingServiceImpl extends ResultCachingProxiedRemoteServiceServlet
Regatta regatta = getService().getRegattaByName(leaderboardName);
getSecurityService().checkCurrentUserUpdatePermission(regatta);
MailInvitationType type = MailInvitationType
.valueOf(System.getProperty(MAILTYPE_PROPERTY, MailInvitationType.LEGACY.name()));
.valueOf(System.getProperty(MAILTYPE_PROPERTY, MailInvitationType.SailInsight1.name()));
getRaceLogTrackingAdapter().inviteBuoyTenderViaEmail(event, leaderboard, regatta, serverUrlWithoutTrailingSlash,
emails, iOSAppUrl, androidAppUrl, getLocale(localeInfoName), type);
}
+9 -4
View File
@@ -28,8 +28,15 @@ You may need to select "All generations" instead of "Current generation" to see
SERVER_NAME=MYSPECIFICEVENT
BUILD_COMPLETE_NOTIFY=simon.marcel.pamies@sap.com
SERVER_STARTUP_NOTIFY=simon.marcel.pamies@sap.com
ADDITIONAL_JAVA_ARGS="$ADDITIONAL_JAVA_ARGS -Dcom.sap.sailing.domain.tracking.MailInvitationType=SailInsight2"
</pre>
The *MailInvitationType* property controls which version of the SAP Sail Insight app will be targeted by tracking invitations sent out by e-mail.
Two different Branch.io URL schemes exist for the Sail Insight app: sailinsight-app.sapsailing.com and sailinsight20-app.sapsailing.com.
They can be selected by providing *SailInsight1* or *SailInsight2*, respectively, as the values for the property. If the property is
set to *LEGACY*, no Branch.io link is used in the invitation at all. This mode should no longer be used as soon as the Branch.io-enabled
iOS app has hit the store. If not provided, it will default to *SailInsight1*.
Note that when you select to install an environment using the `USE_ENVIRONMENT` variable, any other variable that you specify in the user data, such as the `MONGODB_NAME` or `REPLICATION_CHANNEL` properties in the example above, these additional user data properties will override whatever comes from the environment specified by the `USE_ENVIRONMENT` parameter.
- To build from git, install and start, set the following in the instance's user data, adjusting the branch name (`BUILD_FROM`), the `myspecificevent` naming and memory settings according to your needs:
@@ -68,6 +75,7 @@ SERVER_NAME=MYSPECIFICEVENT
REPLICATION_CHANNEL=myspecificevent
MONGODB_NAME=myspecificevent
SERVER_STARTUP_NOTIFY=you@email.com
ADDITIONAL_JAVA_ARGS="$ADDITIONAL_JAVA_ARGS -Dcom.sap.sailing.domain.tracking.MailInvitationType=SailInsight2"
</pre>
- After your master server is ready, note the internal IP and configure your replica instances. Make sure to use the preconfigured environment from http://releases.sapsailing.com/environments/live-replica-server. Then absolutely make sure to add the line "REPLICATE_MASTER_SERVLET_HOST" to the user-data and adjust the `myspecificevent` master exchange name to the `REPLICATION_CHANNEL` setting you used for the master configuration.
@@ -87,15 +95,12 @@ SERVER_NAME=MYSPECIFICEVENT
MONGODB_NAME=myspecificevent-replica
EVENT_ID=&lt;some-uuid-of-an-event-you-want-to-feature&gt;
SERVER_STARTUP_NOTIFY=you@email.com
ADDITIONAL_JAVA_ARGS="$ADDITIONAL_JAVA_ARGS -Dcom.sap.sailing.domain.tracking.MailInvitationType=SailInsight2"
</pre>
#### Setting up a Multi Instance
To set up a multi instance for a server with name "SSV", subdomain "ssv.sapsailing.com" and description "Schwartauer Segler-Verein, [www.ssv-net.de](http://www.ssv-net.de), Alexander Probst, [webmaster@alexprobst.de](mailto:webmaster@alexprobst.de)" perform the following steps:
##### Instance configuration
1. Connect to the EC2 instance where your multi instance should be deployed. For example: Connect to the instance "SL Multi-Instance Sailing Server" with dns name "ec2-34-250-136-229.eu-west-1.compute.amazonaws.com" in region Ireland via SSH.