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