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.TasksProposalLocalServiceFactory
48   * @see com.liferay.portlet.tasks.service.TasksProposalLocalServiceUtil
49   *
50   */
51  public interface TasksProposalLocalService {
52      public com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
53          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteTasksProposal(long proposalId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteTasksProposal(
61          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
73          long proposalId)
74          throws com.liferay.portal.SystemException,
75              com.liferay.portal.PortalException;
76  
77      public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
78          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.tasks.model.TasksProposal addProposal(
82          long userId, long groupId, java.lang.String className,
83          java.lang.String classPK, java.lang.String name,
84          java.lang.String description, long reviewUserId,
85          boolean addCommunityPermissions, boolean addGuestPermissions)
86          throws com.liferay.portal.PortalException,
87              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          java.lang.String[] communityPermissions,
94          java.lang.String[] guestPermissions)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.tasks.model.TasksProposal addProposal(
99          long userId, long groupId, java.lang.String className,
100         java.lang.String classPK, java.lang.String name,
101         java.lang.String description, long reviewUserId,
102         java.lang.Boolean addCommunityPermissions,
103         java.lang.Boolean addGuestPermissions,
104         java.lang.String[] communityPermissions,
105         java.lang.String[] guestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException;
108 
109     public void addProposalResources(long proposalId,
110         boolean addCommunityPermissions, boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public void addProposalResources(
115         com.liferay.portlet.tasks.model.TasksProposal proposal,
116         boolean addCommunityPermissions, boolean addGuestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public void addProposalResources(long proposalId,
121         java.lang.String[] communityPermissions,
122         java.lang.String[] guestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void addProposalResources(
127         com.liferay.portlet.tasks.model.TasksProposal proposal,
128         java.lang.String[] communityPermissions,
129         java.lang.String[] guestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public void deleteProposal(java.lang.String className,
134         java.lang.String classPK)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void deleteProposal(long classNameId, java.lang.String classPK)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public void deleteProposal(long proposalId)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void deleteProposal(
147         com.liferay.portlet.tasks.model.TasksProposal proposal)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public void deleteProposals(long groupId)
152         throws com.liferay.portal.SystemException;
153 
154     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
155         long proposalId)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
160         java.lang.String className, java.lang.String classPK)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.tasks.model.TasksProposal getProposal(
165         long classNameId, java.lang.String classPK)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
170         long groupId, int start, int end)
171         throws com.liferay.portal.SystemException;
172 
173     public int getProposalsCount(long groupId)
174         throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
177         long groupId, long userId, int start, int end)
178         throws com.liferay.portal.SystemException;
179 
180     public int getReviewProposalsCount(long groupId, long userId)
181         throws com.liferay.portal.SystemException;
182 
183     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
184         long groupId, long userId, int start, int end)
185         throws com.liferay.portal.SystemException;
186 
187     public int getUserProposalsCount(long groupId, long userId)
188         throws com.liferay.portal.SystemException;
189 
190     public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
191         long userId, long proposalId, java.lang.String description,
192         int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
193         int dueDateMinute)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 }