@Component @Named(value="anonymousCommunication") @Singleton public class AnonymousCommunicationScriptService extends Object implements org.xwiki.script.service.ScriptService
identifier of the connection.| Constructor and Description |
|---|
AnonymousCommunicationScriptService() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
grantAccess(String connectionId)
Grant mutual view access on the two patients to the owners.
|
int |
sendInitialMail(String connectionId,
Map<String,Object> options)
Send the initial email to the owner of the matched patient.
|
public int sendInitialMail(String connectionId, Map<String,Object> options)
connectionId - the id of the anonymous communication linking the two patients and their owners that are
involved in this connectionoptions - the mail content options selected by the user0 if the mail was successfully sent, other numbers in case of errorspublic Connection grantAccess(String connectionId)
connectionId - the id of the anonymous communication linking the two patients and their owners that are
involved in this connection0 if access was successfully granted, other numbers in case of errorsCopyright © 2011–2014 University of Toronto, Computational Biology Lab. All rights reserved.