1   /**
2    * Copyright (c) 2000-2008 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  /**
27   * <a href="CalEventLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.calendar.service.CalEventLocalServiceFactory
48   * @see com.liferay.portlet.calendar.service.CalEventLocalServiceUtil
49   *
50   */
51  public interface CalEventLocalService {
52      public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
53          com.liferay.portlet.calendar.model.CalEvent calEvent)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteCalEvent(long eventId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteCalEvent(
61          com.liferay.portlet.calendar.model.CalEvent calEvent)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> dynamicQuery(
66          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> dynamicQuery(
70          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71          int begin, int end) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
74          com.liferay.portlet.calendar.model.CalEvent calEvent)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
78          long plid, java.lang.String title, java.lang.String description,
79          int startDateMonth, int startDateDay, int startDateYear,
80          int startDateHour, int startDateMinute, int endDateMonth,
81          int endDateDay, int endDateYear, int durationHour, int durationMinute,
82          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
83          boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
84          java.lang.String remindBy, int firstReminder, int secondReminder,
85          boolean addCommunityPermissions, boolean addGuestPermissions)
86          throws com.liferay.portal.SystemException,
87              com.liferay.portal.PortalException;
88  
89      public com.liferay.portlet.calendar.model.CalEvent addEvent(
90          java.lang.String uuid, long userId, long plid, java.lang.String title,
91          java.lang.String description, int startDateMonth, int startDateDay,
92          int startDateYear, int startDateHour, int startDateMinute,
93          int endDateMonth, int endDateDay, int endDateYear, int durationHour,
94          int durationMinute, boolean allDay, boolean timeZoneSensitive,
95          java.lang.String type, boolean repeating,
96          com.liferay.portal.kernel.cal.Recurrence recurrence,
97          java.lang.String remindBy, int firstReminder, int secondReminder,
98          boolean addCommunityPermissions, boolean addGuestPermissions)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portal.PortalException;
101 
102     public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
103         long plid, java.lang.String title, java.lang.String description,
104         int startDateMonth, int startDateDay, int startDateYear,
105         int startDateHour, int startDateMinute, int endDateMonth,
106         int endDateDay, int endDateYear, int durationHour, int durationMinute,
107         boolean allDay, boolean timeZoneSensitive, java.lang.String type,
108         boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
109         java.lang.String remindBy, int firstReminder, int secondReminder,
110         java.lang.String[] communityPermissions,
111         java.lang.String[] guestPermissions)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portal.PortalException;
114 
115     public com.liferay.portlet.calendar.model.CalEvent addEvent(
116         java.lang.String uuid, long userId, long plid, java.lang.String title,
117         java.lang.String description, int startDateMonth, int startDateDay,
118         int startDateYear, int startDateHour, int startDateMinute,
119         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
120         int durationMinute, boolean allDay, boolean timeZoneSensitive,
121         java.lang.String type, boolean repeating,
122         com.liferay.portal.kernel.cal.Recurrence recurrence,
123         java.lang.String remindBy, int firstReminder, int secondReminder,
124         java.lang.Boolean addCommunityPermissions,
125         java.lang.Boolean addGuestPermissions,
126         java.lang.String[] communityPermissions,
127         java.lang.String[] guestPermissions)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portal.PortalException;
130 
131     public void addEventResources(long eventId,
132         boolean addCommunityPermissions, boolean addGuestPermissions)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portal.PortalException;
135 
136     public void addEventResources(
137         com.liferay.portlet.calendar.model.CalEvent event,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portal.PortalException;
141 
142     public void addEventResources(long eventId,
143         java.lang.String[] communityPermissions,
144         java.lang.String[] guestPermissions)
145         throws com.liferay.portal.SystemException,
146             com.liferay.portal.PortalException;
147 
148     public void addEventResources(
149         com.liferay.portlet.calendar.model.CalEvent event,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portal.PortalException;
154 
155     public void checkEvents()
156         throws com.liferay.portal.SystemException,
157             com.liferay.portal.PortalException;
158 
159     public void deleteEvent(long eventId)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portal.PortalException;
162 
163     public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portal.PortalException;
166 
167     public void deleteEvents(long groupId)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portal.PortalException;
170 
171     public java.io.File exportEvent(long userId, long eventId)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portal.PortalException;
174 
175     public java.io.File exportGroupEvents(long userId, long plid,
176         java.lang.String fileName)
177         throws com.liferay.portal.SystemException,
178             com.liferay.portal.PortalException;
179 
180     public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portal.PortalException;
183 
184     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
185         long groupId, java.lang.String type, int begin, int end)
186         throws com.liferay.portal.SystemException;
187 
188     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
189         long groupId, java.util.Calendar cal)
190         throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
193         long groupId, java.util.Calendar cal, java.lang.String type)
194         throws com.liferay.portal.SystemException;
195 
196     public int getEventsCount(long groupId, java.lang.String type)
197         throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
200         long groupId) throws com.liferay.portal.SystemException;
201 
202     public boolean hasEvents(long groupId, java.util.Calendar cal)
203         throws com.liferay.portal.SystemException;
204 
205     public boolean hasEvents(long groupId, java.util.Calendar cal,
206         java.lang.String type) throws com.liferay.portal.SystemException;
207 
208     public void importICal4j(long userId, long plid, java.io.File file)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portal.PortalException;
211 
212     public com.liferay.portlet.calendar.model.CalEvent updateEvent(
213         long userId, long eventId, java.lang.String title,
214         java.lang.String description, int startDateMonth, int startDateDay,
215         int startDateYear, int startDateHour, int startDateMinute,
216         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
217         int durationMinute, boolean allDay, boolean timeZoneSensitive,
218         java.lang.String type, boolean repeating,
219         com.liferay.portal.kernel.cal.Recurrence recurrence,
220         java.lang.String remindBy, int firstReminder, int secondReminder)
221         throws com.liferay.portal.SystemException,
222             com.liferay.portal.PortalException;
223 }