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