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