001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.tasks.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the tasks proposal remote service. This utility wraps {@link com.liferay.portlet.tasks.service.impl.TasksProposalServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.tasks.service.impl.TasksProposalServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see TasksProposalService
032     * @see com.liferay.portlet.tasks.service.base.TasksProposalServiceBaseImpl
033     * @see com.liferay.portlet.tasks.service.impl.TasksProposalServiceImpl
034     * @generated
035     */
036    public class TasksProposalServiceUtil {
037            public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
038                    long groupId, java.lang.String className, java.lang.String classPK,
039                    java.lang.String name, java.lang.String description, long reviewUserId,
040                    boolean addCommunityPermissions, boolean addGuestPermissions)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    return getService()
044                                       .addProposal(groupId, className, classPK, name, description,
045                            reviewUserId, addCommunityPermissions, addGuestPermissions);
046            }
047    
048            public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
049                    long groupId, java.lang.String className, java.lang.String classPK,
050                    java.lang.String name, java.lang.String description, long reviewUserId,
051                    java.lang.String[] communityPermissions,
052                    java.lang.String[] guestPermissions)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    return getService()
056                                       .addProposal(groupId, className, classPK, name, description,
057                            reviewUserId, communityPermissions, guestPermissions);
058            }
059    
060            public static void deleteProposal(long proposalId)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    getService().deleteProposal(proposalId);
064            }
065    
066            public static com.liferay.portlet.tasks.model.TasksProposal updateProposal(
067                    long proposalId, java.lang.String description, int dueDateMonth,
068                    int dueDateDay, int dueDateYear, int dueDateHour, int dueDateMinute)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return getService()
072                                       .updateProposal(proposalId, description, dueDateMonth,
073                            dueDateDay, dueDateYear, dueDateHour, dueDateMinute);
074            }
075    
076            public static TasksProposalService getService() {
077                    if (_service == null) {
078                            _service = (TasksProposalService)PortalBeanLocatorUtil.locate(TasksProposalService.class.getName());
079                    }
080    
081                    return _service;
082            }
083    
084            public void setService(TasksProposalService service) {
085                    _service = service;
086            }
087    
088            private static TasksProposalService _service;
089    }