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.Transactional;
19  import com.liferay.portal.kernel.exception.PortalException;
20  import com.liferay.portal.kernel.exception.SystemException;
21  
22  /**
23   * <a href="TasksProposalService.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This interface defines the service. The default implementation is
32   * {@link
33   * com.liferay.portlet.tasks.service.impl.TasksProposalServiceImpl}}.
34   * Modify methods in that class and rerun ServiceBuilder to populate this class
35   * and all other generated classes.
36   * </p>
37   *
38   * <p>
39   * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       TasksProposalServiceUtil
44   * @generated
45   */
46  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
47      PortalException.class, SystemException.class})
48  public interface TasksProposalService {
49      public com.liferay.portlet.tasks.model.TasksProposal addProposal(
50          long groupId, java.lang.String className, java.lang.String classPK,
51          java.lang.String name, java.lang.String description, long reviewUserId,
52          boolean addCommunityPermissions, boolean addGuestPermissions)
53          throws com.liferay.portal.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException;
55  
56      public com.liferay.portlet.tasks.model.TasksProposal addProposal(
57          long groupId, java.lang.String className, java.lang.String classPK,
58          java.lang.String name, java.lang.String description, long reviewUserId,
59          java.lang.String[] communityPermissions,
60          java.lang.String[] guestPermissions)
61          throws com.liferay.portal.kernel.exception.PortalException,
62              com.liferay.portal.kernel.exception.SystemException;
63  
64      public void deleteProposal(long proposalId)
65          throws com.liferay.portal.kernel.exception.PortalException,
66              com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
69          long proposalId, java.lang.String description, int dueDateMonth,
70          int dueDateDay, int dueDateYear, int dueDateHour, int dueDateMinute)
71          throws com.liferay.portal.kernel.exception.PortalException,
72              com.liferay.portal.kernel.exception.SystemException;
73  }