1
14
15 package com.liferay.portal.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 UserService {
50 public void addGroupUsers(long groupId, long[] userIds)
51 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException;
53
54 public void addOrganizationUsers(long organizationId, long[] userIds)
55 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException;
57
58 public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
59 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException;
61
62 public void addRoleUsers(long roleId, long[] userIds)
63 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException;
65
66 public void addUserGroupUsers(long userGroupId, long[] userIds)
67 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
68 com.liferay.portal.SystemException;
69
70 public com.liferay.portal.model.User addUser(long companyId,
71 boolean autoPassword, java.lang.String password1,
72 java.lang.String password2, boolean autoScreenName,
73 java.lang.String screenName, java.lang.String emailAddress,
74 java.util.Locale locale, java.lang.String firstName,
75 java.lang.String middleName, java.lang.String lastName, int prefixId,
76 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
77 int birthdayYear, java.lang.String jobTitle, long[] organizationIds,
78 boolean sendEmail)
79 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException;
81
82 public void deleteRoleUser(long roleId, long userId)
83 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 public void deleteUser(long userId)
87 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
88 com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public long getDefaultUserId(long companyId)
92 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public long[] getGroupUserIds(long groupId)
97 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
98
99 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public long[] getOrganizationUserIds(long organizationId)
101 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public long[] getRoleUserIds(long roleId)
105 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
109 java.lang.String emailAddress)
110 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portal.model.User getUserById(long userId)
115 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public com.liferay.portal.model.User getUserByScreenName(long companyId,
120 java.lang.String screenName)
121 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public long getUserIdByEmailAddress(long companyId,
126 java.lang.String emailAddress)
127 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public long getUserIdByScreenName(long companyId,
132 java.lang.String screenName)
133 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public boolean hasGroupUser(long groupId, long userId)
138 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public boolean hasRoleUser(long roleId, long userId)
142 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public boolean hasRoleUser(long companyId, java.lang.String name,
146 long userId, boolean inherited)
147 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 public void setRoleUsers(long roleId, long[] userIds)
151 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException;
153
154 public void setUserGroupUsers(long userGroupId, long[] userIds)
155 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException;
157
158 public void unsetGroupUsers(long groupId, long[] userIds)
159 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException;
161
162 public void unsetOrganizationUsers(long organizationId, long[] userIds)
163 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
167 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException;
169
170 public void unsetRoleUsers(long roleId, long[] userIds)
171 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException;
173
174 public void unsetUserGroupUsers(long userGroupId, long[] userIds)
175 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 public com.liferay.portal.model.User updateActive(long userId,
179 boolean active)
180 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException;
182
183 public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
184 boolean agreedToTermsOfUse)
185 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException;
187
188 public com.liferay.portal.model.User updateLockout(long userId,
189 boolean lockout)
190 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException;
192
193 public void updateOpenId(long userId, java.lang.String openId)
194 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 public void updateOrganizations(long userId, long[] organizationIds)
198 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
199 com.liferay.portal.SystemException;
200
201 public com.liferay.portal.model.User updatePassword(long userId,
202 java.lang.String password1, java.lang.String password2,
203 boolean passwordReset)
204 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 public void updatePortrait(long userId, byte[] bytes)
208 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
209 com.liferay.portal.SystemException;
210
211 public void updateScreenName(long userId, java.lang.String screenName)
212 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
213 com.liferay.portal.SystemException;
214
215 public com.liferay.portal.model.User updateUser(long userId,
216 java.lang.String oldPassword, boolean passwordReset,
217 java.lang.String screenName, java.lang.String emailAddress,
218 java.lang.String languageId, java.lang.String timeZoneId,
219 java.lang.String greeting, java.lang.String comments,
220 java.lang.String firstName, java.lang.String middleName,
221 java.lang.String lastName, int prefixId, int suffixId, boolean male,
222 int birthdayMonth, int birthdayDay, int birthdayYear,
223 java.lang.String smsSn, java.lang.String aimSn,
224 java.lang.String facebookSn, java.lang.String icqSn,
225 java.lang.String jabberSn, java.lang.String msnSn,
226 java.lang.String mySpaceSn, java.lang.String skypeSn,
227 java.lang.String twitterSn, java.lang.String ymSn,
228 java.lang.String jobTitle, long[] organizationIds)
229 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException;
231
232 public com.liferay.portal.model.User updateUser(long userId,
233 java.lang.String oldPassword, java.lang.String newPassword1,
234 java.lang.String newPassword2, boolean passwordReset,
235 java.lang.String screenName, java.lang.String emailAddress,
236 java.lang.String languageId, java.lang.String timeZoneId,
237 java.lang.String greeting, java.lang.String comments,
238 java.lang.String firstName, java.lang.String middleName,
239 java.lang.String lastName, int prefixId, int suffixId, boolean male,
240 int birthdayMonth, int birthdayDay, int birthdayYear,
241 java.lang.String smsSn, java.lang.String aimSn,
242 java.lang.String facebookSn, java.lang.String icqSn,
243 java.lang.String jabberSn, java.lang.String msnSn,
244 java.lang.String mySpaceSn, java.lang.String skypeSn,
245 java.lang.String twitterSn, java.lang.String ymSn,
246 java.lang.String jobTitle, long[] organizationIds)
247 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
248 com.liferay.portal.SystemException;
249 }