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="RoleLocalService.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.RoleLocalServiceImpl</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 local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.RoleLocalServiceFactory
045: * @see com.liferay.portal.service.RoleLocalServiceUtil
046: *
047: */
048: public interface RoleLocalService {
049: public com.liferay.portal.model.Role addRole(
050: com.liferay.portal.model.Role model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portal.model.Role updateRole(
063: com.liferay.portal.model.Role model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portal.service.persistence.AccountPersistence getAccountPersistence();
067:
068: public void setAccountPersistence(
069: com.liferay.portal.service.persistence.AccountPersistence accountPersistence);
070:
071: public com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence();
072:
073: public void setActivityTrackerPersistence(
074: com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence);
075:
076: public com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder();
077:
078: public void setActivityTrackerFinder(
079: com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder);
080:
081: public com.liferay.portal.service.persistence.AddressPersistence getAddressPersistence();
082:
083: public void setAddressPersistence(
084: com.liferay.portal.service.persistence.AddressPersistence addressPersistence);
085:
086: public com.liferay.portal.service.persistence.ClassNamePersistence getClassNamePersistence();
087:
088: public void setClassNamePersistence(
089: com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence);
090:
091: public com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence();
092:
093: public void setCompanyPersistence(
094: com.liferay.portal.service.persistence.CompanyPersistence companyPersistence);
095:
096: public com.liferay.portal.service.persistence.ContactPersistence getContactPersistence();
097:
098: public void setContactPersistence(
099: com.liferay.portal.service.persistence.ContactPersistence contactPersistence);
100:
101: public com.liferay.portal.service.persistence.CountryPersistence getCountryPersistence();
102:
103: public void setCountryPersistence(
104: com.liferay.portal.service.persistence.CountryPersistence countryPersistence);
105:
106: public com.liferay.portal.service.persistence.EmailAddressPersistence getEmailAddressPersistence();
107:
108: public void setEmailAddressPersistence(
109: com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence);
110:
111: public com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence();
112:
113: public void setGroupPersistence(
114: com.liferay.portal.service.persistence.GroupPersistence groupPersistence);
115:
116: public com.liferay.portal.service.persistence.GroupFinder getGroupFinder();
117:
118: public void setGroupFinder(
119: com.liferay.portal.service.persistence.GroupFinder groupFinder);
120:
121: public com.liferay.portal.service.persistence.ImagePersistence getImagePersistence();
122:
123: public void setImagePersistence(
124: com.liferay.portal.service.persistence.ImagePersistence imagePersistence);
125:
126: public com.liferay.portal.service.persistence.LayoutPersistence getLayoutPersistence();
127:
128: public void setLayoutPersistence(
129: com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence);
130:
131: public com.liferay.portal.service.persistence.LayoutFinder getLayoutFinder();
132:
133: public void setLayoutFinder(
134: com.liferay.portal.service.persistence.LayoutFinder layoutFinder);
135:
136: public com.liferay.portal.service.persistence.LayoutSetPersistence getLayoutSetPersistence();
137:
138: public void setLayoutSetPersistence(
139: com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence);
140:
141: public com.liferay.portal.service.persistence.ListTypePersistence getListTypePersistence();
142:
143: public void setListTypePersistence(
144: com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence);
145:
146: public com.liferay.portal.service.persistence.MembershipRequestPersistence getMembershipRequestPersistence();
147:
148: public void setMembershipRequestPersistence(
149: com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence);
150:
151: public com.liferay.portal.service.persistence.OrganizationPersistence getOrganizationPersistence();
152:
153: public void setOrganizationPersistence(
154: com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence);
155:
156: public com.liferay.portal.service.persistence.OrganizationFinder getOrganizationFinder();
157:
158: public void setOrganizationFinder(
159: com.liferay.portal.service.persistence.OrganizationFinder organizationFinder);
160:
161: public com.liferay.portal.service.persistence.OrgGroupPermissionPersistence getOrgGroupPermissionPersistence();
162:
163: public void setOrgGroupPermissionPersistence(
164: com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence);
165:
166: public com.liferay.portal.service.persistence.OrgGroupPermissionFinder getOrgGroupPermissionFinder();
167:
168: public void setOrgGroupPermissionFinder(
169: com.liferay.portal.service.persistence.OrgGroupPermissionFinder orgGroupPermissionFinder);
170:
171: public com.liferay.portal.service.persistence.OrgGroupRolePersistence getOrgGroupRolePersistence();
172:
173: public void setOrgGroupRolePersistence(
174: com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence);
175:
176: public com.liferay.portal.service.persistence.OrgLaborPersistence getOrgLaborPersistence();
177:
178: public void setOrgLaborPersistence(
179: com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence);
180:
181: public com.liferay.portal.service.persistence.PasswordPolicyPersistence getPasswordPolicyPersistence();
182:
183: public void setPasswordPolicyPersistence(
184: com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence);
185:
186: public com.liferay.portal.service.persistence.PasswordPolicyFinder getPasswordPolicyFinder();
187:
188: public void setPasswordPolicyFinder(
189: com.liferay.portal.service.persistence.PasswordPolicyFinder passwordPolicyFinder);
190:
191: public com.liferay.portal.service.persistence.PasswordPolicyRelPersistence getPasswordPolicyRelPersistence();
192:
193: public void setPasswordPolicyRelPersistence(
194: com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence);
195:
196: public com.liferay.portal.service.persistence.PasswordTrackerPersistence getPasswordTrackerPersistence();
197:
198: public void setPasswordTrackerPersistence(
199: com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence);
200:
201: public com.liferay.portal.service.persistence.PermissionPersistence getPermissionPersistence();
202:
203: public void setPermissionPersistence(
204: com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence);
205:
206: public com.liferay.portal.service.persistence.PermissionFinder getPermissionFinder();
207:
208: public void setPermissionFinder(
209: com.liferay.portal.service.persistence.PermissionFinder permissionFinder);
210:
211: public com.liferay.portal.service.persistence.PermissionUserFinder getPermissionUserFinder();
212:
213: public void setPermissionUserFinder(
214: com.liferay.portal.service.persistence.PermissionUserFinder permissionUserFinder);
215:
216: public com.liferay.portal.service.persistence.PhonePersistence getPhonePersistence();
217:
218: public void setPhonePersistence(
219: com.liferay.portal.service.persistence.PhonePersistence phonePersistence);
220:
221: public com.liferay.portal.service.persistence.PluginSettingPersistence getPluginSettingPersistence();
222:
223: public void setPluginSettingPersistence(
224: com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence);
225:
226: public com.liferay.portal.service.persistence.PortletPersistence getPortletPersistence();
227:
228: public void setPortletPersistence(
229: com.liferay.portal.service.persistence.PortletPersistence portletPersistence);
230:
231: public com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence();
232:
233: public void setPortletPreferencesPersistence(
234: com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence);
235:
236: public com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder();
237:
238: public void setPortletPreferencesFinder(
239: com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder);
240:
241: public com.liferay.portal.service.persistence.RegionPersistence getRegionPersistence();
242:
243: public void setRegionPersistence(
244: com.liferay.portal.service.persistence.RegionPersistence regionPersistence);
245:
246: public com.liferay.portal.service.persistence.ReleasePersistence getReleasePersistence();
247:
248: public void setReleasePersistence(
249: com.liferay.portal.service.persistence.ReleasePersistence releasePersistence);
250:
251: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
252:
253: public void setResourcePersistence(
254: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
255:
256: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
257:
258: public void setResourceFinder(
259: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
260:
261: public com.liferay.portal.service.persistence.ResourceCodePersistence getResourceCodePersistence();
262:
263: public void setResourceCodePersistence(
264: com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence);
265:
266: public com.liferay.portal.service.persistence.RolePersistence getRolePersistence();
267:
268: public void setRolePersistence(
269: com.liferay.portal.service.persistence.RolePersistence rolePersistence);
270:
271: public com.liferay.portal.service.persistence.RoleFinder getRoleFinder();
272:
273: public void setRoleFinder(
274: com.liferay.portal.service.persistence.RoleFinder roleFinder);
275:
276: public com.liferay.portal.service.persistence.ServiceComponentPersistence getServiceComponentPersistence();
277:
278: public void setServiceComponentPersistence(
279: com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence);
280:
281: public com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence();
282:
283: public void setSubscriptionPersistence(
284: com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence);
285:
286: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
287:
288: public void setUserPersistence(
289: com.liferay.portal.service.persistence.UserPersistence userPersistence);
290:
291: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
292:
293: public void setUserFinder(
294: com.liferay.portal.service.persistence.UserFinder userFinder);
295:
296: public com.liferay.portal.service.persistence.UserGroupPersistence getUserGroupPersistence();
297:
298: public void setUserGroupPersistence(
299: com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence);
300:
301: public com.liferay.portal.service.persistence.UserGroupFinder getUserGroupFinder();
302:
303: public void setUserGroupFinder(
304: com.liferay.portal.service.persistence.UserGroupFinder userGroupFinder);
305:
306: public com.liferay.portal.service.persistence.UserGroupRolePersistence getUserGroupRolePersistence();
307:
308: public void setUserGroupRolePersistence(
309: com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence);
310:
311: public com.liferay.portal.service.persistence.UserIdMapperPersistence getUserIdMapperPersistence();
312:
313: public void setUserIdMapperPersistence(
314: com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence);
315:
316: public com.liferay.portal.service.persistence.UserTrackerPersistence getUserTrackerPersistence();
317:
318: public void setUserTrackerPersistence(
319: com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence);
320:
321: public com.liferay.portal.service.persistence.UserTrackerPathPersistence getUserTrackerPathPersistence();
322:
323: public void setUserTrackerPathPersistence(
324: com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence);
325:
326: public com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence();
327:
328: public void setWebDAVPropsPersistence(
329: com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence);
330:
331: public com.liferay.portal.service.persistence.WebsitePersistence getWebsitePersistence();
332:
333: public void setWebsitePersistence(
334: com.liferay.portal.service.persistence.WebsitePersistence websitePersistence);
335:
336: public void afterPropertiesSet();
337:
338: public com.liferay.portal.model.Role addRole(long userId,
339: long companyId, java.lang.String name,
340: java.lang.String description, int type)
341: throws com.liferay.portal.SystemException,
342: com.liferay.portal.PortalException;
343:
344: public com.liferay.portal.model.Role addRole(long userId,
345: long companyId, java.lang.String name,
346: java.lang.String description, int type,
347: java.lang.String className, long classPK)
348: throws com.liferay.portal.SystemException,
349: com.liferay.portal.PortalException;
350:
351: public void addUserRoles(long userId, long[] roleIds)
352: throws com.liferay.portal.SystemException,
353: com.liferay.portal.PortalException;
354:
355: public void checkSystemRoles(long companyId)
356: throws com.liferay.portal.SystemException,
357: com.liferay.portal.PortalException;
358:
359: public void deleteRole(long roleId)
360: throws com.liferay.portal.SystemException,
361: com.liferay.portal.PortalException;
362:
363: public com.liferay.portal.model.Role getGroupRole(long companyId,
364: long groupId) throws com.liferay.portal.SystemException,
365: com.liferay.portal.PortalException;
366:
367: public java.util.List getGroupRoles(long groupId)
368: throws com.liferay.portal.SystemException,
369: com.liferay.portal.PortalException;
370:
371: public java.util.Map getResourceRoles(long companyId,
372: java.lang.String name, int scope, java.lang.String primKey)
373: throws com.liferay.portal.SystemException;
374:
375: public com.liferay.portal.model.Role getRole(long roleId)
376: throws com.liferay.portal.SystemException,
377: com.liferay.portal.PortalException;
378:
379: public com.liferay.portal.model.Role getRole(long companyId,
380: java.lang.String name)
381: throws com.liferay.portal.SystemException,
382: com.liferay.portal.PortalException;
383:
384: public java.util.List getUserGroupRoles(long userId, long groupId)
385: throws com.liferay.portal.SystemException;
386:
387: public java.util.List getUserRelatedRoles(long userId, long groupId)
388: throws com.liferay.portal.SystemException;
389:
390: public java.util.List getUserRelatedRoles(long userId,
391: long[] groupIds) throws com.liferay.portal.SystemException;
392:
393: public java.util.List getUserRelatedRoles(long userId,
394: java.util.List groups)
395: throws com.liferay.portal.SystemException;
396:
397: public java.util.List getUserRoles(long userId)
398: throws com.liferay.portal.SystemException,
399: com.liferay.portal.PortalException;
400:
401: public boolean hasUserRole(long userId, long roleId)
402: throws com.liferay.portal.SystemException,
403: com.liferay.portal.PortalException;
404:
405: public boolean hasUserRole(long userId, long companyId,
406: java.lang.String name, boolean inherited)
407: throws com.liferay.portal.SystemException,
408: com.liferay.portal.PortalException;
409:
410: public boolean hasUserRoles(long userId, long companyId,
411: java.lang.String[] names, boolean inherited)
412: throws com.liferay.portal.SystemException,
413: com.liferay.portal.PortalException;
414:
415: public java.util.List search(long companyId, java.lang.String name,
416: java.lang.String description, java.lang.Integer type,
417: int begin, int end,
418: com.liferay.portal.kernel.util.OrderByComparator obc)
419: throws com.liferay.portal.SystemException;
420:
421: public java.util.List search(long companyId, java.lang.String name,
422: java.lang.String description, java.lang.Integer type,
423: java.util.LinkedHashMap params, int begin, int end,
424: com.liferay.portal.kernel.util.OrderByComparator obc)
425: throws com.liferay.portal.SystemException;
426:
427: public int searchCount(long companyId, java.lang.String name,
428: java.lang.String description, java.lang.Integer type)
429: throws com.liferay.portal.SystemException;
430:
431: public int searchCount(long companyId, java.lang.String name,
432: java.lang.String description, java.lang.Integer type,
433: java.util.LinkedHashMap params)
434: throws com.liferay.portal.SystemException;
435:
436: public void setUserRoles(long userId, long[] roleIds)
437: throws com.liferay.portal.SystemException,
438: com.liferay.portal.PortalException;
439:
440: public void unsetUserRoles(long userId, long[] roleIds)
441: throws com.liferay.portal.SystemException,
442: com.liferay.portal.PortalException;
443:
444: public com.liferay.portal.model.Role updateRole(long roleId,
445: java.lang.String name, java.lang.String description)
446: throws com.liferay.portal.SystemException,
447: com.liferay.portal.PortalException;
448: }
|