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 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.service.persistence.CalEventPersistence getCalEventPersistence();
69  
70      public void setCalEventPersistence(
71          com.liferay.portlet.calendar.service.persistence.CalEventPersistence calEventPersistence);
72  
73      public com.liferay.portlet.calendar.service.persistence.CalEventFinder getCalEventFinder();
74  
75      public void setCalEventFinder(
76          com.liferay.portlet.calendar.service.persistence.CalEventFinder calEventFinder);
77  
78      public com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence();
79  
80      public void setCompanyPersistence(
81          com.liferay.portal.service.persistence.CompanyPersistence companyPersistence);
82  
83      public com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence();
84  
85      public void setPortletPreferencesPersistence(
86          com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence);
87  
88      public com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder();
89  
90      public void setPortletPreferencesFinder(
91          com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder);
92  
93      public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
94  
95      public void setResourcePersistence(
96          com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
97  
98      public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
99  
100     public void setResourceFinder(
101         com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
102 
103     public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
104 
105     public void setUserPersistence(
106         com.liferay.portal.service.persistence.UserPersistence userPersistence);
107 
108     public com.liferay.portal.service.persistence.UserFinder getUserFinder();
109 
110     public void setUserFinder(
111         com.liferay.portal.service.persistence.UserFinder userFinder);
112 
113     public void afterPropertiesSet();
114 
115     public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
116         long plid, java.lang.String title, java.lang.String description,
117         int startDateMonth, int startDateDay, int startDateYear,
118         int startDateHour, int startDateMinute, int endDateMonth,
119         int endDateDay, int endDateYear, int durationHour, int durationMinute,
120         boolean allDay, boolean timeZoneSensitive, java.lang.String type,
121         boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
122         java.lang.String remindBy, int firstReminder, int secondReminder,
123         boolean addCommunityPermissions, boolean addGuestPermissions)
124         throws com.liferay.portal.SystemException, 
125             com.liferay.portal.PortalException;
126 
127     public com.liferay.portlet.calendar.model.CalEvent addEvent(
128         java.lang.String uuid, long userId, long plid, java.lang.String title,
129         java.lang.String description, int startDateMonth, int startDateDay,
130         int startDateYear, int startDateHour, int startDateMinute,
131         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
132         int durationMinute, boolean allDay, boolean timeZoneSensitive,
133         java.lang.String type, boolean repeating,
134         com.liferay.portal.kernel.cal.Recurrence recurrence,
135         java.lang.String remindBy, int firstReminder, int secondReminder,
136         boolean addCommunityPermissions, boolean addGuestPermissions)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portal.PortalException;
139 
140     public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
141         long plid, java.lang.String title, java.lang.String description,
142         int startDateMonth, int startDateDay, int startDateYear,
143         int startDateHour, int startDateMinute, int endDateMonth,
144         int endDateDay, int endDateYear, int durationHour, int durationMinute,
145         boolean allDay, boolean timeZoneSensitive, java.lang.String type,
146         boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
147         java.lang.String remindBy, int firstReminder, int secondReminder,
148         java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.SystemException, 
151             com.liferay.portal.PortalException;
152 
153     public com.liferay.portlet.calendar.model.CalEvent addEvent(
154         java.lang.String uuid, long userId, long plid, java.lang.String title,
155         java.lang.String description, int startDateMonth, int startDateDay,
156         int startDateYear, int startDateHour, int startDateMinute,
157         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
158         int durationMinute, boolean allDay, boolean timeZoneSensitive,
159         java.lang.String type, boolean repeating,
160         com.liferay.portal.kernel.cal.Recurrence recurrence,
161         java.lang.String remindBy, int firstReminder, int secondReminder,
162         java.lang.Boolean addCommunityPermissions,
163         java.lang.Boolean addGuestPermissions,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portal.PortalException;
168 
169     public void addEventResources(long eventId,
170         boolean addCommunityPermissions, boolean addGuestPermissions)
171         throws com.liferay.portal.SystemException, 
172             com.liferay.portal.PortalException;
173 
174     public void addEventResources(
175         com.liferay.portlet.calendar.model.CalEvent event,
176         boolean addCommunityPermissions, boolean addGuestPermissions)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portal.PortalException;
179 
180     public void addEventResources(long eventId,
181         java.lang.String[] communityPermissions,
182         java.lang.String[] guestPermissions)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portal.PortalException;
185 
186     public void addEventResources(
187         com.liferay.portlet.calendar.model.CalEvent event,
188         java.lang.String[] communityPermissions,
189         java.lang.String[] guestPermissions)
190         throws com.liferay.portal.SystemException, 
191             com.liferay.portal.PortalException;
192 
193     public void checkEvents()
194         throws com.liferay.portal.SystemException, 
195             com.liferay.portal.PortalException;
196 
197     public void deleteEvent(long eventId)
198         throws com.liferay.portal.SystemException, 
199             com.liferay.portal.PortalException;
200 
201     public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
202         throws com.liferay.portal.SystemException, 
203             com.liferay.portal.PortalException;
204 
205     public void deleteEvents(long groupId)
206         throws com.liferay.portal.SystemException, 
207             com.liferay.portal.PortalException;
208 
209     public java.io.File exportEvent(long userId, long eventId)
210         throws com.liferay.portal.SystemException, 
211             com.liferay.portal.PortalException;
212 
213     public java.io.File exportGroupEvents(long userId, long plid,
214         java.lang.String fileName)
215         throws com.liferay.portal.SystemException, 
216             com.liferay.portal.PortalException;
217 
218     public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
219         throws com.liferay.portal.SystemException, 
220             com.liferay.portal.PortalException;
221 
222     public java.util.List getEvents(long groupId, java.lang.String type,
223         int begin, int end) throws com.liferay.portal.SystemException;
224 
225     public java.util.List getEvents(long groupId, java.util.Calendar cal)
226         throws com.liferay.portal.SystemException;
227 
228     public java.util.List getEvents(long groupId, java.util.Calendar cal,
229         java.lang.String type) throws com.liferay.portal.SystemException;
230 
231     public int getEventsCount(long groupId, java.lang.String type)
232         throws com.liferay.portal.SystemException;
233 
234     public java.util.List getRepeatingEvents(long groupId)
235         throws com.liferay.portal.SystemException;
236 
237     public boolean hasEvents(long groupId, java.util.Calendar cal)
238         throws com.liferay.portal.SystemException;
239 
240     public boolean hasEvents(long groupId, java.util.Calendar cal,
241         java.lang.String type) throws com.liferay.portal.SystemException;
242 
243     public void importICal4j(long userId, long plid, java.io.File file)
244         throws com.liferay.portal.SystemException, 
245             com.liferay.portal.PortalException;
246 
247     public com.liferay.portlet.calendar.model.CalEvent updateEvent(
248         long userId, long eventId, java.lang.String title,
249         java.lang.String description, int startDateMonth, int startDateDay,
250         int startDateYear, int startDateHour, int startDateMinute,
251         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
252         int durationMinute, boolean allDay, boolean timeZoneSensitive,
253         java.lang.String type, boolean repeating,
254         com.liferay.portal.kernel.cal.Recurrence recurrence,
255         java.lang.String remindBy, int firstReminder, int secondReminder)
256         throws com.liferay.portal.SystemException, 
257             com.liferay.portal.PortalException;
258 }