1   /**
2    * Copyright (c) 2000-2009 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.tasks.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="TasksProposalLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.tasks.service.impl.TasksProposalLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * 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.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.tasks.service.TasksProposalLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface TasksProposalLocalService {
57      public com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
58          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
62          long proposalId);
63  
64      public void deleteTasksProposal(long proposalId)
65          throws com.liferay.portal.SystemException,
66              com.liferay.portal.PortalException;
67  
68      public void deleteTasksProposal(
69          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
82          long proposalId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portal.PortalException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getTasksProposalsCount()
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
95          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.tasks.model.TasksProposal addProposal(
99          long userId, long groupId, java.lang.String className,
100         java.lang.String classPK, java.lang.String name,
101         java.lang.String description, long reviewUserId,
102         boolean addCommunityPermissions, boolean addGuestPermissions)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
107         long userId, long groupId, java.lang.String className,
108         java.lang.String classPK, java.lang.String name,
109         java.lang.String description, long reviewUserId,
110         java.lang.String[] communityPermissions,
111         java.lang.String[] guestPermissions)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.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.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void addProposalResources(long proposalId,
127         boolean addCommunityPermissions, boolean addGuestPermissions)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public void addProposalResources(
132         com.liferay.portlet.tasks.model.TasksProposal proposal,
133         boolean addCommunityPermissions, boolean addGuestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public void addProposalResources(long proposalId,
138         java.lang.String[] communityPermissions,
139         java.lang.String[] guestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void addProposalResources(
144         com.liferay.portlet.tasks.model.TasksProposal proposal,
145         java.lang.String[] communityPermissions,
146         java.lang.String[] guestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void deleteProposal(java.lang.String className,
151         java.lang.String classPK)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public void deleteProposal(long classNameId, java.lang.String classPK)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public void deleteProposal(long proposalId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void deleteProposal(
164         com.liferay.portlet.tasks.model.TasksProposal proposal)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     public void deleteProposals(long groupId)
169         throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
173         long proposalId)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
179         java.lang.String className, java.lang.String classPK)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
185         long classNameId, java.lang.String classPK)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
191         long groupId, int start, int end)
192         throws com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public int getProposalsCount(long groupId)
196         throws com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
200         long groupId, long userId, int start, int end)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public int getReviewProposalsCount(long groupId, long userId)
205         throws com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
209         long groupId, long userId, int start, int end)
210         throws com.liferay.portal.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public int getUserProposalsCount(long groupId, long userId)
214         throws com.liferay.portal.SystemException;
215 
216     public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
217         long userId, long proposalId, java.lang.String description,
218         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
219         int dueDateMinute)
220         throws com.liferay.portal.PortalException,
221             com.liferay.portal.SystemException;
222 }