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.portlet.announcements.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Transactional;
21  
22  /**
23   * <a href="AnnouncementsEntryService.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This interface defines the service. The default implementation is
32   * {@link
33   * com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl}}.
34   * Modify methods in that class and rerun ServiceBuilder to populate this class
35   * and all other generated classes.
36   * </p>
37   *
38   * <p>
39   * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       AnnouncementsEntryServiceUtil
44   * @generated
45   */
46  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
47      PortalException.class, SystemException.class})
48  public interface AnnouncementsEntryService {
49      public com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
50          long plid, long classNameId, long classPK, java.lang.String title,
51          java.lang.String content, java.lang.String url, java.lang.String type,
52          int displayDateMonth, int displayDateDay, int displayDateYear,
53          int displayDateHour, int displayDateMinute, int expirationDateMonth,
54          int expirationDateDay, int expirationDateYear, int expirationDateHour,
55          int expirationDateMinute, int priority, boolean alert)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      public void deleteEntry(long entryId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException;
62  
63      public com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
64          long entryId, java.lang.String title, java.lang.String content,
65          java.lang.String url, java.lang.String type, int displayDateMonth,
66          int displayDateDay, int displayDateYear, int displayDateHour,
67          int displayDateMinute, int expirationDateMonth, int expirationDateDay,
68          int expirationDateYear, int expirationDateHour,
69          int expirationDateMinute, int priority)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException;
72  }