001
014
015 package com.liferay.portlet.tasks.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface TasksReviewLocalService {
043 public com.liferay.portlet.tasks.model.TasksReview addTasksReview(
044 com.liferay.portlet.tasks.model.TasksReview tasksReview)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.tasks.model.TasksReview createTasksReview(
048 long reviewId);
049
050 public void deleteTasksReview(long reviewId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteTasksReview(
055 com.liferay.portlet.tasks.model.TasksReview tasksReview)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.tasks.model.TasksReview getTasksReview(
081 long reviewId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> getTasksReviews(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getTasksReviewsCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
095 com.liferay.portlet.tasks.model.TasksReview tasksReview)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
099 com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.tasks.model.TasksReview addReview(long userId,
103 long proposalId, long assignedByUserId, int stage)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.tasks.model.TasksReview approveReview(
108 long userId, long proposalId, int stage)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException;
111
112 public void deleteReview(long reviewId)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public void deleteReview(com.liferay.portlet.tasks.model.TasksReview review)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public void deleteReviews(long proposalId)
120 throws com.liferay.portal.kernel.exception.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portlet.tasks.model.TasksReview getReview(long reviewId)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public com.liferay.portlet.tasks.model.TasksReview getReview(long userId,
129 long proposalId)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
135 long proposalId)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
140 long proposalId, int stage)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
145 long proposalId, int stage, boolean completed)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
150 long proposalId, int stage, boolean completed, boolean rejected)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153 public com.liferay.portlet.tasks.model.TasksReview rejectReview(
154 long userId, long proposalId, int stage)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158 public void updateReviews(long proposalId, long assignedByUserId,
159 long[][] userIdsPerStage)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162 }