@Requirement(reqId="DOI_DISPO_020", reqName="V\u00e9rification des landing pages") public class LandingPageMonitoring extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
private ClientMDS |
client
Client MDS to get all DOIs.
|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
Constructor and Description |
---|
LandingPageMonitoring(ClientMDS client) |
Modifier and Type | Method and Description |
---|---|
private StringBuffer |
buildDetailMessage(Map.Entry<String,org.restlet.data.Status> record)
Build detail message for a record
|
private String |
extractProjIdFrom(String doi)
Extract projectID from the DOI
|
void |
run()
run.
|
private void |
sendMessageToMembers(String doiSuffix,
String subject,
String body,
EmailSettings email)
Send message by email to project members.
|
private static final org.apache.logging.log4j.Logger LOG
private final ClientMDS client
public LandingPageMonitoring(ClientMDS client)
private StringBuffer buildDetailMessage(Map.Entry<String,org.restlet.data.Status> record)
record
- recordprivate String extractProjIdFrom(String doi)
doi
- doiprivate void sendMessageToMembers(String doiSuffix, String subject, String body, EmailSettings email)
doiSuffix
- project IDsubject
- email subjectbody
- email bodyemail
- email settingsCopyright © 2017–2020 CNES. All rights reserved.