1
22
23 package com.liferay.portlet.social.service;
24
25
26
51 public interface SocialRequestLocalService {
52 public com.liferay.portlet.social.model.SocialRequest addSocialRequest(
53 com.liferay.portlet.social.model.SocialRequest socialRequest)
54 throws com.liferay.portal.SystemException;
55
56 public void deleteSocialRequest(long requestId)
57 throws com.liferay.portal.SystemException,
58 com.liferay.portal.PortalException;
59
60 public void deleteSocialRequest(
61 com.liferay.portlet.social.model.SocialRequest socialRequest)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List<Object> dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70 int end) throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.social.model.SocialRequest getSocialRequest(
73 long requestId)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.PortalException;
76
77 public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
78 com.liferay.portlet.social.model.SocialRequest socialRequest)
79 throws com.liferay.portal.SystemException;
80
81 public com.liferay.portlet.social.model.SocialRequest addRequest(
82 long userId, long groupId, java.lang.String className, long classPK,
83 int type, java.lang.String extraData, long receiverUserId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 public void deleteReceiverUserRequests(long receiverUserId)
88 throws com.liferay.portal.SystemException;
89
90 public void deleteRequest(long requestId)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException;
93
94 public void deleteUserRequests(long userId)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
98 long receiverUserId, int start, int end)
99 throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
102 long receiverUserId, int status, int start, int end)
103 throws com.liferay.portal.SystemException;
104
105 public int getReceiverUserRequestsCount(long receiverUserId)
106 throws com.liferay.portal.SystemException;
107
108 public int getReceiverUserRequestsCount(long receiverUserId, int status)
109 throws com.liferay.portal.SystemException;
110
111 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
112 long userId, int start, int end)
113 throws com.liferay.portal.SystemException;
114
115 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
116 long userId, int status, int start, int end)
117 throws com.liferay.portal.SystemException;
118
119 public int getUserRequestsCount(long userId)
120 throws com.liferay.portal.SystemException;
121
122 public int getUserRequestsCount(long userId, int status)
123 throws com.liferay.portal.SystemException;
124
125 public boolean hasRequest(long userId, java.lang.String className,
126 long classPK, int type, int status)
127 throws com.liferay.portal.SystemException;
128
129 public boolean hasRequest(long userId, java.lang.String className,
130 long classPK, int type, long receiverUserId, int status)
131 throws com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.social.model.SocialRequest updateRequest(
134 long requestId, int status,
135 com.liferay.portal.theme.ThemeDisplay themeDisplay)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException;
138 }