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    /**
020     * Provides a wrapper for {@link PasswordPolicyLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PasswordPolicyLocalService
024     * @generated
025     */
026    @ProviderType
027    public class PasswordPolicyLocalServiceWrapper
028            implements PasswordPolicyLocalService,
029                    ServiceWrapper<PasswordPolicyLocalService> {
030            public PasswordPolicyLocalServiceWrapper(
031                    PasswordPolicyLocalService passwordPolicyLocalService) {
032                    _passwordPolicyLocalService = passwordPolicyLocalService;
033            }
034    
035            /**
036            * Adds the password policy to the database. Also notifies the appropriate model listeners.
037            *
038            * @param passwordPolicy the password policy
039            * @return the password policy that was added
040            */
041            @Override
042            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
043                    com.liferay.portal.model.PasswordPolicy passwordPolicy) {
044                    return _passwordPolicyLocalService.addPasswordPolicy(passwordPolicy);
045            }
046    
047            /**
048            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(long,
049            boolean, String, String, boolean, boolean, long, boolean,
050            boolean, int, int, int, int, int, int, String, boolean, int,
051            boolean, long, long, int, boolean, int, long, long, long,
052            ServiceContext)}
053            */
054            @Deprecated
055            @Override
056            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
057                    long userId, boolean defaultPolicy, java.lang.String name,
058                    java.lang.String description, boolean changeable,
059                    boolean changeRequired, long minAge, boolean checkSyntax,
060                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
061                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
062                    boolean history, int historyCount, boolean expireable, long maxAge,
063                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
064                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return _passwordPolicyLocalService.addPasswordPolicy(userId,
067                            defaultPolicy, name, description, changeable, changeRequired,
068                            minAge, checkSyntax, allowDictionaryWords, minAlphanumeric,
069                            minLength, minLowerCase, minNumbers, minSymbols, minUpperCase,
070                            history, historyCount, expireable, maxAge, warningTime, graceLimit,
071                            lockout, maxFailure, lockoutDuration, resetFailureCount,
072                            resetTicketMaxAge);
073            }
074    
075            @Override
076            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
077                    long userId, boolean defaultPolicy, java.lang.String name,
078                    java.lang.String description, boolean changeable,
079                    boolean changeRequired, long minAge, boolean checkSyntax,
080                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
081                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
082                    java.lang.String regex, boolean history, int historyCount,
083                    boolean expireable, long maxAge, long warningTime, int graceLimit,
084                    boolean lockout, int maxFailure, long lockoutDuration,
085                    long resetFailureCount, long resetTicketMaxAge,
086                    com.liferay.portal.service.ServiceContext serviceContext)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    return _passwordPolicyLocalService.addPasswordPolicy(userId,
089                            defaultPolicy, name, description, changeable, changeRequired,
090                            minAge, checkSyntax, allowDictionaryWords, minAlphanumeric,
091                            minLength, minLowerCase, minNumbers, minSymbols, minUpperCase,
092                            regex, history, historyCount, expireable, maxAge, warningTime,
093                            graceLimit, lockout, maxFailure, lockoutDuration,
094                            resetFailureCount, resetTicketMaxAge, serviceContext);
095            }
096    
097            @Override
098            public void checkDefaultPasswordPolicy(long companyId)
099                    throws com.liferay.portal.kernel.exception.PortalException {
100                    _passwordPolicyLocalService.checkDefaultPasswordPolicy(companyId);
101            }
102    
103            /**
104            * Creates a new password policy with the primary key. Does not add the password policy to the database.
105            *
106            * @param passwordPolicyId the primary key for the new password policy
107            * @return the new password policy
108            */
109            @Override
110            public com.liferay.portal.model.PasswordPolicy createPasswordPolicy(
111                    long passwordPolicyId) {
112                    return _passwordPolicyLocalService.createPasswordPolicy(passwordPolicyId);
113            }
114    
115            @Override
116            public void deleteNondefaultPasswordPolicies(long companyId)
117                    throws com.liferay.portal.kernel.exception.PortalException {
118                    _passwordPolicyLocalService.deleteNondefaultPasswordPolicies(companyId);
119            }
120    
121            /**
122            * Deletes the password policy from the database. Also notifies the appropriate model listeners.
123            *
124            * @param passwordPolicy the password policy
125            * @return the password policy that was removed
126            * @throws PortalException
127            */
128            @Override
129            public com.liferay.portal.model.PasswordPolicy deletePasswordPolicy(
130                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
131                    throws com.liferay.portal.kernel.exception.PortalException {
132                    return _passwordPolicyLocalService.deletePasswordPolicy(passwordPolicy);
133            }
134    
135            /**
136            * Deletes the password policy with the primary key from the database. Also notifies the appropriate model listeners.
137            *
138            * @param passwordPolicyId the primary key of the password policy
139            * @return the password policy that was removed
140            * @throws PortalException if a password policy with the primary key could not be found
141            */
142            @Override
143            public com.liferay.portal.model.PasswordPolicy deletePasswordPolicy(
144                    long passwordPolicyId)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    return _passwordPolicyLocalService.deletePasswordPolicy(passwordPolicyId);
147            }
148    
149            /**
150            * @throws PortalException
151            */
152            @Override
153            public com.liferay.portal.model.PersistedModel deletePersistedModel(
154                    com.liferay.portal.model.PersistedModel persistedModel)
155                    throws com.liferay.portal.kernel.exception.PortalException {
156                    return _passwordPolicyLocalService.deletePersistedModel(persistedModel);
157            }
158    
159            @Override
160            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
161                    return _passwordPolicyLocalService.dynamicQuery();
162            }
163    
164            /**
165            * Performs a dynamic query on the database and returns the matching rows.
166            *
167            * @param dynamicQuery the dynamic query
168            * @return the matching rows
169            */
170            @Override
171            public <T> java.util.List<T> dynamicQuery(
172                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
173                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery);
174            }
175    
176            /**
177            * Performs a dynamic query on the database and returns a range of the matching rows.
178            *
179            * <p>
180            * 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.PasswordPolicyModelImpl}. 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.
181            * </p>
182            *
183            * @param dynamicQuery the dynamic query
184            * @param start the lower bound of the range of model instances
185            * @param end the upper bound of the range of model instances (not inclusive)
186            * @return the range of matching rows
187            */
188            @Override
189            public <T> java.util.List<T> dynamicQuery(
190                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
191                    int end) {
192                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start, end);
193            }
194    
195            /**
196            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
197            *
198            * <p>
199            * 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.PasswordPolicyModelImpl}. 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.
200            * </p>
201            *
202            * @param dynamicQuery the dynamic query
203            * @param start the lower bound of the range of model instances
204            * @param end the upper bound of the range of model instances (not inclusive)
205            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
206            * @return the ordered range of matching rows
207            */
208            @Override
209            public <T> java.util.List<T> dynamicQuery(
210                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
211                    int end,
212                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
213                    return _passwordPolicyLocalService.dynamicQuery(dynamicQuery, start,
214                            end, orderByComparator);
215            }
216    
217            /**
218            * Returns the number of rows matching the dynamic query.
219            *
220            * @param dynamicQuery the dynamic query
221            * @return the number of rows matching the dynamic query
222            */
223            @Override
224            public long dynamicQueryCount(
225                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
226                    return _passwordPolicyLocalService.dynamicQueryCount(dynamicQuery);
227            }
228    
229            /**
230            * Returns the number of rows matching the dynamic query.
231            *
232            * @param dynamicQuery the dynamic query
233            * @param projection the projection to apply to the query
234            * @return the number of rows matching the dynamic query
235            */
236            @Override
237            public long dynamicQueryCount(
238                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
239                    com.liferay.portal.kernel.dao.orm.Projection projection) {
240                    return _passwordPolicyLocalService.dynamicQueryCount(dynamicQuery,
241                            projection);
242            }
243    
244            @Override
245            public com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
246                    long companyId, java.lang.String name) {
247                    return _passwordPolicyLocalService.fetchPasswordPolicy(companyId, name);
248            }
249    
250            @Override
251            public com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
252                    long passwordPolicyId) {
253                    return _passwordPolicyLocalService.fetchPasswordPolicy(passwordPolicyId);
254            }
255    
256            /**
257            * Returns the password policy with the matching UUID and company.
258            *
259            * @param uuid the password policy's UUID
260            * @param companyId the primary key of the company
261            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
262            */
263            @Override
264            public com.liferay.portal.model.PasswordPolicy fetchPasswordPolicyByUuidAndCompanyId(
265                    java.lang.String uuid, long companyId) {
266                    return _passwordPolicyLocalService.fetchPasswordPolicyByUuidAndCompanyId(uuid,
267                            companyId);
268            }
269    
270            @Override
271            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
272                    return _passwordPolicyLocalService.getActionableDynamicQuery();
273            }
274    
275            @Override
276            public com.liferay.portal.model.PasswordPolicy getDefaultPasswordPolicy(
277                    long companyId)
278                    throws com.liferay.portal.kernel.exception.PortalException {
279                    return _passwordPolicyLocalService.getDefaultPasswordPolicy(companyId);
280            }
281    
282            @Override
283            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
284                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
285                    return _passwordPolicyLocalService.getExportActionableDynamicQuery(portletDataContext);
286            }
287    
288            @Override
289            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
290                    return _passwordPolicyLocalService.getIndexableActionableDynamicQuery();
291            }
292    
293            /**
294            * Returns the OSGi service identifier.
295            *
296            * @return the OSGi service identifier
297            */
298            @Override
299            public java.lang.String getOSGiServiceIdentifier() {
300                    return _passwordPolicyLocalService.getOSGiServiceIdentifier();
301            }
302    
303            /**
304            * Returns a range of all the password policies.
305            *
306            * <p>
307            * 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.PasswordPolicyModelImpl}. 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.
308            * </p>
309            *
310            * @param start the lower bound of the range of password policies
311            * @param end the upper bound of the range of password policies (not inclusive)
312            * @return the range of password policies
313            */
314            @Override
315            public java.util.List<com.liferay.portal.model.PasswordPolicy> getPasswordPolicies(
316                    int start, int end) {
317                    return _passwordPolicyLocalService.getPasswordPolicies(start, end);
318            }
319    
320            /**
321            * Returns the number of password policies.
322            *
323            * @return the number of password policies
324            */
325            @Override
326            public int getPasswordPoliciesCount() {
327                    return _passwordPolicyLocalService.getPasswordPoliciesCount();
328            }
329    
330            /**
331            * @deprecated As of 6.1.0
332            */
333            @Deprecated
334            @Override
335            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
336                    long companyId, long organizationId, long locationId)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
339                            organizationId, locationId);
340            }
341    
342            @Override
343            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
344                    long companyId, long[] organizationIds)
345                    throws com.liferay.portal.kernel.exception.PortalException {
346                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
347                            organizationIds);
348            }
349    
350            /**
351            * Returns the password policy with the primary key.
352            *
353            * @param passwordPolicyId the primary key of the password policy
354            * @return the password policy
355            * @throws PortalException if a password policy with the primary key could not be found
356            */
357            @Override
358            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
359                    long passwordPolicyId)
360                    throws com.liferay.portal.kernel.exception.PortalException {
361                    return _passwordPolicyLocalService.getPasswordPolicy(passwordPolicyId);
362            }
363    
364            @Override
365            public com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUserId(
366                    long userId) throws com.liferay.portal.kernel.exception.PortalException {
367                    return _passwordPolicyLocalService.getPasswordPolicyByUserId(userId);
368            }
369    
370            /**
371            * Returns the password policy with the matching UUID and company.
372            *
373            * @param uuid the password policy's UUID
374            * @param companyId the primary key of the company
375            * @return the matching password policy
376            * @throws PortalException if a matching password policy could not be found
377            */
378            @Override
379            public com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUuidAndCompanyId(
380                    java.lang.String uuid, long companyId)
381                    throws com.liferay.portal.kernel.exception.PortalException {
382                    return _passwordPolicyLocalService.getPasswordPolicyByUuidAndCompanyId(uuid,
383                            companyId);
384            }
385    
386            @Override
387            public com.liferay.portal.model.PersistedModel getPersistedModel(
388                    java.io.Serializable primaryKeyObj)
389                    throws com.liferay.portal.kernel.exception.PortalException {
390                    return _passwordPolicyLocalService.getPersistedModel(primaryKeyObj);
391            }
392    
393            @Override
394            public java.util.List<com.liferay.portal.model.PasswordPolicy> search(
395                    long companyId, java.lang.String name, int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> obc) {
397                    return _passwordPolicyLocalService.search(companyId, name, start, end,
398                            obc);
399            }
400    
401            @Override
402            public int searchCount(long companyId, java.lang.String name) {
403                    return _passwordPolicyLocalService.searchCount(companyId, name);
404            }
405    
406            /**
407            * Updates the password policy in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
408            *
409            * @param passwordPolicy the password policy
410            * @return the password policy that was updated
411            */
412            @Override
413            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
414                    com.liferay.portal.model.PasswordPolicy passwordPolicy) {
415                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicy);
416            }
417    
418            /**
419            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
420            String, String, boolean, boolean, long, boolean, boolean,
421            int, int, int, int, int, int, String, boolean, int, boolean,
422            long, long, int, boolean, int, long, long, long,
423            ServiceContext)}
424            */
425            @Deprecated
426            @Override
427            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
428                    long passwordPolicyId, java.lang.String name,
429                    java.lang.String description, boolean changeable,
430                    boolean changeRequired, long minAge, boolean checkSyntax,
431                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
432                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
433                    boolean history, int historyCount, boolean expireable, long maxAge,
434                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
435                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
436                    throws com.liferay.portal.kernel.exception.PortalException {
437                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
438                            name, description, changeable, changeRequired, minAge, checkSyntax,
439                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
440                            minNumbers, minSymbols, minUpperCase, history, historyCount,
441                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
442                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
443            }
444    
445            @Override
446            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
447                    long passwordPolicyId, java.lang.String name,
448                    java.lang.String description, boolean changeable,
449                    boolean changeRequired, long minAge, boolean checkSyntax,
450                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
451                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
452                    java.lang.String regex, boolean history, int historyCount,
453                    boolean expireable, long maxAge, long warningTime, int graceLimit,
454                    boolean lockout, int maxFailure, long lockoutDuration,
455                    long resetFailureCount, long resetTicketMaxAge,
456                    com.liferay.portal.service.ServiceContext serviceContext)
457                    throws com.liferay.portal.kernel.exception.PortalException {
458                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
459                            name, description, changeable, changeRequired, minAge, checkSyntax,
460                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
461                            minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
462                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
463                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
464                            serviceContext);
465            }
466    
467            @Override
468            public PasswordPolicyLocalService getWrappedService() {
469                    return _passwordPolicyLocalService;
470            }
471    
472            @Override
473            public void setWrappedService(
474                    PasswordPolicyLocalService passwordPolicyLocalService) {
475                    _passwordPolicyLocalService = passwordPolicyLocalService;
476            }
477    
478            private PasswordPolicyLocalService _passwordPolicyLocalService;
479    }