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      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
88          long proposalId)
89          throws com.liferay.portal.kernel.exception.PortalException,
90              com.liferay.portal.kernel.exception.SystemException;
91  
92      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
94          int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98      public int getTasksProposalsCount()
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
102         com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
106         com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
107         boolean merge)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
111         long userId, long groupId, java.lang.String className,
112         java.lang.String classPK, java.lang.String name,
113         java.lang.String description, long reviewUserId,
114         boolean addCommunityPermissions, boolean addGuestPermissions)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
119         long userId, long groupId, java.lang.String className,
120         java.lang.String classPK, java.lang.String name,
121         java.lang.String description, long reviewUserId,
122         java.lang.Boolean addCommunityPermissions,
123         java.lang.Boolean addGuestPermissions,
124         java.lang.String[] communityPermissions,
125         java.lang.String[] guestPermissions)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException;
128 
129     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
130         long userId, long groupId, java.lang.String className,
131         java.lang.String classPK, java.lang.String name,
132         java.lang.String description, long reviewUserId,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     public void addProposalResources(long proposalId,
139         boolean addCommunityPermissions, boolean addGuestPermissions)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException;
142 
143     public void addProposalResources(long proposalId,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException;
148 
149     public void addProposalResources(
150         com.liferay.portlet.tasks.model.TasksProposal proposal,
151         boolean addCommunityPermissions, boolean addGuestPermissions)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public void addProposalResources(
156         com.liferay.portlet.tasks.model.TasksProposal proposal,
157         java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException;
161 
162     public void deleteProposal(long proposalId)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public void deleteProposal(long classNameId, java.lang.String classPK)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException;
169 
170     public void deleteProposal(java.lang.String className,
171         java.lang.String classPK)
172         throws com.liferay.portal.kernel.exception.PortalException,
173             com.liferay.portal.kernel.exception.SystemException;
174 
175     public void deleteProposal(
176         com.liferay.portlet.tasks.model.TasksProposal proposal)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException;
179 
180     public void deleteProposals(long groupId)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
186         long proposalId)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
192         long classNameId, java.lang.String classPK)
193         throws com.liferay.portal.kernel.exception.PortalException,
194             com.liferay.portal.kernel.exception.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
198         java.lang.String className, java.lang.String classPK)
199         throws com.liferay.portal.kernel.exception.PortalException,
200             com.liferay.portal.kernel.exception.SystemException;
201 
202     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
204         long groupId, int start, int end)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public int getProposalsCount(long groupId)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
213         long groupId, long userId, int start, int end)
214         throws com.liferay.portal.kernel.exception.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public int getReviewProposalsCount(long groupId, long userId)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
222         long groupId, long userId, int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public int getUserProposalsCount(long groupId, long userId)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
230         long userId, long proposalId, java.lang.String description,
231         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
232         int dueDateMinute)
233         throws com.liferay.portal.kernel.exception.PortalException,
234             com.liferay.portal.kernel.exception.SystemException;
235 }