1
14
15 package com.liferay.portlet.social.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteSocialRequest(
62 com.liferay.portlet.social.model.SocialRequest socialRequest)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.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.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.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.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.PortalException,
87 com.liferay.portal.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) throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public int getSocialRequestsCount()
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
98 com.liferay.portlet.social.model.SocialRequest socialRequest)
99 throws com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
102 com.liferay.portlet.social.model.SocialRequest socialRequest,
103 boolean merge) throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.social.model.SocialRequest addRequest(
106 long userId, long groupId, java.lang.String className, long classPK,
107 int type, java.lang.String extraData, long receiverUserId)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public void deleteReceiverUserRequests(long receiverUserId)
112 throws com.liferay.portal.SystemException;
113
114 public void deleteRequest(long requestId)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public void deleteUserRequests(long userId)
119 throws com.liferay.portal.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
123 long receiverUserId, int start, int end)
124 throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
128 long receiverUserId, int status, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public int getReceiverUserRequestsCount(long receiverUserId)
133 throws com.liferay.portal.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public int getReceiverUserRequestsCount(long receiverUserId, int status)
137 throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
141 long userId, int start, int end)
142 throws com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
146 long userId, int status, int start, int end)
147 throws com.liferay.portal.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public int getUserRequestsCount(long userId)
151 throws com.liferay.portal.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public int getUserRequestsCount(long userId, int status)
155 throws com.liferay.portal.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public boolean hasRequest(long userId, java.lang.String className,
159 long classPK, int type, int status)
160 throws com.liferay.portal.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public boolean hasRequest(long userId, java.lang.String className,
164 long classPK, int type, long receiverUserId, int status)
165 throws com.liferay.portal.SystemException;
166
167 public com.liferay.portlet.social.model.SocialRequest updateRequest(
168 long requestId, int status,
169 com.liferay.portal.theme.ThemeDisplay themeDisplay)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException;
172 }