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