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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
75          long proposalId)
76          throws com.liferay.portal.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.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)
82          throws com.liferay.portal.kernel.exception.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public int getTasksProposalsCount()
86          throws com.liferay.portal.kernel.exception.SystemException;
87  
88      public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
89          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
93          com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
94          boolean merge)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portlet.tasks.model.TasksProposal addProposal(
98          long userId, long groupId, java.lang.String className,
99          java.lang.String classPK, java.lang.String name,
100         java.lang.String description, long reviewUserId,
101         boolean addCommunityPermissions, boolean addGuestPermissions)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portlet.tasks.model.TasksProposal addProposal(
106         long userId, long groupId, java.lang.String className,
107         java.lang.String classPK, java.lang.String name,
108         java.lang.String description, long reviewUserId,
109         java.lang.Boolean addCommunityPermissions,
110         java.lang.Boolean addGuestPermissions,
111         java.lang.String[] communityPermissions,
112         java.lang.String[] guestPermissions)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             com.liferay.portal.kernel.exception.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.String[] communityPermissions,
121         java.lang.String[] guestPermissions)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     public void addProposalResources(long proposalId,
126         boolean addCommunityPermissions, boolean addGuestPermissions)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public void addProposalResources(long proposalId,
131         java.lang.String[] communityPermissions,
132         java.lang.String[] guestPermissions)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException;
135 
136     public void addProposalResources(
137         com.liferay.portlet.tasks.model.TasksProposal proposal,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException;
141 
142     public void addProposalResources(
143         com.liferay.portlet.tasks.model.TasksProposal proposal,
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 deleteProposal(long proposalId)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException;
152 
153     public void deleteProposal(long classNameId, java.lang.String classPK)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException;
156 
157     public void deleteProposal(java.lang.String className,
158         java.lang.String classPK)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException;
161 
162     public void deleteProposal(
163         com.liferay.portlet.tasks.model.TasksProposal proposal)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException;
166 
167     public void deleteProposals(long groupId)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
179         long classNameId, java.lang.String classPK)
180         throws com.liferay.portal.kernel.exception.PortalException,
181             com.liferay.portal.kernel.exception.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
185         java.lang.String className, java.lang.String classPK)
186         throws com.liferay.portal.kernel.exception.PortalException,
187             com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public int getProposalsCount(long groupId)
196         throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public int getReviewProposalsCount(long groupId, long userId)
205         throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public int getUserProposalsCount(long groupId, long userId)
214         throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
221             com.liferay.portal.kernel.exception.SystemException;
222 }