Top Description Fields Constructors Methods
org.jabref.gui.frame

public abstract Class SendAsEMailAction

extends SimpleCommand
Class Inheritance
Known Direct Subclasses
org.jabref.gui.frame.SendAsKindleEmailAction, org.jabref.gui.frame.SendAsStandardEmailAction
Annotations
@AllowedToUseAwt:Requires AWT to send an email
Imports
java.awt.Desktop, java.io.IOException, java.net.URI, .URISyntaxException, java.nio.file.Path, java.util.ArrayList, .List, org.jabref.architecture.AllowedToUseAwt, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.SimpleCommand, org.jabref.gui.desktop.JabRefDesktop, org.jabref.gui.util.BackgroundTask, .TaskExecutor, org.jabref.logic.l10n.Localization, org.jabref.logic.util.io.FileUtil, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.preferences.PreferencesService, org.slf4j.Logger, .LoggerFactory

Sends the selected entry as email

It uses the mailto:-mechanism

Microsoft Outlook does not support attachments via mailto Therefore, the folder(s), where the file(s) belonging to the entry are stored, are opened. This feature is disabled by default and can be switched on at preferences/external programs

Field Summary

Modifier and TypeField and Description
private final DialogService
private static final Logger
private final PreferencesService
private final StateManager
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
SendAsEMailAction(DialogService dialogService, PreferencesService preferencesService, StateManager stateManager, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
public void
private List<String>
protected abstract String
protected abstract String
protected abstract String
private URI
private String
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
LOGGERback to summary
private static final Logger LOGGER
preferencesServiceback to summary
private final PreferencesService preferencesService
stateManagerback to summary
private final StateManager stateManager
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

SendAsEMailActionback to summary
public SendAsEMailAction(DialogService dialogService, PreferencesService preferencesService, StateManager stateManager, TaskExecutor taskExecutor)

Method Detail

executeback to summary
public void execute()
Annotations
@Override
getAttachmentsback to summary
private List<String> getAttachments(List<BibEntry> entries)
getBodyback to summary
protected abstract String getBody()
getEmailAddressback to summary
protected abstract String getEmailAddress()
getSubjectback to summary
protected abstract String getSubject()
getUriMailToback to summary
private URI getUriMailTo(List<BibEntry> entries) throws URISyntaxException
sendEmailback to summary
private String sendEmail() throws Exception