001
014
015 package com.liferay.portlet.tasks.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
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 }