1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tasks.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteTasksProposal(
62          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
63          throws com.liferay.portal.SystemException;
64  
65      @SuppressWarnings("rawtypes")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException;
74  
75      @SuppressWarnings("rawtypes")
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.SystemException;
81  
82      public int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.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.PortalException,
90              com.liferay.portal.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) throws com.liferay.portal.SystemException;
95  
96      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
97      public int getTasksProposalsCount()
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
101         com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
105         com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
106         boolean merge) throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
109         long userId, long groupId, java.lang.String className,
110         java.lang.String classPK, java.lang.String name,
111         java.lang.String description, long reviewUserId,
112         boolean addCommunityPermissions, boolean addGuestPermissions)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
117         long userId, long groupId, java.lang.String className,
118         java.lang.String classPK, java.lang.String name,
119         java.lang.String description, long reviewUserId,
120         java.lang.Boolean addCommunityPermissions,
121         java.lang.Boolean addGuestPermissions,
122         java.lang.String[] communityPermissions,
123         java.lang.String[] guestPermissions)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
128         long userId, long groupId, java.lang.String className,
129         java.lang.String classPK, java.lang.String name,
130         java.lang.String description, long reviewUserId,
131         java.lang.String[] communityPermissions,
132         java.lang.String[] guestPermissions)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public void addProposalResources(long proposalId,
137         boolean addCommunityPermissions, boolean addGuestPermissions)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public void addProposalResources(long proposalId,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void addProposalResources(
148         com.liferay.portlet.tasks.model.TasksProposal proposal,
149         boolean addCommunityPermissions, boolean addGuestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void addProposalResources(
154         com.liferay.portlet.tasks.model.TasksProposal proposal,
155         java.lang.String[] communityPermissions,
156         java.lang.String[] guestPermissions)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public void deleteProposal(long proposalId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public void deleteProposal(long classNameId, java.lang.String classPK)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     public void deleteProposal(java.lang.String className,
169         java.lang.String classPK)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException;
172 
173     public void deleteProposal(
174         com.liferay.portlet.tasks.model.TasksProposal proposal)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public void deleteProposals(long groupId)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
184         long proposalId)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
190         long classNameId, java.lang.String classPK)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
196         java.lang.String className, java.lang.String classPK)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
202         long groupId, int start, int end)
203         throws com.liferay.portal.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public int getProposalsCount(long groupId)
207         throws com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
211         long groupId, long userId, int start, int end)
212         throws com.liferay.portal.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public int getReviewProposalsCount(long groupId, long userId)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
220         long groupId, long userId, int start, int end)
221         throws com.liferay.portal.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public int getUserProposalsCount(long groupId, long userId)
225         throws com.liferay.portal.SystemException;
226 
227     public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
228         long userId, long proposalId, java.lang.String description,
229         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
230         int dueDateMinute)
231         throws com.liferay.portal.PortalException,
232             com.liferay.portal.SystemException;
233 }