001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for PasswordPolicyRel. This utility wraps
024     * {@link com.liferay.portal.service.impl.PasswordPolicyRelLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see PasswordPolicyRelLocalService
032     * @see com.liferay.portal.service.base.PasswordPolicyRelLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.PasswordPolicyRelLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class PasswordPolicyRelLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.PasswordPolicyRelLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
044                    long passwordPolicyId, java.lang.String className, long classPK) {
045                    return getService()
046                                       .addPasswordPolicyRel(passwordPolicyId, className, classPK);
047            }
048    
049            /**
050            * Adds the password policy rel to the database. Also notifies the appropriate model listeners.
051            *
052            * @param passwordPolicyRel the password policy rel
053            * @return the password policy rel that was added
054            */
055            public static com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
056                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) {
057                    return getService().addPasswordPolicyRel(passwordPolicyRel);
058            }
059    
060            public static void addPasswordPolicyRels(long passwordPolicyId,
061                    java.lang.String className, long[] classPKs) {
062                    getService().addPasswordPolicyRels(passwordPolicyId, className, classPKs);
063            }
064    
065            /**
066            * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database.
067            *
068            * @param passwordPolicyRelId the primary key for the new password policy rel
069            * @return the new password policy rel
070            */
071            public static com.liferay.portal.model.PasswordPolicyRel createPasswordPolicyRel(
072                    long passwordPolicyRelId) {
073                    return getService().createPasswordPolicyRel(passwordPolicyRelId);
074            }
075    
076            public static void deletePasswordPolicyRel(java.lang.String className,
077                    long classPK) {
078                    getService().deletePasswordPolicyRel(className, classPK);
079            }
080    
081            public static void deletePasswordPolicyRel(long passwordPolicyId,
082                    java.lang.String className, long classPK) {
083                    getService()
084                            .deletePasswordPolicyRel(passwordPolicyId, className, classPK);
085            }
086    
087            /**
088            * Deletes the password policy rel from the database. Also notifies the appropriate model listeners.
089            *
090            * @param passwordPolicyRel the password policy rel
091            * @return the password policy rel that was removed
092            */
093            public static com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel(
094                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) {
095                    return getService().deletePasswordPolicyRel(passwordPolicyRel);
096            }
097    
098            /**
099            * Deletes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners.
100            *
101            * @param passwordPolicyRelId the primary key of the password policy rel
102            * @return the password policy rel that was removed
103            * @throws PortalException if a password policy rel with the primary key could not be found
104            */
105            public static com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel(
106                    long passwordPolicyRelId)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    return getService().deletePasswordPolicyRel(passwordPolicyRelId);
109            }
110    
111            public static void deletePasswordPolicyRels(long passwordPolicyId) {
112                    getService().deletePasswordPolicyRels(passwordPolicyId);
113            }
114    
115            public static void deletePasswordPolicyRels(long passwordPolicyId,
116                    java.lang.String className, long[] classPKs) {
117                    getService()
118                            .deletePasswordPolicyRels(passwordPolicyId, className, classPKs);
119            }
120    
121            /**
122            * @throws PortalException
123            */
124            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
125                    com.liferay.portal.model.PersistedModel persistedModel)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    return getService().deletePersistedModel(persistedModel);
128            }
129    
130            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
131                    return getService().dynamicQuery();
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns the matching rows.
136            *
137            * @param dynamicQuery the dynamic query
138            * @return the matching rows
139            */
140            public static <T> java.util.List<T> dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
142                    return getService().dynamicQuery(dynamicQuery);
143            }
144    
145            /**
146            * Performs a dynamic query on the database and returns a range of the matching rows.
147            *
148            * <p>
149            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
150            * </p>
151            *
152            * @param dynamicQuery the dynamic query
153            * @param start the lower bound of the range of model instances
154            * @param end the upper bound of the range of model instances (not inclusive)
155            * @return the range of matching rows
156            */
157            public static <T> java.util.List<T> dynamicQuery(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159                    int end) {
160                    return getService().dynamicQuery(dynamicQuery, start, end);
161            }
162    
163            /**
164            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
165            *
166            * <p>
167            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
168            * </p>
169            *
170            * @param dynamicQuery the dynamic query
171            * @param start the lower bound of the range of model instances
172            * @param end the upper bound of the range of model instances (not inclusive)
173            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
174            * @return the ordered range of matching rows
175            */
176            public static <T> java.util.List<T> dynamicQuery(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
178                    int end,
179                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
180                    return getService()
181                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
182            }
183    
184            /**
185            * Returns the number of rows matching the dynamic query.
186            *
187            * @param dynamicQuery the dynamic query
188            * @return the number of rows matching the dynamic query
189            */
190            public static long dynamicQueryCount(
191                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
192                    return getService().dynamicQueryCount(dynamicQuery);
193            }
194    
195            /**
196            * Returns the number of rows matching the dynamic query.
197            *
198            * @param dynamicQuery the dynamic query
199            * @param projection the projection to apply to the query
200            * @return the number of rows matching the dynamic query
201            */
202            public static long dynamicQueryCount(
203                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
204                    com.liferay.portal.kernel.dao.orm.Projection projection) {
205                    return getService().dynamicQueryCount(dynamicQuery, projection);
206            }
207    
208            public static com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
209                    java.lang.String className, long classPK) {
210                    return getService().fetchPasswordPolicyRel(className, classPK);
211            }
212    
213            public static com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
214                    long passwordPolicyRelId) {
215                    return getService().fetchPasswordPolicyRel(passwordPolicyRelId);
216            }
217    
218            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
219                    return getService().getActionableDynamicQuery();
220            }
221    
222            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
223                    return getService().getIndexableActionableDynamicQuery();
224            }
225    
226            /**
227            * Returns the OSGi service identifier.
228            *
229            * @return the OSGi service identifier
230            */
231            public static java.lang.String getOSGiServiceIdentifier() {
232                    return getService().getOSGiServiceIdentifier();
233            }
234    
235            public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
236                    java.lang.String className, long classPK)
237                    throws com.liferay.portal.kernel.exception.PortalException {
238                    return getService().getPasswordPolicyRel(className, classPK);
239            }
240    
241            public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
242                    long passwordPolicyId, java.lang.String className, long classPK)
243                    throws com.liferay.portal.kernel.exception.PortalException {
244                    return getService()
245                                       .getPasswordPolicyRel(passwordPolicyId, className, classPK);
246            }
247    
248            /**
249            * Returns the password policy rel with the primary key.
250            *
251            * @param passwordPolicyRelId the primary key of the password policy rel
252            * @return the password policy rel
253            * @throws PortalException if a password policy rel with the primary key could not be found
254            */
255            public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
256                    long passwordPolicyRelId)
257                    throws com.liferay.portal.kernel.exception.PortalException {
258                    return getService().getPasswordPolicyRel(passwordPolicyRelId);
259            }
260    
261            /**
262            * Returns a range of all the password policy rels.
263            *
264            * <p>
265            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
266            * </p>
267            *
268            * @param start the lower bound of the range of password policy rels
269            * @param end the upper bound of the range of password policy rels (not inclusive)
270            * @return the range of password policy rels
271            */
272            public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> getPasswordPolicyRels(
273                    int start, int end) {
274                    return getService().getPasswordPolicyRels(start, end);
275            }
276    
277            /**
278            * Returns the number of password policy rels.
279            *
280            * @return the number of password policy rels
281            */
282            public static int getPasswordPolicyRelsCount() {
283                    return getService().getPasswordPolicyRelsCount();
284            }
285    
286            public static com.liferay.portal.model.PersistedModel getPersistedModel(
287                    java.io.Serializable primaryKeyObj)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    return getService().getPersistedModel(primaryKeyObj);
290            }
291    
292            public static boolean hasPasswordPolicyRel(long passwordPolicyId,
293                    java.lang.String className, long classPK) {
294                    return getService()
295                                       .hasPasswordPolicyRel(passwordPolicyId, className, classPK);
296            }
297    
298            /**
299            * Updates the password policy rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
300            *
301            * @param passwordPolicyRel the password policy rel
302            * @return the password policy rel that was updated
303            */
304            public static com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel(
305                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) {
306                    return getService().updatePasswordPolicyRel(passwordPolicyRel);
307            }
308    
309            public static PasswordPolicyRelLocalService getService() {
310                    if (_service == null) {
311                            _service = (PasswordPolicyRelLocalService)PortalBeanLocatorUtil.locate(PasswordPolicyRelLocalService.class.getName());
312    
313                            ReferenceRegistry.registerReference(PasswordPolicyRelLocalServiceUtil.class,
314                                    "_service");
315                    }
316    
317                    return _service;
318            }
319    
320            private static PasswordPolicyRelLocalService _service;
321    }