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            /**
289            * Returns the OSGi service identifier.
290            *
291            * @return the OSGi service identifier
292            */
293            @Override
294            public java.lang.String getOSGiServiceIdentifier() {
295                    return _passwordPolicyLocalService.getOSGiServiceIdentifier();
296            }
297    
298            /**
299            * Returns a range of all the password policies.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param start the lower bound of the range of password policies
306            * @param end the upper bound of the range of password policies (not inclusive)
307            * @return the range of password policies
308            */
309            @Override
310            public java.util.List<com.liferay.portal.model.PasswordPolicy> getPasswordPolicies(
311                    int start, int end) {
312                    return _passwordPolicyLocalService.getPasswordPolicies(start, end);
313            }
314    
315            /**
316            * Returns the number of password policies.
317            *
318            * @return the number of password policies
319            */
320            @Override
321            public int getPasswordPoliciesCount() {
322                    return _passwordPolicyLocalService.getPasswordPoliciesCount();
323            }
324    
325            /**
326            * @deprecated As of 6.1.0
327            */
328            @Deprecated
329            @Override
330            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
331                    long companyId, long organizationId, long locationId)
332                    throws com.liferay.portal.kernel.exception.PortalException {
333                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
334                            organizationId, locationId);
335            }
336    
337            @Override
338            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
339                    long companyId, long[] organizationIds)
340                    throws com.liferay.portal.kernel.exception.PortalException {
341                    return _passwordPolicyLocalService.getPasswordPolicy(companyId,
342                            organizationIds);
343            }
344    
345            /**
346            * Returns the password policy with the primary key.
347            *
348            * @param passwordPolicyId the primary key of the password policy
349            * @return the password policy
350            * @throws PortalException if a password policy with the primary key could not be found
351            */
352            @Override
353            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
354                    long passwordPolicyId)
355                    throws com.liferay.portal.kernel.exception.PortalException {
356                    return _passwordPolicyLocalService.getPasswordPolicy(passwordPolicyId);
357            }
358    
359            @Override
360            public com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUserId(
361                    long userId) throws com.liferay.portal.kernel.exception.PortalException {
362                    return _passwordPolicyLocalService.getPasswordPolicyByUserId(userId);
363            }
364    
365            /**
366            * Returns the password policy with the matching UUID and company.
367            *
368            * @param uuid the password policy's UUID
369            * @param companyId the primary key of the company
370            * @return the matching password policy
371            * @throws PortalException if a matching password policy could not be found
372            */
373            @Override
374            public com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUuidAndCompanyId(
375                    java.lang.String uuid, long companyId)
376                    throws com.liferay.portal.kernel.exception.PortalException {
377                    return _passwordPolicyLocalService.getPasswordPolicyByUuidAndCompanyId(uuid,
378                            companyId);
379            }
380    
381            @Override
382            public com.liferay.portal.model.PersistedModel getPersistedModel(
383                    java.io.Serializable primaryKeyObj)
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    return _passwordPolicyLocalService.getPersistedModel(primaryKeyObj);
386            }
387    
388            @Override
389            public java.util.List<com.liferay.portal.model.PasswordPolicy> search(
390                    long companyId, java.lang.String name, int start, int end,
391                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> obc) {
392                    return _passwordPolicyLocalService.search(companyId, name, start, end,
393                            obc);
394            }
395    
396            @Override
397            public int searchCount(long companyId, java.lang.String name) {
398                    return _passwordPolicyLocalService.searchCount(companyId, name);
399            }
400    
401            /**
402            * Updates the password policy in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
403            *
404            * @param passwordPolicy the password policy
405            * @return the password policy that was updated
406            */
407            @Override
408            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
409                    com.liferay.portal.model.PasswordPolicy passwordPolicy) {
410                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicy);
411            }
412    
413            /**
414            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
415            String, String, boolean, boolean, long, boolean, boolean,
416            int, int, int, int, int, int, String, boolean, int, boolean,
417            long, long, int, boolean, int, long, long, long,
418            ServiceContext)}
419            */
420            @Deprecated
421            @Override
422            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
423                    long passwordPolicyId, java.lang.String name,
424                    java.lang.String description, boolean changeable,
425                    boolean changeRequired, long minAge, boolean checkSyntax,
426                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
427                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
428                    boolean history, int historyCount, boolean expireable, long maxAge,
429                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
430                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
431                    throws com.liferay.portal.kernel.exception.PortalException {
432                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
433                            name, description, changeable, changeRequired, minAge, checkSyntax,
434                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
435                            minNumbers, minSymbols, minUpperCase, history, historyCount,
436                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
437                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
438            }
439    
440            @Override
441            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
442                    long passwordPolicyId, java.lang.String name,
443                    java.lang.String description, boolean changeable,
444                    boolean changeRequired, long minAge, boolean checkSyntax,
445                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
446                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
447                    java.lang.String regex, boolean history, int historyCount,
448                    boolean expireable, long maxAge, long warningTime, int graceLimit,
449                    boolean lockout, int maxFailure, long lockoutDuration,
450                    long resetFailureCount, long resetTicketMaxAge,
451                    com.liferay.portal.service.ServiceContext serviceContext)
452                    throws com.liferay.portal.kernel.exception.PortalException {
453                    return _passwordPolicyLocalService.updatePasswordPolicy(passwordPolicyId,
454                            name, description, changeable, changeRequired, minAge, checkSyntax,
455                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
456                            minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
457                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
458                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
459                            serviceContext);
460            }
461    
462            /**
463             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
464             */
465            @Deprecated
466            public PasswordPolicyLocalService getWrappedPasswordPolicyLocalService() {
467                    return _passwordPolicyLocalService;
468            }
469    
470            /**
471             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
472             */
473            @Deprecated
474            public void setWrappedPasswordPolicyLocalService(
475                    PasswordPolicyLocalService passwordPolicyLocalService) {
476                    _passwordPolicyLocalService = passwordPolicyLocalService;
477            }
478    
479            @Override
480            public PasswordPolicyLocalService getWrappedService() {
481                    return _passwordPolicyLocalService;
482            }
483    
484            @Override
485            public void setWrappedService(
486                    PasswordPolicyLocalService passwordPolicyLocalService) {
487                    _passwordPolicyLocalService = passwordPolicyLocalService;
488            }
489    
490            private PasswordPolicyLocalService _passwordPolicyLocalService;
491    }