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