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