Package org.xwiki.mail.script
Class GeneralMailScriptService
- java.lang.Object
-
- org.xwiki.mail.script.GeneralMailScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Named("mail.general") @Singleton public class GeneralMailScriptService extends Object implements org.xwiki.script.service.ScriptService
Access general mail APIs from scripts.- Since:
- 12.4RC1
- Version:
- $Id: e5565fa9cfc8a123fcd90f53aba11479a2edbe6d $
-
-
Constructor Summary
Constructors Constructor Description GeneralMailScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
obfuscate(javax.mail.internet.InternetAddress emailAddress)
boolean
shouldObfuscate()
-
-
-
Method Detail
-
shouldObfuscate
public boolean shouldObfuscate()
- Returns:
- true when email addresses must be obfuscated and false otherwise. Defaults to false.
-
obfuscate
public String obfuscate(javax.mail.internet.InternetAddress emailAddress)
- Parameters:
emailAddress
- the email address to obfuscate- Returns:
- the obfuscated email address (e.g.
j...@doe.com
forjohn@doe.com
)
-
-