1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.mail.service;
16  
17  import com.liferay.mail.model.Filter;
18  import com.liferay.portal.PortalException;
19  import com.liferay.portal.SystemException;
20  import com.liferay.portal.kernel.annotation.Transactional;
21  import com.liferay.portal.kernel.mail.MailMessage;
22  
23  import java.util.List;
24  
25  import javax.mail.Session;
26  
27  /**
28   * <a href="MailService.java.html"><b><i>View Source</i></b></a>
29   *
30   * @author Brian Wing Shun Chan
31   */
32  @Transactional(rollbackFor = {PortalException.class, SystemException.class})
33  public interface MailService {
34  
35      public void addForward(
36          long companyId, long userId, List<Filter> filters,
37          List<String> emailAddresses, boolean leaveCopy);
38  
39      public void addUser(
40          long companyId, long userId, String password, String firstName,
41          String middleName, String lastName, String emailAddress);
42  
43      public void addVacationMessage(
44          long companyId, long userId, String emailAddress,
45          String vacationMessage);
46  
47      public void clearSession();
48  
49      public void deleteEmailAddress(long companyId, long userId);
50  
51      public void deleteUser(long companyId, long userId);
52  
53      public Session getSession() throws SystemException;
54  
55      public void sendEmail(MailMessage mailMessage);
56  
57      public void updateBlocked(
58          long companyId, long userId, List<String> blocked);
59  
60      public void updateEmailAddress(
61          long companyId, long userId, String emailAddress);
62  
63      public void updatePassword(long companyId, long userId, String password);
64  
65  }