1
22
23 package com.liferay.portlet.tasks.service;
24
25
26
46 public class TasksProposalLocalServiceUtil {
47 public static com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
48 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
49 throws com.liferay.portal.SystemException {
50 return getService().addTasksProposal(tasksProposal);
51 }
52
53 public static com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
54 long proposalId) {
55 return getService().createTasksProposal(proposalId);
56 }
57
58 public static void deleteTasksProposal(long proposalId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 getService().deleteTasksProposal(proposalId);
62 }
63
64 public static void deleteTasksProposal(
65 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
66 throws com.liferay.portal.SystemException {
67 getService().deleteTasksProposal(tasksProposal);
68 }
69
70 public static java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException {
73 return getService().dynamicQuery(dynamicQuery);
74 }
75
76 public static java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException {
79 return getService().dynamicQuery(dynamicQuery, start, end);
80 }
81
82 public static com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
83 long proposalId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return getService().getTasksProposal(proposalId);
87 }
88
89 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
90 int start, int end) throws com.liferay.portal.SystemException {
91 return getService().getTasksProposals(start, end);
92 }
93
94 public static int getTasksProposalsCount()
95 throws com.liferay.portal.SystemException {
96 return getService().getTasksProposalsCount();
97 }
98
99 public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
100 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
101 throws com.liferay.portal.SystemException {
102 return getService().updateTasksProposal(tasksProposal);
103 }
104
105 public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
106 com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
107 boolean merge) throws com.liferay.portal.SystemException {
108 return getService().updateTasksProposal(tasksProposal, merge);
109 }
110
111 public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
112 long userId, long groupId, java.lang.String className,
113 java.lang.String classPK, java.lang.String name,
114 java.lang.String description, long reviewUserId,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException {
118 return getService()
119 .addProposal(userId, groupId, className, classPK, name,
120 description, reviewUserId, addCommunityPermissions,
121 addGuestPermissions);
122 }
123
124 public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
125 long userId, long groupId, java.lang.String className,
126 java.lang.String classPK, java.lang.String name,
127 java.lang.String description, long reviewUserId,
128 java.lang.String[] communityPermissions,
129 java.lang.String[] guestPermissions)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException {
132 return getService()
133 .addProposal(userId, groupId, className, classPK, name,
134 description, reviewUserId, communityPermissions, guestPermissions);
135 }
136
137 public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
138 long userId, long groupId, java.lang.String className,
139 java.lang.String classPK, java.lang.String name,
140 java.lang.String description, long reviewUserId,
141 java.lang.Boolean addCommunityPermissions,
142 java.lang.Boolean addGuestPermissions,
143 java.lang.String[] communityPermissions,
144 java.lang.String[] guestPermissions)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 return getService()
148 .addProposal(userId, groupId, className, classPK, name,
149 description, reviewUserId, addCommunityPermissions,
150 addGuestPermissions, communityPermissions, guestPermissions);
151 }
152
153 public static void addProposalResources(long proposalId,
154 boolean addCommunityPermissions, boolean addGuestPermissions)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException {
157 getService()
158 .addProposalResources(proposalId, addCommunityPermissions,
159 addGuestPermissions);
160 }
161
162 public static void addProposalResources(
163 com.liferay.portlet.tasks.model.TasksProposal proposal,
164 boolean addCommunityPermissions, boolean addGuestPermissions)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException {
167 getService()
168 .addProposalResources(proposal, addCommunityPermissions,
169 addGuestPermissions);
170 }
171
172 public static void addProposalResources(long proposalId,
173 java.lang.String[] communityPermissions,
174 java.lang.String[] guestPermissions)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException {
177 getService()
178 .addProposalResources(proposalId, communityPermissions,
179 guestPermissions);
180 }
181
182 public static void addProposalResources(
183 com.liferay.portlet.tasks.model.TasksProposal proposal,
184 java.lang.String[] communityPermissions,
185 java.lang.String[] guestPermissions)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException {
188 getService()
189 .addProposalResources(proposal, communityPermissions,
190 guestPermissions);
191 }
192
193 public static void deleteProposal(java.lang.String className,
194 java.lang.String classPK)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException {
197 getService().deleteProposal(className, classPK);
198 }
199
200 public static void deleteProposal(long classNameId, java.lang.String classPK)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException {
203 getService().deleteProposal(classNameId, classPK);
204 }
205
206 public static void deleteProposal(long proposalId)
207 throws com.liferay.portal.PortalException,
208 com.liferay.portal.SystemException {
209 getService().deleteProposal(proposalId);
210 }
211
212 public static void deleteProposal(
213 com.liferay.portlet.tasks.model.TasksProposal proposal)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException {
216 getService().deleteProposal(proposal);
217 }
218
219 public static void deleteProposals(long groupId)
220 throws com.liferay.portal.SystemException {
221 getService().deleteProposals(groupId);
222 }
223
224 public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
225 long proposalId)
226 throws com.liferay.portal.PortalException,
227 com.liferay.portal.SystemException {
228 return getService().getProposal(proposalId);
229 }
230
231 public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
232 java.lang.String className, java.lang.String classPK)
233 throws com.liferay.portal.PortalException,
234 com.liferay.portal.SystemException {
235 return getService().getProposal(className, classPK);
236 }
237
238 public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
239 long classNameId, java.lang.String classPK)
240 throws com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException {
242 return getService().getProposal(classNameId, classPK);
243 }
244
245 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
246 long groupId, int start, int end)
247 throws com.liferay.portal.SystemException {
248 return getService().getProposals(groupId, start, end);
249 }
250
251 public static int getProposalsCount(long groupId)
252 throws com.liferay.portal.SystemException {
253 return getService().getProposalsCount(groupId);
254 }
255
256 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
257 long groupId, long userId, int start, int end)
258 throws com.liferay.portal.SystemException {
259 return getService().getReviewProposals(groupId, userId, start, end);
260 }
261
262 public static int getReviewProposalsCount(long groupId, long userId)
263 throws com.liferay.portal.SystemException {
264 return getService().getReviewProposalsCount(groupId, userId);
265 }
266
267 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
268 long groupId, long userId, int start, int end)
269 throws com.liferay.portal.SystemException {
270 return getService().getUserProposals(groupId, userId, start, end);
271 }
272
273 public static int getUserProposalsCount(long groupId, long userId)
274 throws com.liferay.portal.SystemException {
275 return getService().getUserProposalsCount(groupId, userId);
276 }
277
278 public static com.liferay.portlet.tasks.model.TasksProposal updateProposal(
279 long userId, long proposalId, java.lang.String description,
280 int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
281 int dueDateMinute)
282 throws com.liferay.portal.PortalException,
283 com.liferay.portal.SystemException {
284 return getService()
285 .updateProposal(userId, proposalId, description,
286 dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute);
287 }
288
289 public static TasksProposalLocalService getService() {
290 if (_service == null) {
291 throw new RuntimeException("TasksProposalLocalService is not set");
292 }
293
294 return _service;
295 }
296
297 public void setService(TasksProposalLocalService service) {
298 _service = service;
299 }
300
301 private static TasksProposalLocalService _service;
302 }