1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.tasks.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="TasksProposalLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.tasks.service.impl.TasksProposalLocalServiceImpl}}.
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 based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       TasksProposalLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface TasksProposalLocalService {
50      public com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
51          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
55          long proposalId);
56  
57      public void deleteTasksProposal(long proposalId)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteTasksProposal(
62          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
85          long proposalId)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
91          int start, int end)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getTasksProposalsCount()
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
99          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
103         com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
104         boolean merge)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
108         long userId, long groupId, java.lang.String className,
109         java.lang.String classPK, java.lang.String name,
110         java.lang.String description, long reviewUserId,
111         boolean addCommunityPermissions, boolean addGuestPermissions)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException;
114 
115     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
116         long userId, long groupId, java.lang.String className,
117         java.lang.String classPK, java.lang.String name,
118         java.lang.String description, long reviewUserId,
119         java.lang.Boolean addCommunityPermissions,
120         java.lang.Boolean addGuestPermissions,
121         java.lang.String[] communityPermissions,
122         java.lang.String[] guestPermissions)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException;
125 
126     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
127         long userId, long groupId, java.lang.String className,
128         java.lang.String classPK, java.lang.String name,
129         java.lang.String description, long reviewUserId,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public void addProposalResources(long proposalId,
136         boolean addCommunityPermissions, boolean addGuestPermissions)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     public void addProposalResources(long proposalId,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException;
145 
146     public void addProposalResources(
147         com.liferay.portlet.tasks.model.TasksProposal proposal,
148         boolean addCommunityPermissions, boolean addGuestPermissions)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException;
151 
152     public void addProposalResources(
153         com.liferay.portlet.tasks.model.TasksProposal proposal,
154         java.lang.String[] communityPermissions,
155         java.lang.String[] guestPermissions)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException;
158 
159     public void deleteProposal(long proposalId)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     public void deleteProposal(long classNameId, java.lang.String classPK)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException;
166 
167     public void deleteProposal(java.lang.String className,
168         java.lang.String classPK)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException;
171 
172     public void deleteProposal(
173         com.liferay.portlet.tasks.model.TasksProposal proposal)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException;
176 
177     public void deleteProposals(long groupId)
178         throws com.liferay.portal.kernel.exception.PortalException,
179             com.liferay.portal.kernel.exception.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
183         long proposalId)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
189         long classNameId, java.lang.String classPK)
190         throws com.liferay.portal.kernel.exception.PortalException,
191             com.liferay.portal.kernel.exception.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
195         java.lang.String className, java.lang.String classPK)
196         throws com.liferay.portal.kernel.exception.PortalException,
197             com.liferay.portal.kernel.exception.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
201         long groupId, int start, int end)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public int getProposalsCount(long groupId)
206         throws com.liferay.portal.kernel.exception.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
210         long groupId, long userId, int start, int end)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public int getReviewProposalsCount(long groupId, long userId)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
219         long groupId, long userId, int start, int end)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public int getUserProposalsCount(long groupId, long userId)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
227         long userId, long proposalId, java.lang.String description,
228         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
229         int dueDateMinute)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException;
232 }