001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service;
022:
023: /**
024: * <a href="UserService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portal.service.impl.UserServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.UserServiceFactory
045: * @see com.liferay.portal.service.UserServiceUtil
046: *
047: */
048: public interface UserService {
049: public void addGroupUsers(long groupId, long[] userIds)
050: throws java.rmi.RemoteException,
051: com.liferay.portal.SystemException,
052: com.liferay.portal.PortalException;
053:
054: public void addOrganizationUsers(long organizationId, long[] userIds)
055: throws java.rmi.RemoteException,
056: com.liferay.portal.SystemException,
057: com.liferay.portal.PortalException;
058:
059: public void addPasswordPolicyUsers(long passwordPolicyId,
060: long[] userIds) throws java.rmi.RemoteException,
061: com.liferay.portal.SystemException,
062: com.liferay.portal.PortalException;
063:
064: public void addRoleUsers(long roleId, long[] userIds)
065: throws java.rmi.RemoteException,
066: com.liferay.portal.SystemException,
067: com.liferay.portal.PortalException;
068:
069: public void addUserGroupUsers(long userGroupId, long[] userIds)
070: throws java.rmi.RemoteException,
071: com.liferay.portal.SystemException,
072: com.liferay.portal.PortalException;
073:
074: public com.liferay.portal.model.User addUser(long companyId,
075: boolean autoPassword, java.lang.String password1,
076: java.lang.String password2, boolean autoScreenName,
077: java.lang.String screenName, java.lang.String emailAddress,
078: java.util.Locale locale, java.lang.String firstName,
079: java.lang.String middleName, java.lang.String lastName,
080: int prefixId, int suffixId, boolean male,
081: int birthdayMonth, int birthdayDay, int birthdayYear,
082: java.lang.String jobTitle, long[] organizationIds,
083: boolean sendEmail) throws java.rmi.RemoteException,
084: com.liferay.portal.SystemException,
085: com.liferay.portal.PortalException;
086:
087: public void deleteRoleUser(long roleId, long userId)
088: throws java.rmi.RemoteException,
089: com.liferay.portal.SystemException,
090: com.liferay.portal.PortalException;
091:
092: public void deleteUser(long userId)
093: throws java.rmi.RemoteException,
094: com.liferay.portal.SystemException,
095: com.liferay.portal.PortalException;
096:
097: public long getDefaultUserId(long companyId)
098: throws java.rmi.RemoteException,
099: com.liferay.portal.SystemException,
100: com.liferay.portal.PortalException;
101:
102: public java.util.List getGroupUsers(long groupId)
103: throws java.rmi.RemoteException,
104: com.liferay.portal.SystemException,
105: com.liferay.portal.PortalException;
106:
107: public java.util.List getRoleUsers(long roleId)
108: throws java.rmi.RemoteException,
109: com.liferay.portal.SystemException,
110: com.liferay.portal.PortalException;
111:
112: public com.liferay.portal.model.User getUserByEmailAddress(
113: long companyId, java.lang.String emailAddress)
114: throws java.rmi.RemoteException,
115: com.liferay.portal.SystemException,
116: com.liferay.portal.PortalException;
117:
118: public com.liferay.portal.model.User getUserById(long userId)
119: throws java.rmi.RemoteException,
120: com.liferay.portal.SystemException,
121: com.liferay.portal.PortalException;
122:
123: public com.liferay.portal.model.User getUserByScreenName(
124: long companyId, java.lang.String screenName)
125: throws java.rmi.RemoteException,
126: com.liferay.portal.SystemException,
127: com.liferay.portal.PortalException;
128:
129: public long getUserIdByEmailAddress(long companyId,
130: java.lang.String emailAddress)
131: throws java.rmi.RemoteException,
132: com.liferay.portal.SystemException,
133: com.liferay.portal.PortalException;
134:
135: public long getUserIdByScreenName(long companyId,
136: java.lang.String screenName)
137: throws java.rmi.RemoteException,
138: com.liferay.portal.SystemException,
139: com.liferay.portal.PortalException;
140:
141: public boolean hasGroupUser(long groupId, long userId)
142: throws java.rmi.RemoteException,
143: com.liferay.portal.SystemException,
144: com.liferay.portal.PortalException;
145:
146: public boolean hasRoleUser(long roleId, long userId)
147: throws java.rmi.RemoteException,
148: com.liferay.portal.SystemException,
149: com.liferay.portal.PortalException;
150:
151: public void setRoleUsers(long roleId, long[] userIds)
152: throws java.rmi.RemoteException,
153: com.liferay.portal.SystemException,
154: com.liferay.portal.PortalException;
155:
156: public void setUserGroupUsers(long userGroupId, long[] userIds)
157: throws java.rmi.RemoteException,
158: com.liferay.portal.SystemException,
159: com.liferay.portal.PortalException;
160:
161: public void unsetGroupUsers(long groupId, long[] userIds)
162: throws java.rmi.RemoteException,
163: com.liferay.portal.SystemException,
164: com.liferay.portal.PortalException;
165:
166: public void unsetOrganizationUsers(long organizationId,
167: long[] userIds) throws java.rmi.RemoteException,
168: com.liferay.portal.SystemException,
169: com.liferay.portal.PortalException;
170:
171: public void unsetPasswordPolicyUsers(long passwordPolicyId,
172: long[] userIds) throws java.rmi.RemoteException,
173: com.liferay.portal.SystemException,
174: com.liferay.portal.PortalException;
175:
176: public void unsetRoleUsers(long roleId, long[] userIds)
177: throws java.rmi.RemoteException,
178: com.liferay.portal.SystemException,
179: com.liferay.portal.PortalException;
180:
181: public void unsetUserGroupUsers(long userGroupId, long[] userIds)
182: throws java.rmi.RemoteException,
183: com.liferay.portal.SystemException,
184: com.liferay.portal.PortalException;
185:
186: public com.liferay.portal.model.User updateActive(long userId,
187: boolean active) throws java.rmi.RemoteException,
188: com.liferay.portal.SystemException,
189: com.liferay.portal.PortalException;
190:
191: public com.liferay.portal.model.User updateAgreedToTermsOfUse(
192: long userId, boolean agreedToTermsOfUse)
193: throws java.rmi.RemoteException,
194: com.liferay.portal.SystemException,
195: com.liferay.portal.PortalException;
196:
197: public com.liferay.portal.model.User updateLockout(long userId,
198: boolean lockout) throws java.rmi.RemoteException,
199: com.liferay.portal.SystemException,
200: com.liferay.portal.PortalException;
201:
202: public void updateOrganizations(long userId, long[] organizationIds)
203: throws java.rmi.RemoteException,
204: com.liferay.portal.SystemException,
205: com.liferay.portal.PortalException;
206:
207: public com.liferay.portal.model.User updatePassword(long userId,
208: java.lang.String password1, java.lang.String password2,
209: boolean passwordReset) throws java.rmi.RemoteException,
210: com.liferay.portal.SystemException,
211: com.liferay.portal.PortalException;
212:
213: public void updatePortrait(long userId, byte[] bytes)
214: throws java.rmi.RemoteException,
215: com.liferay.portal.SystemException,
216: com.liferay.portal.PortalException;
217:
218: public com.liferay.portal.model.User updateUser(long userId,
219: java.lang.String oldPassword, boolean passwordReset,
220: java.lang.String screenName, java.lang.String emailAddress,
221: java.lang.String languageId, java.lang.String timeZoneId,
222: java.lang.String greeting, java.lang.String comments,
223: java.lang.String firstName, java.lang.String middleName,
224: java.lang.String lastName, int prefixId, int suffixId,
225: boolean male, int birthdayMonth, int birthdayDay,
226: int birthdayYear, java.lang.String smsSn,
227: java.lang.String aimSn, java.lang.String icqSn,
228: java.lang.String jabberSn, java.lang.String msnSn,
229: java.lang.String skypeSn, java.lang.String ymSn,
230: java.lang.String jobTitle, long[] organizationIds)
231: throws java.rmi.RemoteException,
232: com.liferay.portal.SystemException,
233: com.liferay.portal.PortalException;
234:
235: public com.liferay.portal.model.User updateUser(long userId,
236: java.lang.String oldPassword,
237: java.lang.String newPassword1,
238: java.lang.String newPassword2, boolean passwordReset,
239: java.lang.String screenName, java.lang.String emailAddress,
240: java.lang.String languageId, java.lang.String timeZoneId,
241: java.lang.String greeting, java.lang.String comments,
242: java.lang.String firstName, java.lang.String middleName,
243: java.lang.String lastName, int prefixId, int suffixId,
244: boolean male, int birthdayMonth, int birthdayDay,
245: int birthdayYear, java.lang.String smsSn,
246: java.lang.String aimSn, java.lang.String icqSn,
247: java.lang.String jabberSn, java.lang.String msnSn,
248: java.lang.String skypeSn, java.lang.String ymSn,
249: java.lang.String jobTitle, long[] organizationIds)
250: throws java.rmi.RemoteException,
251: com.liferay.portal.SystemException,
252: com.liferay.portal.PortalException;
253: }
|