1
14
15 package com.liferay.portlet.social.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface SocialRequestLocalService {
50 public com.liferay.portlet.social.model.SocialRequest addSocialRequest(
51 com.liferay.portlet.social.model.SocialRequest socialRequest)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.social.model.SocialRequest createSocialRequest(
55 long requestId);
56
57 public void deleteSocialRequest(long requestId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteSocialRequest(
62 com.liferay.portlet.social.model.SocialRequest socialRequest)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.social.model.SocialRequest getSocialRequest(
85 long requestId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getSocialRequestsCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
99 com.liferay.portlet.social.model.SocialRequest socialRequest)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
103 com.liferay.portlet.social.model.SocialRequest socialRequest,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.social.model.SocialRequest addRequest(
108 long userId, long groupId, java.lang.String className, long classPK,
109 int type, java.lang.String extraData, long receiverUserId)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 public void deleteReceiverUserRequests(long receiverUserId)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public void deleteRequest(long requestId)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void deleteUserRequests(long userId)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
125 long receiverUserId, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
130 long receiverUserId, int status, int start, int end)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public int getReceiverUserRequestsCount(long receiverUserId)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public int getReceiverUserRequestsCount(long receiverUserId, int status)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
143 long userId, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
148 long userId, int status, int start, int end)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public int getUserRequestsCount(long userId)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public int getUserRequestsCount(long userId, int status)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public boolean hasRequest(long userId, java.lang.String className,
161 long classPK, int type, int status)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public boolean hasRequest(long userId, java.lang.String className,
166 long classPK, int type, long receiverUserId, int status)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 public com.liferay.portlet.social.model.SocialRequest updateRequest(
170 long requestId, int status,
171 com.liferay.portal.theme.ThemeDisplay themeDisplay)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174 }