1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.calendar.service;
24  
25  /**
26   * <a href="CalEventLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl</code>.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.calendar.service.CalEventServiceFactory
48   * @see com.liferay.portlet.calendar.service.CalEventServiceUtil
49   *
50   */
51  public interface CalEventLocalService {
52      public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
53          com.liferay.portlet.calendar.model.CalEvent model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
65          com.liferay.portlet.calendar.model.CalEvent model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
69          long plid, java.lang.String title, java.lang.String description,
70          int startDateMonth, int startDateDay, int startDateYear,
71          int startDateHour, int startDateMinute, int endDateMonth,
72          int endDateDay, int endDateYear, int durationHour, int durationMinute,
73          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
74          boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
75          java.lang.String remindBy, int firstReminder, int secondReminder,
76          boolean addCommunityPermissions, boolean addGuestPermissions)
77          throws com.liferay.portal.SystemException, 
78              com.liferay.portal.PortalException;
79  
80      public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
81          long plid, java.lang.String title, java.lang.String description,
82          int startDateMonth, int startDateDay, int startDateYear,
83          int startDateHour, int startDateMinute, int endDateMonth,
84          int endDateDay, int endDateYear, int durationHour, int durationMinute,
85          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
86          boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
87          java.lang.String remindBy, int firstReminder, int secondReminder,
88          java.lang.String[] communityPermissions,
89          java.lang.String[] guestPermissions)
90          throws com.liferay.portal.SystemException, 
91              com.liferay.portal.PortalException;
92  
93      public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
94          long plid, java.lang.String title, java.lang.String description,
95          int startDateMonth, int startDateDay, int startDateYear,
96          int startDateHour, int startDateMinute, int endDateMonth,
97          int endDateDay, int endDateYear, int durationHour, int durationMinute,
98          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
99          boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
100         java.lang.String remindBy, int firstReminder, int secondReminder,
101         java.lang.Boolean addCommunityPermissions,
102         java.lang.Boolean addGuestPermissions,
103         java.lang.String[] communityPermissions,
104         java.lang.String[] guestPermissions)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portal.PortalException;
107 
108     public void addEventResources(long eventId,
109         boolean addCommunityPermissions, boolean addGuestPermissions)
110         throws com.liferay.portal.SystemException, 
111             com.liferay.portal.PortalException;
112 
113     public void addEventResources(
114         com.liferay.portlet.calendar.model.CalEvent event,
115         boolean addCommunityPermissions, boolean addGuestPermissions)
116         throws com.liferay.portal.SystemException, 
117             com.liferay.portal.PortalException;
118 
119     public void addEventResources(long eventId,
120         java.lang.String[] communityPermissions,
121         java.lang.String[] guestPermissions)
122         throws com.liferay.portal.SystemException, 
123             com.liferay.portal.PortalException;
124 
125     public void addEventResources(
126         com.liferay.portlet.calendar.model.CalEvent event,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions)
129         throws com.liferay.portal.SystemException, 
130             com.liferay.portal.PortalException;
131 
132     public void checkEvents()
133         throws com.liferay.portal.SystemException, 
134             com.liferay.portal.PortalException;
135 
136     public void deleteEvent(long eventId)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portal.PortalException;
139 
140     public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
141         throws com.liferay.portal.SystemException, 
142             com.liferay.portal.PortalException;
143 
144     public void deleteEvents(long groupId)
145         throws com.liferay.portal.SystemException, 
146             com.liferay.portal.PortalException;
147 
148     public java.io.File exportEvent(long userId, long eventId)
149         throws com.liferay.portal.SystemException, 
150             com.liferay.portal.PortalException;
151 
152     public java.io.File exportGroupEvents(long userId, long plid,
153         java.lang.String fileName)
154         throws com.liferay.portal.SystemException, 
155             com.liferay.portal.PortalException;
156 
157     public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portal.PortalException;
160 
161     public java.util.List getEvents(long groupId, java.lang.String type,
162         int begin, int end) throws com.liferay.portal.SystemException;
163 
164     public java.util.List getEvents(long groupId, java.util.Calendar cal)
165         throws com.liferay.portal.SystemException;
166 
167     public java.util.List getEvents(long groupId, java.util.Calendar cal,
168         java.lang.String type) throws com.liferay.portal.SystemException;
169 
170     public int getEventsCount(long groupId, java.lang.String type)
171         throws com.liferay.portal.SystemException;
172 
173     public java.util.List getRepeatingEvents(long groupId)
174         throws com.liferay.portal.SystemException;
175 
176     public boolean hasEvents(long groupId, java.util.Calendar cal)
177         throws com.liferay.portal.SystemException;
178 
179     public boolean hasEvents(long groupId, java.util.Calendar cal,
180         java.lang.String type) throws com.liferay.portal.SystemException;
181 
182     public void importICal4j(long userId, long plid, java.io.File file)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portal.PortalException;
185 
186     public com.liferay.portlet.calendar.model.CalEvent updateEvent(
187         long userId, long eventId, java.lang.String title,
188         java.lang.String description, int startDateMonth, int startDateDay,
189         int startDateYear, int startDateHour, int startDateMinute,
190         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
191         int durationMinute, boolean allDay, boolean timeZoneSensitive,
192         java.lang.String type, boolean repeating,
193         com.liferay.portal.kernel.cal.Recurrence recurrence,
194         java.lang.String remindBy, int firstReminder, int secondReminder)
195         throws com.liferay.portal.SystemException, 
196             com.liferay.portal.PortalException;
197 }