1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class UserIdMapperLocalServiceUtil {
42 public static com.liferay.portal.model.UserIdMapper addUserIdMapper(
43 com.liferay.portal.model.UserIdMapper userIdMapper)
44 throws com.liferay.portal.SystemException {
45 return getService().addUserIdMapper(userIdMapper);
46 }
47
48 public static com.liferay.portal.model.UserIdMapper createUserIdMapper(
49 long userIdMapperId) {
50 return getService().createUserIdMapper(userIdMapperId);
51 }
52
53 public static void deleteUserIdMapper(long userIdMapperId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteUserIdMapper(userIdMapperId);
57 }
58
59 public static void deleteUserIdMapper(
60 com.liferay.portal.model.UserIdMapper userIdMapper)
61 throws com.liferay.portal.SystemException {
62 getService().deleteUserIdMapper(userIdMapper);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portal.model.UserIdMapper getUserIdMapper(
96 long userIdMapperId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getUserIdMapper(userIdMapperId);
100 }
101
102 public static java.util.List<com.liferay.portal.model.UserIdMapper> getUserIdMappers(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getUserIdMappers(start, end);
105 }
106
107 public static int getUserIdMappersCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getUserIdMappersCount();
110 }
111
112 public static com.liferay.portal.model.UserIdMapper updateUserIdMapper(
113 com.liferay.portal.model.UserIdMapper userIdMapper)
114 throws com.liferay.portal.SystemException {
115 return getService().updateUserIdMapper(userIdMapper);
116 }
117
118 public static com.liferay.portal.model.UserIdMapper updateUserIdMapper(
119 com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
120 throws com.liferay.portal.SystemException {
121 return getService().updateUserIdMapper(userIdMapper, merge);
122 }
123
124 public static void deleteUserIdMappers(long userId)
125 throws com.liferay.portal.SystemException {
126 getService().deleteUserIdMappers(userId);
127 }
128
129 public static com.liferay.portal.model.UserIdMapper getUserIdMapper(
130 long userId, java.lang.String type)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException {
133 return getService().getUserIdMapper(userId, type);
134 }
135
136 public static com.liferay.portal.model.UserIdMapper getUserIdMapperByExternalUserId(
137 java.lang.String type, java.lang.String externalUserId)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 return getService().getUserIdMapperByExternalUserId(type, externalUserId);
141 }
142
143 public static java.util.List<com.liferay.portal.model.UserIdMapper> getUserIdMappers(
144 long userId) throws com.liferay.portal.SystemException {
145 return getService().getUserIdMappers(userId);
146 }
147
148 public static com.liferay.portal.model.UserIdMapper updateUserIdMapper(
149 long userId, java.lang.String type, java.lang.String description,
150 java.lang.String externalUserId)
151 throws com.liferay.portal.SystemException {
152 return getService()
153 .updateUserIdMapper(userId, type, description, externalUserId);
154 }
155
156 public static UserIdMapperLocalService getService() {
157 if (_service == null) {
158 _service = (UserIdMapperLocalService)PortalBeanLocatorUtil.locate(UserIdMapperLocalService.class.getName());
159
160 ReferenceRegistry.registerReference(UserIdMapperLocalServiceUtil.class,
161 "_service");
162 MethodCache.remove(UserIdMapperLocalService.class);
163 }
164
165 return _service;
166 }
167
168 public void setService(UserIdMapperLocalService service) {
169 MethodCache.remove(UserIdMapperLocalService.class);
170
171 _service = service;
172
173 ReferenceRegistry.registerReference(UserIdMapperLocalServiceUtil.class,
174 "_service");
175 MethodCache.remove(UserIdMapperLocalService.class);
176 }
177
178 private static UserIdMapperLocalService _service;
179 }